How to Fix the WordPress White Screen of Death
You open your site and get nothing but a blank white page. No error, no header, no footer. It is every WordPress owner’s nightmare, and a proper WordPress white screen of death fix starts with one reassuring fact: your content is almost certainly still there. The page is blank because WordPress crashed while building it, not because your posts are gone.
The white screen of death (WSOD) happens when PHP hits a fatal error with error display switched off. PHP dies before sending any HTML, so the browser shows nothing. Since WordPress 5.2, the same crash often shows “There has been a critical error on this website” instead. Same cause, same cure — the WordPress white screen of death fix below works for both.
Work through the steps in order, least invasive first — most sites are back by step three.
What Causes the White Screen of Death?
A WordPress white screen of death fix starts with one question: what changed just before the screen went blank? Usually it is one of four things.
Plugin conflict — the most common cause, especially right after an update. New code can clash with another plugin, your theme, or your PHP version — so if the screen went white right after you clicked update, you already have your prime suspect.
Theme error. One typo in functions.php — a missing semicolon, a misplaced bracket — kills every page, because that file loads on every request.
Memory exhaustion. WordPress runs on a fixed memory allowance, and a heavy plugin, a big import, or a traffic spike can push it over the limit.
Corrupted core files, usually from a WordPress update that failed halfway. A timeout or lost connection can leave core files half-written, and WordPress cannot finish loading.
| What you see | Most likely cause | Where to start |
|---|---|---|
| Blank right after a plugin update | Plugin conflict | Step 1, then Step 3 |
| Blank after editing theme files | Typo in functions.php | Step 4 |
| Blank during a busy period or big import | PHP memory limit reached | Step 5 |
| Blank right after a WordPress update | Corrupted core files | Step 2, then reinstall core |
| wp-admin loads, front end is blank | Theme or front-end plugin | Step 4 |
Before You Start: Back Up First
Before you touch a file, back up. Every fix here is safe done carefully, but you are about to edit configuration files and rename folders, and a backup is the cheapest insurance in any WordPress white screen of death fix — it turns a mistake into a five-minute restore.
Take a full backup — files and database — from your hosting control panel, or from the file manager and phpMyAdmin if the dashboard is dead. Save a copy of wp-config.php on your own computer too: it holds your database credentials.
Our roundup of 10 free tools every WordPress site owner should use includes free backup tools worth installing once the site is back.
Step 1: Check Your Email for Recovery Mode
Since WordPress 5.2, a fatal error triggers an email to the site admin: “Your Site is Experiencing a Technical Issue”. That email is the easiest WordPress white screen of death fix there is, so check your inbox — and spam folder — before anything else.
The email links to Recovery Mode: clicking it logs you in with the broken plugin or theme paused, so you can reach the dashboard and deactivate the culprit.
No email, or an expired link? Move to Step 2 — and later check the admin email under Settings > General is one you read.
Step 2: Use the Debug Log to Drive Your WordPress White Screen of Death Fix
If Recovery Mode did not get you in, the debug log names the culprit fastest. Log the error to a file instead of displaying it — showing errors on a live site is a security risk.
In your host’s file manager or over FTP, open wp-config.php and add these three lines just above this line:
/* That's all, stop editing! Happy blogging. */define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);Save, reload the blank page, then open wp-content/debug.log. The file path in the latest entries is the clue:
wp-content/plugins/— a plugin; the folder afterplugins/is the culprit.wp-content/themes/— your theme, usually functions.php.wp-includes/orwp-admin/— WordPress core, pointing to corrupted files from a failed update.
A good WordPress white screen of death fix is diagnosis first, repair second — the log turns guessing into knowing. Full reference: the official WordPress debugging documentation.
When done, remove the three debug lines. Leaving logging on fills the server with log files.
Step 3: Deactivate All Plugins, Then Reactivate One by One
If the log points at a plugin — or nowhere useful — deactivate them all. A plugin conflict is the number one cause of the white screen, and this step finds it with certainty in a WordPress white screen of death fix.
In the dashboard, go to Plugins > Installed Plugins, select all, and Deactivate. If the site returns, a plugin was responsible.
Without dashboard access, rename the plugins folder to plugins-old over FTP — WordPress loads with no plugins. If the site returns, rename it back and reactivate one at a time, reloading after each. When the white screen returns, the last plugin you switched on is the culprit: leave it off or replace it.
Reactivate slowly, checking after each plugin, not after a batch. Also check for an update: a plugin that breaks after one update is often fixed by the next.
Step 4: Switch to a Default Theme
If plugins are not the problem, test the theme next. A broken theme blanks the whole site because it loads on every page — which is why theme testing belongs in any WordPress white screen of death fix.
In the dashboard, go to Appearance > Themes and activate a default theme such as Twenty Twenty-Five. If the site returns, your theme is the problem — usually a bad edit in functions.php, or an update that mismatches your WordPress or PHP version.
Without dashboard access, rename your theme’s folder inside wp-content/themes/ over FTP — WordPress falls back to a default theme automatically.
If you edited functions.php recently, undo it or restore a fresh copy from the theme download. If the theme just updated, look for an author fix or roll back. Picking a theme from scratch? Our guide on how to choose a WordPress theme covers what to check first — update history, PHP compatibility, and support quality matter more than a pretty demo.
Step 5: Raise the PHP Memory Limit
If the debug log mentions “allowed memory size exhausted”, or the screen appears during an import or traffic spike, WordPress has run out of memory. Many hosts default to 64 MB — tight for a site with a page builder and a few plugins.
Back up wp-config.php first, then add this line above the “That’s all, stop editing!” comment:
define('WP_MEMORY_LIMIT', '256M');Save and reload. If the site returns, memory was the problem. 256M is safe on almost any shared host; if yours caps it lower, ask support to raise it.
A site that keeps hitting its memory limit is often carrying too much weight — oversized images, idle plugins, no caching. Our guide on how to speed up WordPress covers fixes that cut the load. A proper WordPress white screen of death fix should leave the site healthier than it found it, not just back online.
If nothing changes, remove the line — a memory error surviving 256M is usually a runaway plugin process, covered in Step 3.
Step 6: Replace a Corrupted .htaccess File
The .htaccess file controls how the server handles URLs, redirects, and caching rules. If it gets corrupted — a failed plugin save, a bad edit, a migration gone wrong — the site can go blank without a trace in the debug log. Easy to miss in a WordPress white screen of death fix.
Find .htaccess in the root folder over FTP or the file manager — it is hidden, so enable “show hidden files” if needed. Download a copy, delete it, and reload. If the site returns, .htaccess was the culprit.
Regenerate it: in the dashboard, go to Settings > Permalinks and click Save Changes. WordPress writes a clean default:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressAdd any custom rules back one at a time from your downloaded copy, testing after each — one bad line can break everything.
Step 7: Check File Permissions
Wrong permissions usually appear after a migration, a restore, or a server change: if permissions are too strict, PHP cannot load the files it needs. A small check, but a WordPress white screen of death fix that skips it can stall for no good reason.
Standard values: folders 755, files 644, wp-config.php 600, 640, or 660 depending on your host. Fix them in your file manager or over FTP — wp-content, wp-includes, and wp-admin first, then the root files.
Never set everything to 777 — that makes every file writable by anyone on the server. If the problem persists at 755/644, the cause lies elsewhere.
When to Stop Debugging and Restore from Backup
If the site is still blank after the steps above, or the log points at corrupted core files a reinstall does not fix, stop and restore. That is a legitimate ending to a WordPress white screen of death fix, not a failure.
First try reinstalling core: download a fresh WordPress copy and replace the wp-admin and wp-includes folders, leaving wp-content and wp-config.php untouched. If that fails, restore the backup you made before you started.
If you cannot name the cause after the debug log and the plugin test, you are guessing. Restore, then investigate on a staging copy.
How to Stop the White Screen Coming Back
Fixing it once is good; stopping it coming back is better. A lasting WordPress white screen of death fix comes down to habits, not tools.
Update one thing at a time: update a plugin, check the site, then update the next.
Keep a staging site — most hosts offer one free — and test updates there first.
Never edit theme or plugin files on the live site. Use a child theme and a code snippets plugin, so a typo breaks one snippet, not the whole site.
Keep everything updated — but not blindly. Check the changelog and support forum first, and update when you have ten minutes to verify afterwards. Keep automatic backups running daily: a backup is the difference between a white screen that costs an hour and one that costs a weekend.
The Bottom Line
A WordPress white screen of death fix follows a simple order: Recovery Mode email, debug log, plugins one by one, default theme, memory limit, fresh .htaccess, permissions. In that order, the steps find the cause instead of guessing.
The blank page looks catastrophic, but it is almost always one bad plugin, one typo, or one limit that ran out — and your content sits safely in the database meanwhile. Stay calm, back up before you edit, and let the debug log tell you what broke. That is the whole method — which is why this WordPress white screen of death fix is worth keeping bookmarked.
