[ZendTo] Invalid JSON error - reCAPTCHA

Jules Jules at Zend.To
Thu Nov 5 17:19:42 GMT 2020


Everton,

I've just had a dig through my mail archives.

Some folks at Brunel University in the UK had the same problem. Here is 
their comment on the problem and how they fixed it:

Reason for reCAPTCHA problem we understood relates to the firewall and 
IPV6 settings.
Recently we had firewall and network changes implemented to our data 
centre which had impact on IPV6 related connectivity in Linux environment.
We have disabled IPV6 on dropoff server and it worked fine without any 
issues.

Hope that helps,
Jules.

On 05/11/2020 17:09, Everton Bruno Bernardi wrote:
> Jules,
>
> Thanks for that. I changed the code you sent me but it had no effect. 
> The same error occurs.
> Am I able to send any debug information to help you out? If so, please 
> tell me how can I get it.
>
>
> Regards,
>
> Everton
>
> On Thu, Nov 5, 2020 at 12:10 PM Jules <Jules at zend.to 
> <mailto:Jules at zend.to>> wrote:
>
>     Hi Everton,
>
>     I've just compared the code from 5.03 to the latest, for this
>     specific problem.
>
>     Try applying this patch (manually with a text editor is just
>     fine!) to /opt/zendto/www/verify.php:
>
>     97,101c110,111
>     <             // Old version 1 code.
>     <             // $resp = recaptcha_check_answer($reCaptchaPrivateKey,
>     <             // getClientIP(),
>     <             // $_POST["g-recaptcha-response"]);
>     <             $recaptcha = new
>     \ReCaptcha\ReCaptcha($reCaptchaPrivateKey);
>     ---
>     >             $recaptcha = new
>     \ReCaptcha\ReCaptcha($reCaptchaPrivateKey,
>     >                            new \ReCaptcha\RequestMethod\CurlPost());
>
>     If that helps, apply this (very similar) patch to
>     /opt/zendto/www/pickup.php as that's the other place this call
>     appears:
>
>     130c143,144
>     <           $recaptcha = new
>     \ReCaptcha\ReCaptcha($reCaptchaPrivateKey);
>     ---
>     >           $recaptcha = new
>     \ReCaptcha\ReCaptcha($reCaptchaPrivateKey,
>     >             new \ReCaptcha\RequestMethod\CurlPost());
>
>     I've never managed to figure out why sites which have been working
>     perfectly well on the default suddenly stop doing so, with
>     apparently no changes anywhere (except at Google?). But using the
>     CurlPost() technique seems to work well for everyone.
>
>     Let me know how you get on.
>
>     Cheers,
>     Jules.
>
>     On 05/11/2020 14:54, Everton Bruno Bernardi wrote:
>>     Hi Jules,
>>
>>     Thanks for your considerations.
>>     Unfortunately this is happening to all of our users (including
>>     external).
>>
>>     I've already tried on other browsers and the same happens.
>>
>>
>>
>>     Em qui, 5 de nov de 2020 11:18, Jules <Jules at zend.to
>>     <mailto:Jules at zend.to>> escreveu:
>>
>>         Everton,
>>
>>         Please can you try a couple of things:
>>         1. Close all your browser tabs except 1 showing something
>>         like Google's home page. Clear your browser cache completely,
>>         then quit and restart your browser. Does the problem still occur?
>>         2. Try from an incognito/private browser window. Does that
>>         make it behave?
>>
>>         If number 2 makes it behave, then the browser cache isn't
>>         being fully cleared, as that's the only important difference
>>         as far as a new tab is concerned.
>>
>>         Anyone else seeing this problem?
>>
>>         Cheers,
>>         Jules.
>>
>>         On 05/11/2020 13:31, Everton Bruno Bernardi via ZendTo wrote:
>>>         Hi there,
>>>
>>>         Recently we've been facing the following issue with ZendTo
>>>         (version 5.03 - a lot old, I know):
>>>
>>>         image.png
>>>
>>>         I've confirmed the reCAPTCHA keys and everything seems to be
>>>         correct.
>>>         What could I do in order to know what's really happening?
>>>
>>>
>>>         Thanks in advance.
>>>
>>>         Regards
>>>
>>>         -- 
>>>         /Everton Bruno Bernardi
>>>         <http://google.com/+EvertonBrunoBernardi>/
>>>
>>>
>>>
>>>         _______________________________________________
>>>         ZendTo mailing list
>>>         ZendTo at zend.to  <mailto:ZendTo at zend.to>
>>>         http://jul.es/mailman/listinfo/zendto  <http://jul.es/mailman/listinfo/zendto>
>>
>>         Jules
>>
>>         -- 
>>         Julian Field MEng CEng CITP MBCS MIEEE MACM
>>
>>
>>         www.Zend.To  <http://www.Zend.To>
>>         Twitter: @JulesFM
>>
>
>     Jules
>
>     -- 
>     Julian Field MEng CEng CITP MBCS MIEEE MACM
>
>
>     www.Zend.To  <http://www.Zend.To>
>     Twitter: @JulesFM
>
>
>
> -- 
> /Everton Bruno Bernardi <http://google.com/+EvertonBrunoBernardi>/
>
>

Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM


www.Zend.To
Twitter: @JulesFM

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20201105/8ed9dadd/attachment.html>


More information about the ZendTo mailing list