How to fix the WordPress white screen of death
A blank white page with no error message, caused by a plugin, a theme, or a memory limit — and how to work out which one.
The white screen of death is a plain white page with nothing on it — no error, no message, nothing to search for. That silence is the actual problem: WordPress hit a fatal error and, in its default configuration, said nothing about it at all.
The fix is not to guess. It is to turn the error back on, read what it says, and act on that. Every case in this guide starts from there.
Step 1: make WordPress tell you what happened
Connect to your site over FTP or the file manager and open wp-config.php, in the root of your WordPress install. Find the line that says:
/* That's all, stop editing! Happy publishing. */
Add these two lines directly above it:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
This writes a detailed log of every error to wp-content/debug.log without printing anything on the page itself — useful if the site has visitors, since a raw PHP error dumped onto a public page is its own problem. Reload the page that was blank, then open debug.log and look at the most recent entries. You are looking for a line containing Fatal error, and it will usually name a specific plugin or theme file.
If nothing gets written even after you reload the page, check your host's PHP error log instead — see reading a PHP error log. Some fatal errors happen before WordPress's own logging is set up.
Step 2: read the error, not just its presence
Three messages account for most white screens:
| What the log says | What it means |
|---|---|
Allowed memory size of ... exhausted | PHP hit its memory limit. Go to step 3. |
Fatal error ... in wp-content/plugins/... | A specific plugin caused it. Go to step 4. |
Fatal error ... in wp-content/themes/... | The active theme caused it. Go to step 5. |
Step 3: if it is a memory error
WordPress ran out of the memory PHP allows it. Raise the limit in wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
This raises the limit WordPress requests for itself. If the error persists, the server-wide PHP limit may need raising too — the full steps for both are in increasing the WordPress memory limit. Treat a genuine memory exhaustion as a symptom worth investigating rather than just raising the ceiling indefinitely: a single badly written plugin can leak memory until no limit is high enough.
Step 4: if it names a plugin
The error log will show a path like wp-content/plugins/some-plugin/some-file.php. That plugin is the cause, whether from a bug, a conflict with another plugin, or incompatibility with your PHP version after an update.
If you can reach wp-admin, deactivate that plugin from the Plugins screen and the site should recover immediately. If the white screen covers the admin area too, you cannot click anything — rename the plugin's folder instead, using FTP or the file manager:
wp-content/plugins/some-plugin → wp-content/plugins/some-plugin-disabled
WordPress cannot find a renamed plugin's main file, so it deactivates automatically without you touching the dashboard. Reload the site. If it comes back, the plugin was the cause — update it, look for a newer version compatible with your PHP version, or leave it disabled and find an alternative. Disabling plugins without admin access covers this in more depth, including what to do when you cannot tell which one is at fault.
Step 5: if it names a theme
Same idea, different folder. Rename the active theme's folder inside wp-content/themes and WordPress falls back to a default theme automatically, the same way it does for a renamed plugin. If the site returns, the theme — or more often a small customisation inside its functions.php — is the cause. Check any code you or a developer recently added there before blaming the theme itself.
Step 6: if the log shows nothing useful
Occasionally the page is genuinely blank with no fatal error logged anywhere, which usually means PHP itself crashed before WordPress could log anything — a syntax error in a file that was edited directly, or a PHP version mismatch with a plugin using deprecated syntax.
- Recently edited a file by hand? A missing semicolon or an unclosed bracket in
functions.phpor a plugin file causes exactly this. Review your last edit for a typo. - Recently changed PHP version? Some older plugins throw fatal errors on newer PHP. Try switching back one version in your control panel to confirm, then look for an updated version of the plugin.
- None of the above changed recently? Deactivate every plugin by renaming the whole
pluginsfolder to something else, then rename it back and reload — this forces WordPress to notice every plugin is "missing" and clears any that were stuck mid-failure. Reactivate them one at a time to find the culprit.
Renaming a plugin or theme folder is reversible and safe, but if you plan to go further and start deleting files, back up first. See backing up a WordPress site.
Turn debugging back off once it is fixed
Once the site is working again, set WP_DEBUG back to false in wp-config.php. Leaving it on permanently is not dangerous by itself, provided WP_DEBUG_DISPLAY stays false, but the log file grows continuously and is worth switching off once you no longer need it.
If you have worked through every step here and the site is still blank, send us the contents of debug.log and we can take it from there.
Related reading
Rename the plugin folder over FTP, or edit the database directly, when a broken plugin has locked you out of the dashboard itself.
How to increase the WordPress memory limitRaise WP_MEMORY_LIMIT in wp-config.php first, then the server-wide PHP limit behind it if the error keeps coming back.
How to debug a blank white pageNothing on the page at all, not even an error — here is how to make the failure describe itself instead of hiding.
How to read a PHP error logThe error log names the exact file and line that failed — here is where to find it and how to read what it is telling you.