“There Has Been a Critical Error on This Website”: How to Fix It (2026)
“There has been a critical error on this website” means a fatal PHP error stopped WordPress. Check the admin email inbox for a message with a recovery mode link, use it to log in, and deactivate the plugin or theme it names. If no email arrives, turn on debug logging and read wp-content/debug.log.
This is one of the few WordPress errors that tells you where to look first: your email. This guide covers recovery mode, the manual route through FTP, and how to read the log so you fix the cause instead of guessing.
What the Critical Error Means
The WordPress handbook says this message indicates that something on your site caused an error that prevents WordPress from running as expected. The most common causes it lists are plugin conflicts, theme compatibility problems, an incompatible PHP version, hitting the memory limit and corrupted WordPress files.
Quick Diagnosis
| What happened before | Likely cause | Start with |
|---|---|---|
| You updated or installed a plugin | Plugin conflict or bug | Fix 1, then Fix 2 |
| You changed theme or edited functions.php | Theme problem or code error | Fix 3 |
| Your host changed the PHP version | Incompatible PHP version | Fix 4 |
| Message mentions memory | Memory limit | See our memory limit guide |
Before You Start
Back up your files and database first. If you cannot reach the dashboard, you will need FTP or your host’s file manager.
Fix 1: Use the Recovery Mode Email
WordPress sends an email to the site’s admin address when a fatal error occurs. According to the WordPress core team, that email contains a secret link to recovery mode. Clicking it places a cookie on your browser, and plugins or themes causing the fatal error are paused for you only. You then log in as normal.
Inside recovery mode you see which plugin or theme is paused and the exact error. You can deactivate it, fix it, or send the error to its author. You can exit anytime from the admin bar. Visitors still see the broken site until you fix the problem, because the pause applies only to your browser. Check your spam folder if the email is missing.
Fix 2: Deactivate Plugins Manually
No email, or no access? Connect by FTP, open wp-content and rename the plugins folder to plugins_old, which the handbook describes as a way to deactivate all plugins. Reload the site. If it works, rename the folder back, then rename plugin folders inside one at a time until the error returns. The last one you renamed is the cause. Our 500 error guide shows the same method.
Fix 3: Switch to a Default Theme
Rename the active theme’s folder inside wp-content/themes so WordPress falls back to a default theme. If you recently edited functions.php, undo that edit first. A missing semicolon or a curly quote is enough to cause a fatal error, and the handbook lists these as common syntax mistakes.
Fix 4: Check the PHP Version
An incompatible PHP version is on the handbook’s list of causes. In your hosting panel, look at which PHP version the site uses and whether it changed recently. Switching back to the previous version can confirm the cause, then update the plugin or theme that does not support the new one. Do not stay on an old version for long.
Read the Error in debug.log
To find the exact cause, the handbook says to enable debug mode in wp-config.php and read wp-content/debug.log. The official debugging guide gives this setup, which logs errors instead of showing them to visitors:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
Reload the broken page and open the log. A line like “Fatal error … in /wp-content/plugins/plugin-name/file.php” names the culprit. The guide says debug tools are for local and staging sites, so remove these lines when you finish.
Fix 5: Replace Core Files
If the log points to a WordPress core file, the handbook suggests corrupted files as a cause. Upload fresh wp-admin and wp-includes folders from wordpress.org. Do not overwrite wp-content or wp-config.php. For a blank page instead of a message, see our white screen of death guide.
How to Prevent It
- Back up before every update.
- Update plugins one at a time.
- Test big updates on a staging copy.
- Make sure your admin email is one you read, so the recovery link reaches you.
Verified Facts and Sources
The cause list and the debug.log method come from the WordPress handbook. The recovery mode behavior comes from the WordPress core team’s announcement for version 5.2. We did not trigger a critical error on a test site for this article.
- Common WordPress errors (Advanced Administration Handbook)
- Debugging in WordPress (Advanced Administration Handbook)
- Fatal Error Recovery Mode in 5.2 (Make WordPress Core)
Frequently Asked Questions
Where is the recovery mode email sent?
To the site’s admin email address. If it is wrong or unread, use FTP to deactivate plugins instead.
Does recovery mode fix my site for visitors?
No. Broken plugins or themes are paused only for your browser. Visitors still see the error until you deactivate or fix the cause.
Is the critical error the same as the white screen of death?
They have the same kind of cause, a fatal PHP error. The critical error screen shows a message, while the white screen shows nothing.
Will I lose content?
Not from the error itself. Your content is in the database. Still, take a backup before changing files.
Updated December 2, 2026.