Jump to content
  • 0

ReCaptch always return error


Blesta Addons

Question

i have activated the recaptcha in signup page, the captcha always return error .

the i'm no robot cpatcha is showing well, but every time the client validate the signup page he get a error about captcha .

we are using 4.0.0, captcha v2. any feedback or any tips to test .

after some investigation, we found the repatche response is

recaptcha validation invalid-json

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

we have found the issue. allow_url_fopen  with https issue .

the fix is simple, we changed the method from post to curl . by chaning only this line of code

                        $recaptcha = new ReCaptcha(
                            $order_settings['recaptcha_shared_key'],
                            new \ReCaptcha\RequestMethod\CurlPost()
                        );

i encourage blesta to use the curl method instead of the post, as now some host block allow_url_fopen , also is rebust to connect to a https site by curl .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...