Skip to content
Back to Blog
WordPress11 min read

How to Fix WordPress White Screen of Death: Complete Guide

Step-by-step troubleshooting guide to diagnose and resolve the WordPress White Screen of Death (WSOD), from memory limits to plugin conflicts and PHP errors.

Written by Abdul AbrorTechnical Hosting Support Engineer
How to Fix WordPress White Screen of Death: Complete Guide
On this page

The WordPress White Screen of Death (WSOD) is one of the most frustrating issues you'll encounter as a site administrator. Your site loads, but instead of content, you see only a blank white screen with no error messages, no admin panel, and no obvious clues about what went wrong. This guide walks you through every troubleshooting step to identify the root cause and restore your site.

What Causes the WordPress White Screen of Death

The WSOD typically occurs when PHP encounters a fatal error but error display is disabled in your configuration. Common triggers include:

  • PHP memory exhaustion: Scripts exceed the allocated memory limit
  • Plugin or theme conflicts: Incompatible or poorly coded extensions
  • PHP version incompatibility: Your WordPress version or plugins require different PHP versions
  • Corrupted core files: Incomplete updates or file permission issues
  • Syntax errors: Code mistakes in theme files or configuration
  • Server resource limits: Hitting CPU, process, or execution time caps

Because PHP errors are hidden by default in production environments, you'll need to enable debugging to see what's actually failing.

Step 1: Enable WordPress Debug Mode

Before anything else, turn on error reporting so you can see what's breaking.

Connect to your server via SFTP or the file manager in your hosting control panel. Locate and edit wp-config.php in your WordPress root directory.

Find this line:

define( 'WP_DEBUG', false );

Replace it with these debug settings:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'display_errors', 1 );

Save the file and reload your site. You should now see PHP errors, warnings, and notices on the white screen. These messages will tell you exactly which file and line number is causing the problem.

Errors are also written to wp-content/debug.log, which you can check if nothing displays on screen.

Step 2: Increase PHP Memory Limit

Memory exhaustion is one of the most common WSOD causes, especially on shared hosting or after installing memory-intensive plugins.

In wp-config.php, add this line before the /* That's all, stop editing! */ comment:

define( 'WP_MEMORY_LIMIT', '256M' );

This increases WordPress's memory allocation to 256 MB. If your host allows it, you can try higher values like 512M.

For some hosting environments, you'll also need to adjust the PHP memory limit directly. Create or edit a php.ini file in your WordPress root:

memory_limit = 256M

On cPanel hosting, you can often adjust this through the MultiPHP INI Editor tool in your control panel.

Reload your site. If memory was the issue, your site should now load normally.

Step 3: Deactivate All Plugins

Plugin conflicts cause a significant portion of WSOD issues, especially after updates.

Since you can't access the admin panel, deactivate plugins at the filesystem level:

Via SFTP or File Manager:

  1. Navigate to wp-content/plugins/
  2. Rename the entire plugins folder to plugins-disabled
  3. Reload your site

If the site loads, a plugin was the culprit. Rename the folder back to plugins, then rename individual plugin folders one at a time to identify which plugin causes the WSOD.

Via SSH:

cd /path/to/wordpress/wp-content
mv plugins plugins-disabled

Once you've identified the problematic plugin, you can either remove it permanently, update it, or find an alternative.

Step 4: Switch to a Default Theme

If deactivating plugins didn't resolve the issue, your theme may be the problem.

WordPress requires at least one theme to function. Download a fresh copy of a default WordPress theme (Twenty Twenty-Four, Twenty Twenty-Three, etc.) from the WordPress theme repository.

Upload the theme folder to wp-content/themes/ via SFTP or your file manager.

Next, force WordPress to use the default theme by updating the database directly.

Via phpMyAdmin:

  1. Open phpMyAdmin in your hosting control panel
  2. Select your WordPress database
  3. Find the wp_options table (prefix may differ)
  4. Locate rows where option_name is template and stylesheet
  5. Change both values to your default theme's folder name, e.g., twentytwentyfour

Via WP-CLI (if available):

wp theme activate twentytwentyfour

Reload your site. If it loads with the default theme, your custom theme has a code error. Check the theme's functions.php file for syntax errors or incompatible functions.

Step 5: Check File and Folder Permissions

Incorrect permissions can prevent WordPress from executing PHP files properly.

Recommended permissions for WordPress:

  • Directories: 755
  • Files: 644
  • wp-config.php: 640 or 600

Fix permissions via SSH:

cd /path/to/wordpress
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 600 wp-config.php

If you're on shared hosting and don't have SSH access, you can change permissions through your FTP client by right-clicking folders and files.

Avoid setting permissions to 777, which creates serious security vulnerabilities.

Step 6: Verify PHP Version Compatibility

WordPress and many plugins have minimum PHP version requirements. Running an outdated PHP version can trigger fatal errors.

Check your current PHP version in cPanel under MultiPHP Manager or by creating a file named phpinfo.php in your WordPress root:

<?php phpinfo(); ?>

