Support » Plugin: Contact Form 7 » Contact Form 7 -There was an error trying to send your message. Please try again

  • Resolved allure13

    (@allure13)


    Hello!
    Novice user.. Just launched new website using X Theme. Everything looked good. Tested the Contact Form 7, and received the error: There was an error trying to send your message. Please try again later. (with orange border and orange fill). I have tried many troubleshooting suggestions.
    1. Added contact form 7 reCaptcha extension. Refreshed. Still didn’t work
    2. Added smtp using WP Mail SMTP- with Gmail Api. Test email worked (through that plugin)
    3. Installed WP-reCaptcha . Still didn’t work (read someone said to install that).

    I have tried deactivating some/all of these with the same results. I initially used v3 recaptua interrogation. Then tried v2. Didn’t work. So back to v3.

    I am at a loss and can’t get my mind around this. Hoping someone has some suggestions. I have a couple of other pages on website that use the forms as well. Thanks for any help!!!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 38 total)
  • There was an error trying to send your message. Please try again later. (with orange border and orange fill)

    The orange error border indicates reCAPTCHA v3 is not working correctly on your site.

    Added contact form 7 reCaptcha extension. Refreshed. Still didn’t work

    If you added this correctly at Contact Forms > Integration following the instructions at reCAPTCHA (v3) & it’s working, you should now see the reCAPTCHA Privacy badge displayed at the bottom of every page on your site (not just the pages where you’ve got CF7 forms).

    Thanks for the reply. I just looked and the reCaptcha badge is on ALL of the pages of my site.

    In that case you should stick with reCAPTCHA v3 IMO and focus on any issues that might be preventing CF7’s JavaScript from completing:

    • Script optimization via WP plugin
    • Caching – particularly from WP Caching plugins
    • JavaScript conflicts

    The rest of the info you supplied is probably unnecessary & confusing the issue.

    I’ll jump in to this topic, after debugging the issue on several of my websites.

    It seems that the last WP update (5.1) messed up with the order of wp_enqueue_script and wp_footer actions.

    Your “wpcf7_recaptcha_onload_script” function is prevented to populate the ‘g-recaptcha-response’ hidden field by this code, in recaptcha.php:

    if ( ! wp_script_is( ‘google-recaptcha’, ‘done’ ) ) {
    return;
    }

    The script appears as not being loaded, therefore, the script in charge of populating the recaptcha response never gets called.

    Thanks for the reply. I am kinda new to all of this…. so should I add this script into the recaptcha.php?

    ( ! wp_script_is( ‘google-recaptcha’, ‘done’ ) ) {
    return;
    }

    Thanks!

    @allure13

    I am kinda new to all of this…. so should I add this script into the recaptcha.php?

    No – @fvcmedia is reporting a symptom they are seeing in their case. Your problem is likely to be different.

    If the latest wp 5.1 update is what messed up Contact Form 7…will Contact Form 7 eventually come out with an update? Or do we need to find a different form to use….or know how to code the fix? Thanks!

    I had this problem but I resolved it by removing the buggy plugin “Really Simple CAPTCHA” which doesn’t work and installed this plugin instead https://wordpress.org/plugins/wpcf7-recaptcha

    Using recaptcha v2 again which works great.

    I just tried installing the wpcf7-recaptcha.
    Changed the default version to v2.
    Added the reCaptcha shortcode
    Now I see an error on the form: ERROR for site owner: Invalid site key.
    So I went back to integration, updated the api for v2. Refreshed.
    Still get that error.
    Tried submitting form and get: There was an error trying to send your message. Please try again later.

    I just refreshed my settings… I don’t receive the error for site owner anymore, but the form still gives me this error upon submitting:

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

    I’m surprised to see that so many days have passed and the CF7 team haven’t came with a fix to this.

    The error lies in the built-in reCaptcha integration of the CF7, and it’s not related to any third-party plugins.

    I advise everyone having the issue, to remove the reCaptcha keys from the Integrations tab, at least temporarily, until a fix is being released.

    In my case, I’ve fixed the issue with a small patch applied directly into the plugin’s files (not ideal), but for someone without coding experience might not be that easy, so removing the reCaptcha keys should do the trick.

    I have removed the keys…. still the same error. Ugh

    Just to clarify, the issue I’m describing is related to WP 5.1 and reCaptcha V3 integration by CF7.

    @buzztone let us know when you’ve found a fix. More and more people will report it, I am sure of it!

    @allure13 I’m sorry that didn’t did the trick for you. It might be that you are experiencing another issue, more specific to your website.

    If you would like, I can have my team have a look at your installation Monday morning, and try to debug it.

    You can contact me directly through our website:

    • This reply was modified 3 months, 3 weeks ago by James Huff. Reason: off-site contact removed

    Thank you

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘Contact Form 7 -There was an error trying to send your message. Please try again’ is closed to new replies.