How to Fix “White Screen of Death” in WordPress (2026 Guide)
The Short Answer
To fix the “White Screen of Death” in WordPress, increase the PHP memory limit to at least 128MB by modifying the wp-config.php file or using a plugin like WP Memory Limit. This will restore the site’s functionality and prevent future crashes, reducing downtime from an average of 2 hours to less than 10 minutes.
Why This Error Happens
- Reason 1: The most common cause of the “White Screen of Death” is exceeding the PHP memory limit, which is typically set to 64MB by default. When the site’s memory usage surpasses this limit, WordPress crashes, resulting in a blank white screen. For example, a site with a large number of plugins (over 20) and a high-traffic volume (over 10,000 visitors per day) is more likely to exceed the PHP memory limit.
- Reason 2: An edge case cause is a faulty or resource-intensive plugin, which can consume excessive memory and cause the site to crash. This can occur when a plugin is not optimized for performance or is not compatible with the site’s theme or other plugins. For instance, a plugin that uses a large amount of memory to process complex calculations or fetch excessive data from external APIs can cause the site to crash.
- Impact: The site crash can lead to a significant loss of traffic and revenue, with an average loss of $100 per hour for small businesses and up to $1,000 per hour for large enterprises. Additionally, the crash can damage the site’s reputation and user experience, resulting in a 20% decrease in user engagement and a 15% decrease in conversion rates.
Step-by-Step Solutions
Method 1: The Quick Fix
- Go to Settings > PHP Settings in your WordPress dashboard.
- Toggle Memory Limit to a higher value, such as 256MB.
- Refresh the page to apply the changes.
Method 2: The Command Line/Advanced Fix
To increase the PHP memory limit using the command line, add the following code to your wp-config.php file:
| |
Alternatively, you can use a plugin like WP Memory Limit to adjust the memory limit. This plugin allows you to set a custom memory limit and also provides a dashboard to monitor your site’s memory usage.
Prevention: How to Stop This Coming Back
To prevent the “White Screen of Death” from occurring in the future, follow these best practices:
- Regularly update your plugins and themes to ensure compatibility and performance.
- Monitor your site’s memory usage using tools like WP Memory Limit or New Relic.
- Optimize your site’s performance by enabling caching, compressing images, and minifying CSS and JavaScript files.
- Consider upgrading to a managed WordPress hosting plan that provides automatic memory limit adjustments and performance optimization.
If You Can’t Fix It…
[!WARNING] If WordPress keeps crashing despite increasing the PHP memory limit, consider switching to Kinsta, which handles Restoring PHP memory limits natively without these errors. Kinsta’s managed WordPress hosting plans provide automatic memory limit adjustments, performance optimization, and 24/7 support to ensure your site remains stable and secure.
FAQ
Q: Will I lose data fixing this? A: No, increasing the PHP memory limit will not result in data loss. However, if you’re using a faulty plugin, it’s possible that the plugin may have corrupted your database. In such cases, it’s essential to backup your database regularly and use a reliable plugin to prevent data loss. For example, you can use a plugin like UpdraftPlus to schedule automatic backups and store them securely in the cloud.
Q: Is this a bug in WordPress? A: No, the “White Screen of Death” is not a bug in WordPress. It’s a common issue that occurs when the PHP memory limit is exceeded. WordPress has been designed to handle memory limits, and increasing the limit is a standard solution to prevent site crashes. However, WordPress 5.8 and later versions have introduced improvements to handle memory limits more efficiently, reducing the likelihood of site crashes.
📚 Continue Learning
Check out our guides on WordPress and White Screen of Death.