• I’m running Contact Form 7 version 4.6.1. With no reCAPTCHA in the form everything works as expected. With reCAPTCHA in place I’m seeing 2 javascript errors. The first error is ReCAPTCHA placeholder element must be empty and it occurs on page load. reCAPTCHA loads and functions as expected. When submit is pressed, a second error, Invalid ReCAPTCHA client id: 0 is generated. This blocks the AJAX reset of the form and prevents the display of the successful submission message. Email is sent as expected. As a result of these errors folks filling out the form have no way of knowing that it was submitted.

    I can supply additional information if needed.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use?

    Thread Starter emasters

    (@emasters)

    It’s a bit complicated. We’re using the plugin in a multisite setup. It’s used by about 36 sites in the network and seems to be failing everywhere. For an example see https://testing471.classcaster.net/2017/01/25/contacting/. This is a test blog running the stock Twenty Fifteen theme. Network activated plugins include BWP reCAPTCHA (CF7 integration disabled), Google Analytics, Limit Login Attempts, TinyMCE Advanced. The only plugin activated for the site itself is Contact Form 7.

    Since this seems to have cropped only recently I’m going to try rolling back to an earlier version of the CF7 plugin and see if that makes a difference.

    Thanks.

    Thread Starter emasters

    (@emasters)

    I’ve rolled back CF7 to version 4.4.2 and it works as expected with reCAPTCHA. Anything newer than that generates the errors breakage outlined above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘reCAPTCHA generating errors, blocking AJAX’ is closed to new replies.