Page 1 of 1

Solved: Google reCaptcha v2 not working

Posted: Tue Nov 12, 2019 8:29 pm
by jsykes
I have just solved a frustrating issue using a new CMSMS installation, CGBetterForms and Captcha.

When my form was submitted it would report:

"Sorry, incorrect captcha value"

After much Googling, I found the root cause to be a PHP.ini setting.

The PHP.ini setting "allow_url_fopen" must be enabled. I can consistently replicate the issue and solve the issue by toggling this setting.

This site is hosted on a Google Cloud server with WHM/cPanel. By default this value was NOT enabled.

Hopefully this helps the next person that encounters this issue in the context of CMSMS.

Jon