Support » Plugin: Contact Form 7 » Contact Form 7 vs Google ReCaptcha V3 – Form won’t validate

  • kubik101

    (@kubik101)


    Hi.

    When I have Google ReCaptcha V3 integrated with my Contact Form 7 forms, they do not validate and come back with the error message under the form “There was an error trying to send your message. Please try again later.”

    If I remove the integration for Google ReCaptcha V3 the form sends and validates.

    WP Version 5.9
    Contact Form 7 Version 5.5.4

    I googled the issue and found this resource which someone posted, but hesitant to try a third party plugin to resolve.

    https://wordpress.org/support/topic/contact-7-validation-issues-a-potential-solution/

    Can the Contact Form 7 Authors/Developers look into this please?

    Thanks.

Viewing 15 replies - 1 through 15 (of 18 total)
  • carolinen17

    (@carolinen17)

    Hi,
    for me it didn’t work BEFORE the reCaptcha v3 was installed.

    Another website of mine is working perfectly well with reCaptcha v3, but it’s 5.8 WP version / CF7 5.5.4

    Thanks.

    Thread Starter kubik101

    (@kubik101)

    This response is for the plugin author to keep them on track and not for you (sorry carolinen17).

    If it’s the IPV6 issue like the link in my original post implies, then the form may work sometimes and then not others, in other words, sometimes getting an IPV4 address and other times getting an IPV6 address.

    Over to you Plugin Authors.
    Thanks.

    Thread Starter kubik101

    (@kubik101)

    I saw there was a Contact Form 7 plugin update to 5.5.5 which I did.

    I turned on Google Recaptcha integration and did a test email.

    First test went through.

    All other tests are now failing and not sending and leaves the error:

    “There was an error trying to send your message. Please try again later.”

    TonyDehnke

    (@tonydehnke)

    I’m having this issue too – Version 5.5.5
    WP 5.9
    Astra Theme Version: 3.7.7

    TonyDehnke

    (@tonydehnke)

    Has anyone heard from the developer on this issue? It is still failing for me on iOS Safari (iPhone). www 12v biz \ contact

    Thread Starter kubik101

    (@kubik101)

    @tonydehnke – not yet no.

    TonyDehnke

    (@tonydehnke)

    My site has updated to the new plugin version and the form still doesn’t work on iOS Safari.

    Author – can you please help.

    ++

    Same issue – anyone find a workaround???

    How about lowering the threshold for spam checks?

    https://contactform7.com/en/faq-about-recaptcha-v3/#how-to-change-threshold

    I still have this problem, lowering threshold did not work..

    I gave up and changed to the forms built into Elementor. No issues so far.

    I have found a workaround for this is to modify the submission.php file in the Contact Form 7 plugin.

    The function spam() needs to be modified on line 602, as shown below

    return $spam;
    // return apply_filters( ‘wpcf7_spam’, $spam, $this );

    Hope this helps someone until the plugin developers can resolve the issues

    Also experiencing the same issue with CF7 and Google reCaptcha v3 on several sites. Sometimes email sends, and then sometimes does not and I get the same error as others. It would be good to know if it’s a reCaptcha issue (overly strict, especially on repeat test emails) or something to do with CF7.

    @netninjas how did you narrow down to the line 602 change, and do you think that change could break anything else? Cheers!

    Sharing my experience here…

    It turned out that reCaptcha v3 wasn’t working properly because my theme didn’t call the wp_head(); function in its header.php file.

    So when WPCF7 was adding to the <head> tag on my pages, through hooks, it wasn’t processed.

    • This reply was modified 1 year, 7 months ago by VERYA Inc..
    • This reply was modified 1 year, 7 months ago by VERYA Inc..
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Contact Form 7 vs Google ReCaptcha V3 – Form won’t validate’ is closed to new replies.