Error CF5 The reCAPTCHA wasn't entered correctly. Please try it again.

adminartur 22 Aug, 2016
PHP 7.0.6

When I tune reCaptcha everything works fine.
When I tune noCaptcha I receive an error "The reCAPTCHA wasn't entered correctly. Please try it again."
I read the FAQ and public and private keys are correct!
Check the site for many other participants, I found the same problem!

Please help to fix the problem. I really love ChronoForms!

you can see the debug mode is enabled http://rosaural.ru/zayavka
GreyHead 22 Aug, 2016
Answer
1 Likes
Hi adminartur,

Everything on the front-end of the form looks OK so the problem is either that the Secret Key is incorrect or your site can't contact Google to confirm the key. That can happen if file_get_contents() is blocked for remote sites. Please see this thread for a fix if this is the case.

Bob
adminartur 22 Aug, 2016
cURL support enabled
cURL Information 7.44.0

allow_url_fopen On On
allow_url_include Off Off

on a server with the extension order
I think the matter component can Google updated something
such errors are often found on different sites using noCaptcha
adminartur 22 Aug, 2016
even with the current extension was a problem.
I decided by replacing code in the file /administrator/components/com_chronoforms5/chronoforms/actions/check_nocaptcha/check_nocaptcha.php
thank you very much GreyHead
from Russia with love!

// Original     $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$config->get('secret_key')."&response=".$form->data('g-recaptcha-response'));

                $ch = curl_init("https://www.google.com/recaptcha/api/siteverify?secret=".$config->get('secret_key')."&response=".$form->data('g-recaptcha-response'));
                curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                $response = curl_exec($ch);
                curl_close($ch);
This topic is locked and no more replies can be posted.