Title: 503 error after entering 2FA Code
Last modified: June 26, 2025

---

# 503 error after entering 2FA Code

 *  Resolved [wfuser](https://wordpress.org/support/users/wfuser/)
 * (@wfuser)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/)
 * I’ve had Wordfence (free) plugin installed on my WordPress site for years without
   any issues, today when I tried to log in to my site I would enter my user name
   and password and then would get prompted for my 2FA code. After entering the 
   code I would get a 503 Error – Service Unavailable – The Server is temporarily
   busy. Try again later. I tried logging in multiple times over the next couple
   of hours with the same result.
 * I then, enabled PHP logging to see if the issue was with PHP and nothing so it
   happening somewhere before that. I then manually disabled the Wordfence plugin
   and was able to get in without any issues. I have auto update on both my WordPress
   install and my plugins so they are both on the current versions (6.8.1 & 8.0.5).
 * I would like to reenable the plugin and keep using it, but and looking for a 
   resolution first… Anyone have any ideas???

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

 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18530359)
 * Hello, [@wfuser](https://wordpress.org/support/users/wfuser/)
 * Can you confirm if disabling 2FA allows you to log in successfully? Also, are
   you using any other login-related plugins at the moment? If so, try disabling
   those temporarily to see if the issue persists.
 * If that doesn’t narrow it down, can you please temporarily enable Wordfence and
   send over diagnostics? You can do that via **Wordfence > Tools > Diagnostics**
   page using the **Send Report by Email** button. Please email those to the `wftest
   @ wordfence . com` address with your forum username included in the appropriate
   field.
 * Let us know here when those are sent, and we’ll take a look.
   Thanks,Scott
 *  Thread Starter [wfuser](https://wordpress.org/support/users/wfuser/)
 * (@wfuser)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18530902)
 * Now I am unable to re-enable the plugin. I went back and renamed the folder back
   to /wp-content/plugins/wordfence and when I go in WordPress and try to activate
   the plugin, it again goes to the 503 error and doesn’t enable the plug in..
 *  [costakeys](https://wordpress.org/support/users/costakeys/)
 * (@costakeys)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18531029)
 * I am not using 2FA and i am receiving also 503 errors.
 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18531429)
 * [@wfuser](https://wordpress.org/support/users/wfuser/)
 * I see you mentioned PHP error logging was not showing any signs of an issue previously.
   I recommend rechecking those logs and any logging available from your hosting
   panel. If you do not see anything, I recommend reaching out to your host. It 
   sounds like this could be due to resource or configuration issues. If the plugin
   cannot be activated, I suspect an error will be visible in the logs and should
   give some additional information.
 * Thanks,
   Scott
 *  [JustT2552](https://wordpress.org/support/users/justt2552/)
 * (@justt2552)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18531879)
 * I am having the same issue today with 3 of my websites. 1 Premium version and
   two on the free version. I do not use 2FA.
 * Here is what I know after an hour with server support they have come to the conclusion
   it is Wordfence causing the problem. Here is what I know so far.
    - You cannot login via wp-admin 503 error Service Unavailable The server is 
      temporarily busy, try again later!
    - You can login via Cpanel to get to wp-dashboard.
    - If you deactivate the plugin from plugin page you get 503- it will not deactivate.
    - If you try to update any other plugins eg: Yoast SEO, you get this error under
      the plugin update link. “Update failed: <!DOCTYPE html> 503 Service Unavailable
      [@media](https://wordpress.org/support/users/media/) (prefers-color-scheme:
      dark){body{background-color:#000!important}} 503 Service Unavailable The server
      is temporarily busy, try again later!”
    - If you deactivate Wordfence by renaming the file, you can then not reactivate
      it you just get a 503  page error:  **But having it deactivated fixes all 
      the problems above.**
    - I updated all plugins on one of my sites and still same issue.
 * My hosting provider is **“Digital Pacific”** don’t know if its somehow coincidental
   other are on the same host? However they say its the plugin.
 * Now here is the crazy part I have another 3 websites on another host with similar
   plugins and Elementor Hello theme and they have no issues logging in or updating?
 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18531942)
 * Hello, [@justt2552](https://wordpress.org/support/users/justt2552/). Thanks for
   reporting the issue. WordPress forum guidelines require that users create separate
   topics for support. If the problem persists, please open a new topic (or a support
   request via Premium, as you mentioned having a license). We’ll be happy to assist
   you when we see a case come over.
 * [@wfuser](https://wordpress.org/support/users/wfuser/), can you please confirm
   who your hosting provider is, and if the issue is still occurring?
 * The** Server is temporarily busy **error may be the web server serving 503s due
   to a hosting or configuration issue. If it is only happening with Wordfence, 
   it could be a database problem. Checking to see what exact errors are being generated
   via any available logs may help narrow it down.
 * Thanks,
   Scott
 *  Thread Starter [wfuser](https://wordpress.org/support/users/wfuser/)
 * (@wfuser)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18535023)
 * My hosting provider is A2, which was just bought out by hosting.com. In the past
   2 months, my hosting has seems to have been migrated over to their platform. 
   I opened a support ticket with them, and they responded by saying “I have enabled
   the Wordfence plugin by enabling PHP 8.4 version. Could you please verify it 
   from your end?” It appears that this change in PHP version has resolved the issue
   with the Wordfence plugin, but has broken other plugins. I am not 100% sure what
   version I was on previously. I am not happy with the way this is being resolved
   by my hosting provider, but in my case, this issue can be marked as resolved.
   Thanks
 *  [costakeys](https://wordpress.org/support/users/costakeys/)
 * (@costakeys)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18535567)
 * [@wfuser](https://wordpress.org/support/users/wfuser/) My hosting provider is
   also A2 and i see in Cpanel that the most recent PHP version i can select is 
   8.3! (8.1 is my current PHP version) Do you think i should upgrade also to 8.3?
   With which plug-ings you have problems with 8.4 version?
 *  Thread Starter [wfuser](https://wordpress.org/support/users/wfuser/)
 * (@wfuser)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18536743)
 * [@costakeys](https://wordpress.org/support/users/costakeys/) I am not sure as
   I did not check the PHP version before support made the change. You could open
   a support ticket with A2 and ask if they can update it to v8.4. I would suggest
   you backup your site before doing this as in my case the PHP upgrade broke other
   things. Apparently when A2 migrated to hosting.com we were moved to some kind
   of platform where they have full rights into our hosting and WordPress environments
   and can basically change anything. Also the fact that they made such a major 
   change on the fly without verifying with me first is a huge red flag. So proceed
   with caution with A2 support. I know that after this is resolved, I will be looking
   to move to a different hosting provider.
 *  Plugin Support [wfscott](https://wordpress.org/support/users/wfscott/)
 * (@wfscott)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18536780)
 * Thanks for getting back and for providing the information. This sounds like it
   is specific to the configuration of a few hosting providers and may have stemmed
   from a PHP or cPanel update, a change in a cPanel extension, an OS update, or
   similar. This case is now marked as resolved here, however, if you have any further
   questions, please feel free to open a support case.
   Thanks,Scott
 *  [costakeys](https://wordpress.org/support/users/costakeys/)
 * (@costakeys)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18542360)
 * [@wfuser](https://wordpress.org/support/users/wfuser/)
 * Upon checking the issue further, it seems that it was caused by the MySQL extensions
   with CloudLinux. I’ve enabled the following PHP extensions from our selector,
   and now users are able to log in normally with the WordFence plugin active.
 * mysqlnd
   nd_mysqlind_pdo_mysql
 * At this point, all websites that use PHP 8.1 will have the necessary extensions
   enabled.
   I hope this would help you.

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

The topic ‘503 error after entering 2FA Code’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 11 replies
 * 5 participants
 * Last reply from: [costakeys](https://wordpress.org/support/users/costakeys/)
 * Last activity: [11 months, 1 week ago](https://wordpress.org/support/topic/503-error-after-entering-2fa-code/#post-18542360)
 * Status: resolved