You are staring at a blank page. No header, no footer, just white. This is the WordPress White Screen of Death, or WSOD. It happens when PHP hits a fatal error and stops rendering the page. The site is still running; the code just crashed. Don't panic. The database is likely intact. You just need to find the broken line of code or the conflicting plugin.
Why the Screen Goes White
WordPress is built on PHP. When PHP encounters a fatal error—like running out of memory or calling an undefined function—it halts execution. By default, PHP hides error messages from visitors for security reasons. So instead of seeing "Fatal error: Allowed memory size exhausted," you get a blank page.
In support tickets, the usual culprit is a plugin update that conflicts with a theme or core file. Sometimes it’s a server-side change, like a PHP version bump. Rarely, it’s a corrupted core file. The first step is always to stop guessing and start looking.
1. Enable Debug Mode
You can’t fix what you can’t see. You need to turn on error logging. This reveals the actual PHP error behind the blank screen.
Edit wp-config.php
Access your site via FTP or your hosting file manager. Locate the wp-config.php file in the root directory. Add or modify the following lines:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
WP_DEBUGenables debugging.WP_DEBUG_LOGsaves errors to a file instead of showing them on the page.WP_DEBUG_DISPLAYkeeps the screen clean while you investigate. Set this totrueonly if you are on a local dev environment.
After saving, refresh the page. The screen will likely stay white, but a log file will be created at wp-content/debug.log. Open that file. The last entry usually tells you exactly which file and line caused the crash.
Check Server Error Logs
If you can’t access wp-config.php (e.g., via FTP), check your hosting control panel. In cPanel, go to Metrics > Errors or Logs > Error Log. Look for recent PHP errors. You might see something like PHP Fatal error: Uncaught Error: Call to undefined function.... That’s your clue.
2. Disable Plugins
Plugins are the most common cause of WSOD. A plugin might have been updated, or a new plugin might conflict with your theme or another plugin.
Rename the Plugins Folder
If you can’t log in to the WordPress admin, you can disable all plugins at once via FTP or file manager.
- Navigate to
wp-content/. - Rename the
pluginsfolder toplugins_old. - Refresh your site.
If the site loads, a plugin was the cause. Rename the folder back to plugins. Then, move plugins out of the folder one by one (or in small groups) into a temporary folder outside wp-content/. Refresh the site after each move. When the site breaks again, you’ve found the culprit.
Check for Plugin Updates
If you recently updated a plugin, roll it back. Most hosting panels have a file manager where you can restore the previous version if you have a backup. If not, download the previous version from the WordPress.org repository and upload it via FTP.
3. Increase PHP Memory Limit
A common error message in the debug log is Allowed memory size of 134217728 bytes exhausted. This means PHP ran out of memory. WordPress needs more RAM to process certain operations, especially with heavy plugins or large media libraries.
Edit wp-config.php
Add this line to wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
Start with 256M. If the issue persists, try 512M. Don’t go too high; it can slow down your server if you’re on shared hosting.
Edit .htaccess or php.ini
If WP_MEMORY_LIMIT doesn’t work, you can set it at the server level.
For .htaccess:
php_value memory_limit 256M
For php.ini:
memory_limit = 256M
Check your hosting documentation to see which method is supported. Some hosts ignore php_value in .htaccess for security reasons. In that case, use the cPanel MultiPHP INI Editor to change the value.
4. Check for Theme Issues
If disabling plugins didn’t work, the problem might be your theme. A broken theme file can cause a fatal error.
Switch to Default Theme
Via FTP, rename your current theme folder in wp-content/themes/ to your-theme_old. Then, activate a default WordPress theme like Twenty Twenty-Three or Twenty Twenty-Four. You can do this by editing the wp_options table in your database or by creating a temporary plugin that activates the theme.
If the site loads with the default theme, your theme is broken. Check the theme’s functions.php file for syntax errors. A missing closing brace or a typo can cause a fatal error.
5. Restore from Backup
If you recently made changes and the site broke, the fastest fix is to roll back. Most hosting providers offer automated backups. Check your control panel for a backup section. Restore the last known good backup.
If you use a backup plugin like UpdraftPlus or All-in-One WP Migration, restore from there. Make sure you restore both files and database. A mismatch between files and database can cause other issues.
6. Check PHP Version
Sometimes a server-side PHP version update breaks compatibility. If your host recently upgraded PHP from 7.4 to 8.0 or 8.1, older plugins or themes might not be compatible.
Check Current PHP Version
In cPanel, go to Software > MultiPHP Manager. See which version is assigned to your domain. If it was recently changed, try switching back to the previous version. It’s a quick test. If the site loads, you know the issue is PHP compatibility. Contact your host or update your plugins/themes to support the newer version.
7. Check for File Corruption
Rarely, core WordPress files get corrupted. This can happen after a failed update or a server error. Compare your files with a fresh WordPress installation. Download the latest WordPress zip from wordpress.org, extract it, and compare key files like wp-load.php, wp-config.php, and index.php with your live site.
If you find differences, replace the corrupted files. Be careful not to overwrite your wp-config.php or wp-content/ folder, as those contain your custom settings and content.
What to Check First
Start with the debug log. It’s the fastest way to pinpoint the issue. If you can’t access it, disable plugins via FTP. Then check memory limits and PHP version. Don’t jump to reinstalling WordPress or restoring backups until you’ve ruled out simple fixes. Most WSOD issues are caused by a single plugin or a memory limit. Fix that, and your site will come back up.
How do I access wp-config.php if I can’t log in?
Use FTP or your hosting file manager. You don’t need admin access to edit files. Just make sure you have the correct FTP credentials or cPanel access.
Will disabling plugins delete my data?
No. Disabling plugins only stops them from running. Your data remains in the database. You can re-enable them later.
What if the site loads but looks broken?
That’s a different issue. It’s likely a CSS or JavaScript error. Check the browser console for errors. It might be a theme conflict or a broken plugin script.
When to Contact Support
If you’ve tried all the above and the site is still white, contact your hosting provider. They can check server-side logs, PHP errors, and disk space. A full disk can also cause WSOD, as PHP can’t write temporary files. Your host can clear space or increase limits. Don’t hesitate to ask for help. It’s what they’re there for.
