Enabling Recaptcha

I have looked at other recaptcha posts but have not yet found a solution. I have entered the correct codes registered for the site. This is redacted from config.inc.php What am I doing wrong? Error message: ERROR for site owner: Invalid key type

;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;

[captcha]

; Whether or not to enable ReCaptcha
recaptcha = on

; Public key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_public_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

; Private key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_private_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

; Whether or not to use Captcha on user registration
captcha_on_register = on

Hi Gail,

Did you register for version 2 or version 3?

Cheers,
Jason

Version 3

Gail Simon, D.Prof

Editor

Murmurations. Journal of Transformative Systemic Practice

www.murmurations.cloud

OJS 2.4.x and OJS 3.1.x currently only support ReCAPTCHA v2.

Oh I love easy solutions! Working now. Thanks!

what am i doing wrong in config.inc.php?
using Recaptcha 2, OJS 3.2.0.1

;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;

[captcha]

; Whether or not to enable ReCaptcha
recaptcha = on

; Public key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_public_key = public key is in there really

; Private key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_private_key = private key is in there really

; Whether or not to use Captcha on user registration
captcha_on_register = on

; Validate the hostname in the ReCaptcha response
recaptcha_enforce_hostname = off

image

Can anyone help with this: still having problems. See screenshot about not passing the validation check to prevent spam submissions.
Using Recaptcha 2 on OJS 3.2.1.1

Hi @gail,

Does your web server require a proxy in order to contact outside systems?

Regards,
Alec Smecher
Public Knowledge Project Team

Not that I am aware of. It is in public html folder on a well known hosting provider

1 Like

Hi @gail,

Could you confirm with your hosting provider? If there is a proxy, then you’ll need to configure OJS to work with it in order for the ReCAPTCHA exchange to work as expected

Regards,
Alec Smecher
Public Knowledge Project Team

It is Zen hosting. I have enabled allow_url_fopen if that helps.