Support » Plugin: Contact Form 7 » Forms not sending when re-captcha is turned on.

  • Resolved Dariusz

    (@idarek)


    I got multiple websites and same issue. Contact Form 7 not sending messages on any of the websites when ReCaptcha is activated. There were no changes in re-captcha and plugin settings and this possibly happen over last 4 weeks (maybe on last plugin update)

    When Re-Captcha is enabled (in Integration) I got following error in Developer console on page containing form:

    Uncaught ReferenceError: grecaptcha is not defined
        at (index):624

    The issue not exist when integration with re-captcha is turned off.

Viewing 8 replies - 1 through 8 (of 8 total)
  • I am having the same issue!

    And the problem is much bigger. When recaptcha is on, it’s also braking website. For example when you go to create new post, the editor failing to launch etc.

    @idarek – CF7 5.1.+ updated to reCAPTCHA v3 – some time ago now.

    That error indicates reCAPTCHA v3 is not working correctly on your site.

    You may see this error if you’ve:

    • previously used reCAPTCHA v2 with CF7
    • updated to CF7 5.1.1 or newer and
    • not changed your previous reCAPTCHA v2 keys to reCAPTCHA v3 keys at Contact > Integration.

    The API keys for reCAPTCHA v2 don’t work with the reCAPTCHA v3 API.

    @brightspotstudio – see I have the same problem! Can I just reply to someone else’s post with “Me too”?.

    If you are willing to create a new question, which details your issues, somebody will likely be able to help you there.

    I am using the correct Keys for v3. I updated them when CF been updated to v3 and all worked fine and suddenly, on 6 website – totally different configurations, server, locations, when ReCaptcha is on in Integration, the sites are broken and forms are not working.

    @takayukister Could you look at this issue?

    The following error indicates that reCAPTCHA v3 is not setup correctly or not working for some other reason:

    Uncaught ReferenceError: grecaptcha is not defined at (index):624

    You will need to find what is causing that error on your particular site.

    I recommend you disable temporarily any JS caching & optimiztion (if you have that enabled) to see if that that removes the error.

    Resolved.

    Contact Form 7 like other plugins with integration with ReCaptcha loading external api.js script. When this is blocked by any caching plugin, this will cause problem with Contact Form along with site as well returning grecaptcha error in console.

    In my case, I use Async Javascript and need to add
    api.js
    to Exclusions in settings and all back to normal.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Forms not sending when re-captcha is turned on.’ is closed to new replies.