Hello @logandev !
Thank you for the additional information/context – it’s very helpful.
Do note that upgrading the PHP version affects your entire WordPress environment, including WordPress core, your active theme, and all installed plugins, not just WP 2FA. While the timing suggests the PHP upgrade may have exposed the issue, it doesn’t necessarily mean the plugin itself is the cause.
We have not received any other reports of this behavior, and our own testing shows that email-based 2FA continues to work as expected on the latest supported PHP versions.
Since you’re currently using WP 2FA 3.1.1.2, we’d first recommend updating to the latest version of the plugin (4.0), which was just released and includes a number of improvements and fixes. Once updated, please check whether the issue still occurs.
If the problem persists, we’d suggest starting with the email delivery side of things. WP 2FA uses WordPress’ standard email functionality (wp_mail()), so the first thing to determine is whether the email is actually being generated and handed off by the website.
If you’re using an SMTP plugin (such as WP Mail SMTP, FluentSMTP, Post SMTP etc.), could you check whether the 2FA email appears in its email log? This will help determine whether the email is being sent by the site but failing during delivery, or whether it isn’t being generated at all.
Additionally, if you could provide any of the following, it would help us narrow this down:
- Any errors from your site’s
debug.log (if WP_DEBUG and WP_DEBUG_LOG are enabled).
- Any errors shown in your browser’s Developer Tools (F12) → Console when attempting to log in.
- Any relevant logs or errors from your SMTP plugin or mail service related to our 2FA code emails?
Once we have that information, we’ll be happy to investigate further.