UndefinedOffset / silverstripe-nocaptcha

A spam protector and form field using Google's reCAPTCHA v2 or optionally a foundation v3 implementation
BSD 3-Clause "New" or "Revised" License
31 stars 37 forks source link

Invisible recaptcha ERROR: Uncaught (in promise) null #47

Closed extravio closed 5 years ago

extravio commented 5 years ago

When using the invisible recaptcha on a User Defined Form, submitting the form fails with the following javascript error: Uncaught (in promise) null No issue with default_size: compact Recaptcha-JS-Error

UndefinedOffset commented 5 years ago

hmm sucks that there was no trace, what version of SilverStripe and UserForms are you using?

extravio commented 5 years ago

The latest versions: Silverstripe 4.3.2 and silverstripe/userforms: 5.3.1

According to this post on Stack Overflow, it could be caused by the data-callback attribute. https://stackoverflow.com/questions/52390562/google-recaptcha-response-uncaught-in-promise-null

UndefinedOffset commented 5 years ago

Certainly sounds like the issue will look into it :) welcome to open a pull request however if you can figure it out first ;)

UndefinedOffset commented 5 years ago

Try the master branch in your local and see if that fixes the issue

extravio commented 5 years ago

@UndefinedOffset all tested ok! Thanks!

UndefinedOffset commented 5 years ago

Tagged as 2.0.2, thanks for your report and verifying

rafaeldsousa commented 3 years ago

@unclecheese I'm still getting this. I can see the callback being set correctly onload but after I trigger submit on the form it gives me the same message as initially reported here. Could this have come back after the latest release with v3 updates ? I'm still using v2.