WordPressintermediate

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
A glowing white void screen surrounded by dark carbon fiber server chassis, disrupted debug traces, and orange diagnostic pulses.

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 on plugins_loaded threw 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:

  1. Download a local backup copy of wp-config.php and your .htaccess (or Nginx configuration).
  2. Confirm you have SFTP credentials, SSH access, or hosting file manager access.
  3. Verify server disk space; an exhausted disk quota prevents PHP from writing session data or debug logs, triggering an immediate blank screen.
  4. 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:

  1. Connect to your site via SFTP or SSH.
  2. Navigate to the /wp-content/ directory.
  3. Rename the plugins directory to plugins-deactivated:
mv wp-content/plugins wp-content/plugins-deactivated
  1. 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:

  1. Rename plugins-deactivated back to plugins. WordPress will not automatically reactivate them.
  2. Create an empty directory named wp-content/plugins-temp.
  3. Move plugins back into wp-content/plugins one 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:

  1. Navigate to /wp-content/themes/.
  2. Locate the folder of your currently active theme (e.g., astra or hello-elementor).
  3. Temporarily rename that specific folder to yourtheme-disabled.
  4. WordPress detects that the active theme directory is missing and automatically falls back to an available default theme (such as twentytwentyfour or twentytwentythree).

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:

  1. Check /wp-content/ for drop-in cache files: advanced-cache.php, object-cache.php, or wp-cache-phase.php.
  2. If Redis or Memcached is down, an orphaned object-cache.php drop-in will cause an immediate white screen because WordPress cannot reach the in-memory socket. Temporarily rename object-cache.php to object-cache.php.bak.
  3. If using WP-CLI, run:
wp cache flush
  1. 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:

  1. Load both the frontend homepage and deep content URLs in an incognito browser window.
  2. Log into /wp-admin/ and ensure the dashboard widgets, post editor, and plugin pages render without script halts.
  3. Check browser developer tools (Network tab) to confirm all pages return HTTP 200 OK with valid Content-Type: text/html.
  4. Inspect wp-content/debug.log to ensure no lingering fatal errors or repeated warning loops are bloating the log file.
  5. In wp-config.php, turn off public debugging once troubleshooting is complete:
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
  1. Delete or lock down /wp-content/debug.log so 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.log or /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 of curl -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.

Tags:
  • #WordPress WSOD
  • #white screen
  • #WP_DEBUG
  • #PHP memory limit
  • #plugin isolation

References

  1. developer.wordpress.org
  2. wordpress.org
  3. developer.wordpress.org
  4. make.wordpress.org