WordPress.org

Support

Support » Plugins and Hacks » Jetpack by WordPress.com » [Resolved] Contact Form/PollDaddy & ReCaptcha bug

[Resolved] 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=20121205

    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.

    http://wordpress.org/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).

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