WordPress Critical Error: What 'There Has Been a Critical Error on This Website' Means — and How to Fix It
Since WordPress 5.2, a fatal PHP error no longer shows as a blank white screen — instead you get a polite, unhelpful message: 'There has been a critical error on this website.' Underneath that sentence is a specific, fixable fault: usually a plugin, a theme, or a PHP version problem. This guide shows you how to find out *which* one, using the tools WordPress itself gives you.
First: check your email for the recovery link
When a critical error happens, WordPress emails the site admin with the subject 'Your Site is Experiencing a Technical Issue'. That email matters for two reasons: it names the plugin or theme involved surprisingly often, and it contains a recovery mode link that lets you log in to wp-admin even while the front end is down. In recovery mode, the faulty plugin is paused for you, so you can deactivate it properly. If the email never arrives, don't worry — the manual route below does the same job.
Step 1: Turn on debug logging and read the actual error
Guessing wastes hours; the error log tells you the file and line. Open wp-config.php (via FTP or your hosting file manager) and make sure these lines are set — add them above the 'That's all, stop editing!' comment if they are missing:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Reload the broken page once, then open /wp-content/debug.log. Scroll to the bottom: a line starting PHP Fatal error will name the exact file — and the path tells you whether it lives in a plugin (/plugins/plugin-name/...), your theme (/themes/theme-name/...) or WordPress core. That single line turns a mystery into a targeted fix. (Turn WP_DEBUG back to false when you're done — a live site should not log publicly.)
Step 2: Deactivate the culprit without wp-admin
If you can't log in, use FTP or the hosting file manager. Go to /wp-content/plugins/ and rename the folder of the plugin named in the error — add -off to its name. WordPress will deactivate it automatically because it can no longer find it, and your site should come back immediately. If the error names your theme instead, rename the active theme's folder in /wp-content/themes/; WordPress will fall back to a default theme (make sure one like Twenty Twenty-Five is installed). If the log doesn't clearly name one plugin, rename the whole plugins folder to deactivate everything, confirm the site loads, then restore and reactivate plugins one at a time until the error returns — the last one is your culprit.
Renaming is reversible and deletes nothing — your plugin settings stay in the database. Never delete a plugin folder to solve this; you may need its data, and deletion makes diagnosis harder.
Step 3: Check the PHP version
A very common pattern: the site worked yesterday, the host upgraded PHP overnight (or you did), and now a plugin that uses removed PHP functions throws a fatal error. In your hosting panel, check the PHP version (most modern WordPress sites should run PHP 8.1–8.3) and look at the debug log for phrases like Call to undefined function or Deprecated. The real fixes are: update the offending plugin/theme, replace an abandoned plugin that no longer supports current PHP, or — temporarily — step PHP back one version while you arrange the proper fix. Running an ancient PHP version long-term is a security risk, so treat it as a bridge, not a solution.
Step 4: Rule out the memory limit
If the log says Allowed memory size of ... bytes exhausted, WordPress ran out of its memory allocation — typically a heavy page builder, a bulk import, or a plugin leak. Raise the limit by adding this to wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );If the error persists at 256M, the problem is a plugin consuming abnormal memory, not the limit itself — go back to Step 2 and isolate it.
Preventing the next critical error
- Update on a schedule, not all at once — and take a backup first, so any single bad update is a five-minute rollback.
- Remove abandoned plugins — if it hasn't been updated in two years, it is a critical error waiting for the next PHP upgrade.
- Use a staging copy for big changes — most decent hosts offer one-click staging.
- Keep the admin email current — the recovery-mode email only helps if it reaches someone who reads it.
If the debug log points at theme code, a WooCommerce extension conflict, or something you don't recognise, that's a good moment to hand it over — critical-error diagnosis is the core of my WordPress troubleshooting work, and most are fixed the same day. If you'd rather never see this message again, the care plan covers monitored updates with backups before anything changes.
Frequently Asked Questions
What causes the WordPress critical error?
A fatal PHP error — most often a plugin or theme bug, an incompatibility with the PHP version your host runs, or exhausted PHP memory. WordPress hides the technical detail behind the generic message, but the debug log records the exact file and line.
Is the critical error the same as the white screen of death?
Effectively yes. The critical error screen is the modern (WordPress 5.2+) replacement for the blank white screen, with the advantage of recovery mode and an admin email that often names the faulty plugin.
Will deactivating plugins lose my settings?
No. Deactivation — including by renaming the plugin folder — leaves settings and data in the database. Reactivating the plugin restores everything, which is why renaming is the safe diagnostic method.
Rather not fight this error yourself?
Send me the error message and what changed before it appeared. Most WordPress faults are diagnosed the same day — you approve the fixed price before any repair starts.
Get WordPress Troubleshooting HelpWordPress Site Maintenance & Support for $75/m
Stop worrying about updates, hacks and downtime. I keep your WordPress site fast, secure and backed up — so you can focus on your business.
- Weekly core, theme & plugin updates
- Daily backups & uptime monitoring
- Malware scans & security hardening
- Priority fixes for errors & small tasks
More WordPress Guides
How to Fix 'Error Establishing a Database Connection' in WordPress
Your site is down and WordPress can't reach its database. Work through the causes in order — credentials, server, corruption — and get back online without losing data.
Read the guideWordPress Site Broken After an Update? Do This First
The update finished and now something's wrong — layout shattered, a feature dead, or a full error screen. The order you do things in decides whether it's a 10-minute fix or a lost day.
Read the guide