Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
767 views
in Plugins by
edited by
I changed PHP version in Cpanel from 7.0 to 7.4 and after that reCAPTCHA displays properly, validates properly, but shows error "Please complete the anti-spam verification" when you click submit button on any form registration / question / comment.

Now I've made a teporary solution by changing PHP version back to 7.0 and reCAPTCHA works properly, but eventually I'd like to have PHP version 7.4. Any ideas?

Plugin: reCAPTCHA v2.0

Edit: I've made a few tests - I've changed PHP version to 5.4, 7.0 (native), 7.1, 7.4 and reCaptcha works correctly on my Q2A site only on PHP 7.0 (native).
Q2A version: 1.8.3

1 Answer

+1 vote
by
edited by

I've made some more tests.

Problem with reCAPTCHA appears ONLY if there's a code in site's files (for example in .htaccess file) that changes PHP version from native for our hosting to another. That's what we have in this case:

2020-07-07 14:58:40.742023 [NOTICE] [3566053] [31.41.143.152:58479#APVH_(my_domain)] [STDERR] PHP Notice: Trying to access array offset on value of type null in (my_domain)/qa-plugin/recaptcha-captcha/recaptchalib.php on line 333
2020-07-07 15:06:06.726184 [NOTICE] [3566053] [185.242.134.92:52405#APVH_(my_domain)] [STDERR] PHP Notice: Trying to access array offset on value of type null in (my_domain)/qa-plugin/recaptcha-captcha/recaptchalib.php on line 333

by
Hi! plz how can I see this logs??

Ive got the same problem with recaptcha validation, I got this error "Please verify..." even with recaptcha is correct
...