Unable to register - recaptcha error

Hello,

I’m unable to register an account on OJS 3.0.2 with recaptcha configured. Everything seems to work normally with recaptcha displaying at the end of registration form but filling all the data and clicking “Register” results in recaptcha error (as if it wasn’t clicked).

I’ve run debugging and here’s the result:

Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /xxx/lib/pkp/classes/form/validation/FormValidatorReCaptcha.inc.php on line 71

Warning: file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found in /xxx/lib/pkp/classes/form/validation/FormValidatorReCaptcha.inc.php on line 71

Does recaptcha require fopen to be enabled both in PHP and config?

Hi @szmigieldesign,

The ReCaptcha check does require allow_url_fopen, as do a few other parts of the code. I’d suggest enabling this in your PHP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team