You load your site and instead of your homepage, you get a plain white box: “There has been a critical error on this website. Please check your site admin email inbox for instructions.” No detail, no stack trace, nothing you can act on — just a message telling you something is badly wrong.
The good news: this error is almost always recoverable, and WordPress itself usually hands you the first clue. Here’s how to find the real cause and fix it, step by step, as part of the kind of hands-on troubleshooting covered in our guide to WordPress website maintenance.
What causes the critical error message
WordPress shows this generic message whenever a fatal PHP error happens while a page loads — it’s a catch-all, not a diagnosis. The usual culprits, roughly in order of how often we see them:
- A plugin or theme update that’s incompatible with your PHP version, your other plugins, or each other.
- Running out of PHP memory — a plugin or import process needs more memory than your hosting plan allows.
- A PHP version change on the hosting side that a plugin or theme hasn’t caught up with.
- A corrupted or edited core file, often from a failed update or a bad manual edit.
- A broken functions.php edit — a missing semicolon or bracket in custom code added directly to the theme.
- Malware or a hacked file that’s interfering with normal execution (less common, but worth ruling out if nothing else explains it).
Step 1: Check your admin email
Since WordPress 5.2, the software emails the site administrator when it detects a fatal error, and that email usually names the exact plugin or file involved. Check the inbox tied to your WordPress admin account first — this alone resolves a large share of cases without touching any code.
Step 2: Turn on debug mode to see the real error
If the email doesn’t arrive or doesn’t say enough, enable WordPress’s debug log. Connect to your site via FTP or your host’s file manager, open wp-config.php, and add (or edit) these lines above the line that says /* That's all, stop editing! */:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Reload the site, then check wp-content/debug.log for the most recent entry. It will name the exact file and line number that triggered the fatal error. Turn these settings back off once you’ve fixed the issue — a debug log left on a live site is a minor security and performance risk.
Step 3: Deactivate plugins to isolate the problem
If the log points to a plugin, or you can’t access the log at all, deactivate plugins one by one via FTP: rename the specific plugin’s folder inside wp-content/plugins/ (adding “.disabled” to the name is enough), and reload the site after each one. When the site comes back, you’ve found the plugin at fault. Update it, replace it, or contact its developer before reactivating.
If you can’t isolate it to one plugin, rename the entire plugins folder to deactivate everything at once, then reintroduce plugins individually.
Step 4: Rule out the theme
If deactivating plugins doesn’t fix it, switch to a default WordPress theme (Twenty Twenty-Four or similar) via wp-content/themes/ the same way — rename the active theme’s folder so WordPress falls back automatically. If the site recovers, the problem is in your theme’s code, most often a bad edit to functions.php.
Step 5: Restore from backup if nothing else works
If the error started right after an update and you can’t quickly isolate the cause, restoring the most recent backup from before the update is often faster than debugging live. This is exactly why reliable, tested backups matter more than almost any other maintenance task — a backup you’ve never actually restored from is a guess, not a safety net.
When to stop troubleshooting and get help
Call in a developer immediately if: the site is making money and every minute of downtime costs you, you don’t have a recent backup to fall back on, the debug log points to a core WordPress file rather than a plugin or theme, or you suspect the cause is a hack rather than a bad update. Our general WordPress troubleshooting guide covers related issues like white screens and database connection errors if this isn’t quite your problem.
Preventing it next time
Most critical errors are preventable with three habits: test updates on a staging copy of your site before applying them to production, update plugins and themes one at a time rather than all at once so you can pinpoint a cause fast, and keep PHP and plugin versions aligned rather than letting one lag years behind the other. A maintenance plan that does this on a schedule is, in practice, the difference between a five-minute fix and a half-day outage.
Frequently Asked Questions
Will I lose data if I see the “critical error” message?
No. This error happens while WordPress is trying to run PHP code; it doesn’t touch your database or uploaded files. Your posts, pages and media are intact once the underlying code problem is fixed. That said, take a full backup before you try any manual fix, because editing files by hand is the one step that can cause real damage if something is mistyped.
Why does the critical error show right after I update a plugin?
This is the single most common trigger: the new plugin version runs code that conflicts with another active plugin, your theme, or your site’s PHP version. Deactivating the plugin you just updated is usually the fastest way to confirm this and get back online. Once the site is back, run that update again on a staging copy first, so you can see exactly what it conflicts with before it reaches your live site.
Can I fix a critical error without FTP access?
If your host provides a file manager or a plugin-management option inside cPanel or a similar panel, you can rename plugin and theme folders the same way without a dedicated FTP client. If you’re fully locked out of the dashboard and have no file access at all, you’ll need to go through your host’s support or a developer.
Does enabling WP_DEBUG fix the error?
No, debug mode only reveals what’s causing the error so you can fix it — it doesn’t repair anything by itself. Always switch WP_DEBUG_DISPLAY back to false once you’ve read the log, so error details aren’t shown to site visitors. Better still, switch all three debug settings off when you are done, because a log file left growing on a live site is clutter and a small security risk.
How long does it typically take to fix this error?
If the admin email names the plugin, it can be a five-minute fix: deactivate or roll back that plugin. If the cause isn’t obvious and you need to isolate it by testing plugins and themes one at a time, expect it to take longer, especially on a site with many active plugins.