Support » Plugin: Jetpack by » Contact Form/PollDaddy & ReCaptcha bug

  • Resolved Marcus


    NetWebLogic Support

    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 –

    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:

    The 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.

    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).

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form/PollDaddy & ReCaptcha bug’ is closed to new replies.