• Hello. After adding recaptcha v3, I am having an issue submitting my form. I updated to plugin version 5.1.1. I then obtained a v3 key from Google, and entered the site key and secret key into Contact–>Integration. On my contact page, the recaptcha banner appeared in the bottom. But when I try to send a message, it fails, with the error:

    >> Failed to send your message. Please try later or contact the administrator by another method.

    There is also an error in the JS console:

    Uncaught ReferenceError: grecaptcha is not defined

    I see others have had this issue as well (post here I also see this post, with a list of fixes. But it’s not clear to me what exactly they fix. Does that post pertain to me?

    Thoughts on this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The info you supplied indicates reCAPTCHA v3 is not working correctly on your site.

    See Contact Form 7 5.1.1 – theme needs to properly loads JavaScript in the footer area of each page.

    Switch temporarily (nothing will be lost when you switch back) to a WP default theme to see if the problem goes away.

    If this fixes the problem & you can’t get your theme fixed, you might try <using Contact Form 7 – reCaptcha v2 in addition to Contact Form 7. Once installed and configured it offers the same reCaptcha functionality you are used to in previous versions of Contact Form 7 (recommended by CF7 plugin author).

    Hi,

    I have the same problem, i have the The7 theme.

    Is a problem known with this theme?

    Thank you in advance !

    pexys – I’m not sure if you found a fix, but I was in a similar spot and this worked for me. In The7 go to Theme Options -> Advanced -> Custom JavaScript button. Here is where you typically put your Google Analytics tracking code. You can put this bit of code at the top above that and click save.

    <script src="https://www.google.com/recaptcha/api.js" async defer></script>

    I have the same problem on two different websites using the Graphene-Theme.

    Adding the custom javascript didn’t solve the problem.

    I’ve changed the theme to Twenty Twenty and it didn’t fix the problem. I guess it is not theme related.

    Got it fixed by adding “recaptcha/api.js” to “JS Deferred Excludes” in the LightSpeed Cache plugin.

    Thank you @fbreve

    Adding the “recaptcha/api.js” to “JS Excludes” in LightSpeed plugin worked perfectly.

    I’m getting same js errors. Forms are not working at essexflorist.net. Is it possible to get additional information on the potential fixes mentioned above?

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Uncaught ReferenceError: grecaptcha is not defined’ is closed to new replies.