[ZendTo] Invalid JSON error - reCAPTCHA
Jules
Jules at Zend.To
Thu Nov 5 15:10:48 GMT 2020
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
Twitter: @JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jul.es/pipermail/zendto/attachments/20201105/d9833bbf/attachment.html>
More information about the ZendTo
mailing list