WordPress White Screen of Death: A Safe Recovery Checklist
Diagnose the WordPress White Screen of Death by unmasking silent PHP errors, allocating memory safely, and isolating faulty plugins without dashboard access.
- Published

The WordPress White Screen of Death (WSOD) occurs when an unhandled PHP fatal error or memory exhaustion halts script execution before output reaches the browser. Because production servers suppress raw PHP errors by default, you see an empty white page instead of a visible stack trace; unmasking the underlying log is the single fastest path to recovery.
Unlike the generic user-facing message handled in our WordPress critical error recovery guide, a true WSOD produces zero HTML, an empty HTTP body, and often an HTTP 500 status code. The failure locks administrators out of the /wp-admin/ panel, leaving FTP/SFTP, SSH, or hosting file managers as the only direct diagnostic routes.
Quick diagnosis: What the blank screen means
Before altering configuration files, verify whether the outage affects the entire site or specific endpoints:
- Frontend blank, admin accessible: The active theme or a frontend-only shortcode/widget crashed during the loop.
- Admin blank, frontend accessible: A plugin hooked into
admin_init, a dashboard widget, or an administrative capability check failed (see our dedicated WordPress admin not loading guide for dashboard-specific recovery steps). - Entire site blank (frontend and backend): Core database connectivity failure, exhausted
memory_limit, or a plugin executing onplugins_loadedthrew a fatal exception. - Single post/page blank: An unclosed PHP tag in custom template code or a corrupted post content block.
Run a quick curl check from your terminal to inspect the raw response code and headers:
curl -svI https://example.com/
If the response header returns HTTP/1.1 500 Internal Server Error with Content-Length: 0, PHP execution terminated prematurely before the output buffer flushed.
Before you change files or database records
Before touching configuration files:
- Download a local backup copy of
wp-config.phpand your.htaccess(or Nginx configuration). - Confirm you have SFTP credentials, SSH access, or hosting file manager access.
- Verify server disk space; an exhausted disk quota prevents PHP from writing session data or debug logs, triggering an immediate blank screen.
- If your site recently updated an extension, note the exact timestamp to correlate with server error logs.
Do not attempt a blind WordPress core reinstall as your first move. WSOD is almost always triggered by third-party plugin clashes or restrictive PHP resource ceilings.
1. Unmask the error with private debug logging
Never turn on public error display on a production site; printing raw stack traces exposes database credentials, internal server paths, and software versions to unauthorized visitors.
Open wp-config.php in your text editor. Locate the line reading define( 'WP_DEBUG', false ); and replace it with a secure logging configuration positioned immediately before /* That's all, stop editing! Happy publishing. */:
// Enable WordPress debugging to a private log file
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', '0' );
Save the file and reload the blank page in your browser. Then inspect the generated log file located at /wp-content/debug.log:
tail -n 50 wp-content/debug.log
Look for lines starting with PHP Fatal error: or PHP Parse error:. The log specifies the exact file path and line number causing the crash (for example: /wp-content/plugins/broken-plugin/broken-plugin.php on line 142). If a specific plugin or theme is named, proceed directly to isolating that component.
2. Increase the PHP memory allocation
If the log displays Fatal error: Allowed memory size of 67108864 bytes exhausted, your site exceeded its allotted PHP memory buffer during boot or data serialization.
WordPress defines a default memory limit of 40MB for single sites (64MB for multisite) and 256MB for the administration console. Increase the runtime ceiling by adding this directive to wp-config.php right after the opening <?php tag:
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
If your hosting provider enforces strict limits through php.ini or user ini files, check your site’s root directory for .user.ini or php.ini and verify the directive:
memory_limit = 256M
Reload the site. If the white screen clears, evaluate your active plugins with a profiler once back in the dashboard; running out of 256MB indicates a memory leak or an unindexed database query.
3. Isolate active plugins without database access
If debug.log cannot be written due to permissions or an early bootstrap crash, isolate all plugins simultaneously via filesystem renaming:
- Connect to your site via SFTP or SSH.
- Navigate to the
/wp-content/directory. - Rename the
pluginsdirectory toplugins-deactivated:
mv wp-content/plugins wp-content/plugins-deactivated
- Reload your website in a private browsing window.
If the site loads (often with missing layout elements), a plugin caused the failure. To identify the exact offender safely:
- Rename
plugins-deactivatedback toplugins. WordPress will not automatically reactivate them. - Create an empty directory named
wp-content/plugins-temp. - Move plugins back into
wp-content/pluginsone by one, checking the homepage after each move until the white screen returns. The last moved plugin is the culprit.
If you have SSH and WP-CLI access, you can deactivate plugins selectively without renaming directories:
wp plugin list --status=active
wp plugin deactivate --all
Then reactivate them sequentially:
wp plugin activate <plugin-slug>
4. Fall back to a default WordPress core theme
If plugin deactivation does not resolve the white screen, an unhandled exception or missing function in functions.php of your active theme or child theme is crashing the render tree.
With WP-CLI, switch to an installed core default theme (such as Twenty Twenty-Four):
wp theme status
wp theme activate twentytwentyfour
Without WP-CLI access, switch the theme via SFTP:
- Navigate to
/wp-content/themes/. - Locate the folder of your currently active theme (e.g.,
astraorhello-elementor). - Temporarily rename that specific folder to
yourtheme-disabled. - WordPress detects that the active theme directory is missing and automatically falls back to an available default theme (such as
twentytwentyfourortwentytwentythree).
If the white screen resolves, the issue resides within your theme’s custom template code, an outdated theme dependency, or an incompatible PHP 8.x syntax deprecation.
5. Clear aggressive object and server page caches
In many instances, the underlying PHP fatal error was resolved during an update, but a server-level reverse proxy (such as Varnish, Nginx FastCGI cache, or Redis object cache) is continuing to serve a cached empty 500 response.
Flush persistent object caches directly from the filesystem:
- Check
/wp-content/for drop-in cache files:advanced-cache.php,object-cache.php, orwp-cache-phase.php. - If Redis or Memcached is down, an orphaned
object-cache.phpdrop-in will cause an immediate white screen because WordPress cannot reach the in-memory socket. Temporarily renameobject-cache.phptoobject-cache.php.bak. - If using WP-CLI, run:
wp cache flush
- Purge edge CDN caches in Cloudflare or your hosting management console.
6. Check core file integrity
Interrupted auto-updates can leave WordPress core files partially written or corrupted in wp-includes/ or wp-admin/.
Validate file checksums against official WordPress.org releases using WP-CLI:
wp core verify-checksums
If checksum verification reports modified or missing core files, repair core files without touching your database or /wp-content/ directory:
wp core download --skip-content --force
Alternatively, download the official WordPress release .zip from WordPress.org, extract it locally, and upload fresh copies of wp-admin and wp-includes via SFTP, overwriting existing files. Never overwrite the /wp-content/ directory.
Verify the recovery
Confirm that normal operations are fully restored:
- Load both the frontend homepage and deep content URLs in an incognito browser window.
- Log into
/wp-admin/and ensure the dashboard widgets, post editor, and plugin pages render without script halts. - Check browser developer tools (Network tab) to confirm all pages return
HTTP 200 OKwith validContent-Type: text/html. - Inspect
wp-content/debug.logto ensure no lingering fatal errors or repeated warning loops are bloating the log file. - In
wp-config.php, turn off public debugging once troubleshooting is complete:
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
- Delete or lock down
/wp-content/debug.logso internal error traces are not publicly downloadable via web request.
Rollback and escalation
If disabling all plugins, switching themes, and raising memory limits fails to resolve the white screen:
- Inspect your web server’s main error log (
/var/log/nginx/error.logor/var/log/apache2/error.log), which captures low-level segmentation faults, opcache corruption, or PHP-FPM worker timeouts that occur before WordPress initializes. - Verify PHP version compatibility. Upgrading to PHP 8.2 or 8.3 without updating legacy plugins can cause fatal syntax incompatibilities. Temporarily switch back to PHP 8.1 in your hosting panel to test.
- If the issue appeared right after an interrupted database update, consult our WordPress database connection error checklist or maintenance mode recovery guide.
- When escalating to your hosting provider, provide the exact UTC timestamp, server IP, the latest line from
wp-content/debug.log, and the output ofcurl -svI https://example.com/.
Source and version notes
This guide was verified against WordPress 6.7 and current PHP 8.1–8.3 debugging specifications. Diagnostic commands assume standard Linux hosting environments with SFTP/SSH access and WP-CLI 2.10+. File system paths may vary depending on your hosting provider’s directory structure.


