Title: Improve Error Recovery Message for Admin Login
Last modified: October 9, 2025

---

# Improve Error Recovery Message for Admin Login

 *  Resolved [vastlightingcorporation](https://wordpress.org/support/users/vastlightingcorporation/)
 * (@vastlightingcorporation)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/improve-error-recovery-message-for-admin-login-2/)
 * My website /wp-admin shows “There has been a critical error.” I can’t access 
   the admin dashboard. How can I fix this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimprove-error-recovery-message-for-admin-login-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/improve-error-recovery-message-for-admin-login-2/#post-18674239)
 * The reason for the error should be visible in the error log. You can find it 
   in your hosting area. If necessary, the support of your hosting can help you.
 * Alternatively, you could also enable debugging in WordPress. How to do this is
   described here: [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)–
   also here the support of your hosting can help you if necessary to edit the file
   accordingly.
 * In both cases you should be able to see what the cause is in the logfile.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [6 months ago](https://wordpress.org/support/topic/improve-error-recovery-message-for-admin-login-2/#post-18675299)
 * If you’re using WordPress 6.5 or higher, the email address saved at Settings -
   > General should have also received an email with a recovery link that will send
   a site into debug mode where you can address the problem.
 * If you are, and you did not receive that email, it sounds like your hosting provider
   has disabled PHP’s `mail()` function, which WordPress uses to send you email 
   notifications and is also used by contact form plugins and more.
 * This is a common safeguard employed by hosting providers when they suspect that
   another customer on the same server is sending spam emails directly from the 
   server. Another alternative is that PHP’s `mail()` function is still active, 
   but spammer activity from the server has already caused any email sent from it
   to be blocklisted. This would result in the emails being sent but never received
   by any email address with basic anti-spam capabilities.
 * Once you’ve recovered access to the site, you can check this by leaving a comment
   on your site and checking if you receive an email. Another alternative would 
   be to use the [Health Check](https://wordpress.org/plugins/health-check/) plugin
   and send yourself a test email from the plugin’s Tools tab to see if it works.
 * If you didn’t receive a test email, you could try using an [SMTP plugin](https://wordpress.org/plugins/tags/smtp/)
   to configure your WordPress site to use your email’s outgoing mail server instead
   of PHP’s `mail()` function. And, if the chosen SMTP plugin doesn’t work either,
   I recommend reaching out to their support.

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

The topic ‘Improve Error Recovery Message for Admin Login’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/improve-error-recovery-message-for-admin-login-2/#post-18675299)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
