Getting reCAPTCHA to work
Permalink Browser Info Environment
I'm obviously missing something here. I have done as instructed concerning getting keys and entering them in the appropriate place in the Dashboard, and have set up to use reCAPTCHA in "Captcha setup" in the Dashboard. My Contact Form (using the sample content of the Fundamental theme) now shows the reCAPTCHA widget as one would hope. When I write a test message and then hit the recaptcha "I'm not a robot" box, I get a fat green tick, as one would hope. But when I hit the Submit button, my form returns an "Incorrect captcha code" error.
I am doing all this on localhost.
I have not made any changes at all to the view.php file or downloaded any source code from Github. I'm unclear as to whether I need to do any of that.
Any help would be greatly appreciated.
I am doing all this on localhost.
I have not made any changes at all to the view.php file or downloaded any source code from Github. I'm unclear as to whether I need to do any of that.
Any help would be greatly appreciated.
Type: | Discussion |
---|---|
Status: | Resolved |

Please ignore. I decided to give it a go on my live site, and it works just fine. My localhost must not get along with Google. So I'm a very happy camper. Having done some research on implementing reCAPTCHA in earlier versions of Concrete5, and having seen all the hacking that appears to have been required back then, then all I can say is that we are living in a brave new world. Many thanks to ExchangeCore for this great add-on.
Thanks for the review! Glad to hear you were able to get it working. We're looking in to the problem you experienced when trying to run it locally.
Reviving an old post... I had the same issue when I tried this on localhost.
In RecaptchaController.php, replace the line
with
In RecaptchaController.php, replace the line
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, Config::get('app.curl.verifyPeer'));
with
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);