Visit yoursite.com/phpinfo.php to see your PHP version. Delete this file immediately after checking for security reasons.

WordPress requires PHP 7.4 or higher, with PHP 8.0+ recommended. If you're running an older version, upgrade through your hosting control panel. Most hosts offer easy PHP version switching.

After upgrading PHP, test your site. Some legacy plugins may not be compatible with newer PHP versions, in which case you'll see specific error messages that help you identify which plugins to update or replace.

Step 7: Reinstall WordPress Core Files

Corrupted core files from incomplete updates or file transfer errors can cause white screens.

Download a fresh copy of WordPress from wordpress.org matching your current version. Extract the archive and upload these folders via SFTP, overwriting existing files:

  • wp-admin
  • wp-includes

Do NOT overwrite:

  • wp-config.php
  • wp-content folder
  • .htaccess

This replaces core files while preserving your content, themes, plugins, and configuration.

Step 8: Review Server Error Logs

If WordPress debug mode isn't showing errors, check your server's error logs for PHP fatal errors and Apache/Nginx issues.

cPanel: Navigate to Metrics → Errors, or check ~/logs/error_log via file manager.

Via SSH:

# Apache
tail -f /var/log/apache2/error.log

# Nginx
tail -f /var/log/nginx/error.log

# PHP-FPM
tail -f /var/log/php-fpm/error.log

Look for fatal errors, segmentation faults, or timeout messages. These logs often reveal issues that WordPress debugging can't catch, such as server configuration problems or resource limit violations.

Step 9: Check for Syntax Errors in wp-config.php

A single misplaced character in wp-config.php can cause a WSOD.

Download a backup copy of your wp-config.php before making changes. Open it in a code editor that shows line numbers and syntax highlighting.

Common mistakes:

  • Extra spaces or characters before <?php or after ?>
  • Missing semicolons at line ends
  • Unmatched quotes or parentheses
  • Incorrect database credentials (though this usually shows a database connection error, not a white screen)

If you recently edited wp-config.php, revert those changes. If you don't have a clean backup, download a fresh wp-config-sample.php from WordPress.org and recreate your configuration carefully.

Step 10: Increase PHP Resource Limits

Beyond memory limits, PHP enforces execution time and input variable limits that can cause white screens on complex operations.

Add these directives to your php.ini file or .htaccess file:

In php.ini:

max_execution_time = 300
max_input_time = 300
max_input_vars = 3000
post_max_size = 64M
upload_max_filesize = 64M

In .htaccess (if using Apache with mod_php):

php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 3000
php_value post_max_size 64M
php_value upload_max_filesize 64M

Some hosts don't allow .htaccess PHP overrides. In that case, adjust settings through your control panel or contact support.

Step 11: Clear All Caches

Caching plugins, server-level caching, and CDN caching can serve stale or corrupted pages even after you've fixed the underlying issue.

Plugin cache: Delete the cache folder, typically wp-content/cache/ or similar, depending on your caching plugin.

Object cache: If using Redis or Memcached, flush the cache:

# Redis
redis-cli FLUSHALL

# Memcached
echo 'flush_all' | nc localhost 11211

Browser cache: Hard-refresh your browser with Ctrl+Shift+R (Windows/Linux) or Cmd+Shift+R (Mac).

CDN cache: If using Cloudflare, log in and purge the cache from the Caching tab. Other CDNs have similar purge functions.

Step 12: Restore from Backup

If none of the above steps work, restoring from a known-good backup is the fastest path to recovery.

Most managed WordPress hosts provide automatic backups. Check your control panel for backup restoration tools. For manual backups:

  1. Download your backup files
  2. Delete current WordPress files (keep a copy just in case)
  3. Upload backup files via SFTP
  4. Import the database backup via phpMyAdmin or command line:
mysql -u username -p database_name < backup.sql

After restoration, test your site. If it works, carefully re-apply any changes or updates one at a time, testing after each change.

Preventing Future White Screen Issues

Always backup before updates: Use a plugin like UpdraftPlus or your host's backup system before updating WordPress, themes, or plugins.

Test on staging: Create a staging environment to test updates and new plugins before pushing to production.

Monitor resource usage: Use tools like Query Monitor or New Relic to identify memory-hungry plugins and optimization opportunities.

Keep everything updated: Run supported versions of PHP, WordPress, and all plugins. Outdated software accumulates compatibility issues.

Use quality plugins: Stick to well-maintained, popular plugins from the WordPress repository or reputable developers. Check reviews and recent update dates.

Enable maintenance mode during updates: Use a maintenance mode plugin to prevent users from encountering errors during updates.

Conclusion

The WordPress White Screen of Death is alarming but almost always fixable through systematic troubleshooting. Start with debug mode to identify the error, then work through memory limits, plugin conflicts, theme issues, and server configuration. Most WSOD issues resolve at the plugin or memory limit stage. For persistent problems, server logs and backup restoration provide fallback options. Keep regular backups, maintain a staging environment, and monitor your site's resource usage to minimize future white screen incidents.