Contact Form/PollDaddy & ReCaptcha bug
-
I had a user having a problem with Events Manager (I’m the author) and JetPack.
The Problem:
Near the end of an AJAX call to book an event, we check if there’s a recaptcha form that needs reloading by seeing if the Recaptcha variable is set, if so we call Recaptcha.reload().This is a valid method described here – https://developers.google.com/recaptcha/docs/display?hl=en#AJAX
Your script then hits a fatal error and our ajax doesn’t complete, messing the booking flow so our ajax call doesn’t finish and exits. The offending file on your side is:
wp-content/plugins/jetpack/modules/sharedaddy/sharing.js?ver=20121205The JS error :
Uncaught ReferenceError: RecaptchaState is not defined
This happens if we enable sharing.
I’ve made some workarounds (not publicly yet), so everything keeps working, but the fatal error is still there without (any known) side-effects. Any insight would be appreciated.
https://www.ads-software.com/extend/plugins/jetpack/
Update – I’ve added a check to make sure RecaptchaState is defined, the error goes away.
I still wonder if this is still a bug on your side though, since Recaptcha probably shouldn’t be defined in the first place if RecaptchaState isn’t. I also don’t see any similar code in the recaptcha js supplied by google (both ajax and standard).
- The topic ‘Contact Form/PollDaddy & ReCaptcha bug’ is closed to new replies.