Title: Plugin Not Working After PHP Version Upgrade
Last modified: July 6, 2026

---

# Plugin Not Working After PHP Version Upgrade

 *  Resolved [logandev](https://wordpress.org/support/users/logandev/)
 * (@logandev)
 * [1 week, 1 day ago](https://wordpress.org/support/topic/plugin-not-working-after-php-version-upgrade/)
 * For security I can’t post our specific login page.
 * We are using version 3.1.1.2 of the plugin and it was working great on the latest
   version of WordPress 7.0
 * It was only when our environment’s PHP version got updated to PHP 8.5 that we
   saw issues occurring.
 * Essentially everything works except for the 2FA code is never sent to the email.
 * That is the only problem. Everything else works as expected.
 * Is there any other information or logging I can provide to assist?
 * Thanks,
 * Logan

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [1 week ago](https://wordpress.org/support/topic/plugin-not-working-after-php-version-upgrade/#post-18959009)
 * Hello [@logandev](https://wordpress.org/support/users/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.
 *  Thread Starter [logandev](https://wordpress.org/support/users/logandev/)
 * (@logandev)
 * [4 days, 15 hours ago](https://wordpress.org/support/topic/plugin-not-working-after-php-version-upgrade/#post-18962149)
 * Hi [@lucianwpwhite](https://wordpress.org/support/users/lucianwpwhite/) I was
   able to resolve. It looked to be misconfiguration on our end with one of our 
   SMTP plugins causing issues. Thanks!
 *  Plugin Support [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * (@lucianwpwhite)
 * [2 days, 6 hours ago](https://wordpress.org/support/topic/plugin-not-working-after-php-version-upgrade/#post-18963254)
 * Thank you for letting us know [@logandev](https://wordpress.org/support/users/logandev/)!
   Very happy that my suggestions were helpful!
   If you have a minute to spare, don’t
   forget to drop us a review [here on the forums ](https://wordpress.org/support/plugin/wp-2fa/reviews/#new-post)
   with your experience using our plugin and support – it takes a minute but it 
   really helps out! Many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-not-working-after-php-version-upgrade%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Lucian Padureanu](https://wordpress.org/support/users/lucianwpwhite/)
 * Last activity: [2 days, 6 hours ago](https://wordpress.org/support/topic/plugin-not-working-after-php-version-upgrade/#post-18963254)
 * Status: resolved