• My client has a WordPress 4.9.9 set up with a custom theme that uses Contact Form 7 and WP Mail SMTP. These were working perfectly until we updated Contact Form 7 to use the new Google Recaptcha V3, which resulted in most emails breaking. Anything sent via CF7 forms, WP Forms, or even the “forgot your password” forms for the admin panel. The only thing that does send is the test email for WP Mail SMTP.

    Things of note:

    • We do have wp_footer() in the footer file
    • An error message in the public_html/error_log file showed: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'redirect_cf7' not found or invalid function name in .../wp-includes/class-wp-hook.php on line 286, but replacing this file with a fresh one from the 4.9.9 build did not help.
    • I tried going back to V2 with this plugin and replacing the old keys but this did not work
    • When trying to use a different form plugin (WP Forms) I get this error message “Mailer: Other SMTP – PHPMailer was able to connect to SMTP server but failed while trying to send an email.”
    • The WP Mail SMTP is set to Other SMTP, but set up here seems fine

    I haven’t tried replacing the contact form 7 with an earlier build yet.
    I can’t update WordPress because the theme is old and I’m worried it will break more pieces before we can get the new site up.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anything sent via CF7 forms, WP Forms, or even the “forgot your password” forms for the admin panel, or even the “forgot your password” forms for the admin panel.

    This indicates you have a general WP email sending issue rather than just with CF7. Not getting “forgot your password” emails is very clear confirmation of this.

    The rest of the info supplied indicates you haven’t setup to use SMTP correctly.

    Don’t use SMTP unless they have a specific reason to do so. It requires detailed setup to suit your hosting to work. If you don’t get it right it won’t work.

    I suggest you forget about using early versions CF7 & instead focus on If You Have Email Problems – most people that work carefully through this list of email sending issues are able to solve their particular problems.

    I can’t update WordPress because the theme is old and I’m worried it will break more pieces before we can get the new site up.

    Not updating WP is never good, but it’s almost certainly not the cause of your current email sending problems.

    Thread Starter Auburnixi

    (@auburnixi)

    If the “test email” that is available via the WP SMTP plugin still manages to send, does that still indicate the SMTP is set up incorrectly? I figured that was the cause but why would the test email still be able to fire?
    Also, this all worked fine before updating the recaptcha. I haven’t been able to figure out the link between the update and my SMTP settings.

    I suggest you forget about using early versions CF7 & instead focus on If You Have Email Problems – most people that work carefully through this list of email sending issues are able to solve their particular problems.

    I’ve looked through these and eliminated most; SMTP still seems to be the most likely issue somehow but all the credentials and plugin setup have stayed the same.

    Not updating WP is never good, but it’s almost certainly not the cause of your current email sending problems.

    I know it’s not the cause of my problems; I’m concerned it will cause more issues because the theme wasn’t built to handle updates well. We are working on a new theme to replace this, but it won’t be ready this week.

    If the “test email” that is available via the WP SMTP plugin still manages to send, does that still indicate the SMTP is set up incorrectly?

    No – I’ve seen many cases where SMTP plugin test worked but SMTP is still set up incorrectly.

    Also, this all worked fine before updating the recaptcha. I haven’t been able to figure out the link between the update and my SMTP settings.

    There probably isn’t a link. It’s always possible that something changed on your WP install (that you may not even be aware of) at around the same time that you updated.

    Don’t forget you are not getting “forgot your password” emails – this shows very clearly you are not sending emails from you entire WP install. Difficult for me to understand why you are largely ignoring this important fact.

    Thread Starter Auburnixi

    (@auburnixi)

    No – I’ve seen many cases where SMTP plugin test worked but SMTP is still set up incorrectly.

    Okay, good to know.

    There probably isn’t a link. It’s always possible that something changed on your WP install (that you may not even be aware of) at around the same time that you updated.

    All I did at the time was change the keys for the V3 recaptcha. No updates to plugins or anything else, no other file uploads.

    Don’t forget you are not getting “forgot your password” emails – this shows very clearly you are not sending emails from you entire WP install.

    Trust me, I’m very aware of this fact. I’m not ignoring it, I’m just baffled because I haven’t done anything else here. The SMTP was working before, I changed settings for Contact Form 7, and now it’s not.
    I suppose I was hoping more that CF7 edits might have changed some mail settings when I updated, and that caused the break. If that’s not the case, that’s fine.

    Thread Starter Auburnixi

    (@auburnixi)

    An update:

    It looks like these are two different problems.

    CF7 did in fact break when I started using V3 ReCaptcha. We did a rollback to a previous version, and used the other plugin to force V2, and things are now working again.

    However, “Forgot your password” and WP Forms are still not working. This is likely the SMTP issue. It was my mistake assuming these were related.

    I would like to be using V3 but I don’t want it to break the forms again. If anyone has suggestions on why this might be happening (besides wp_footer in the footer), please advise.

    • This reply was modified 5 years, 10 months ago by Auburnixi.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CF7 Recaptcha V3 update broke email functions’ is closed to new replies.