How to fix White Screen of Death error

White Screen of Death

This error usually causes a plain white screen of death with no error message, making it more frustrating for you since you have no idea what to seek and what to fix.


  • Often caused by an exhausted memory limit
  • Poorly coded theme or plugin

Solution #1: Increase the memory limit

Since exhausted memory limit is one popular reason of this error, it is recommended to increase the memory limit. To increase the limit, open your wp-config.php file and add the following line of code within the main PHP tags.

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

The above code increases your memory limit to 64M.

Solution #2. Replace your theme with the default theme and disable all plugins

If the problem still persists, disable all your plugins and replace your currently active theme with the default WordPress theme and check if it still shows a white screen of death. If the problem is resolved, either your theme or one of your plugins is causing a white screen. Activate one plugin at a time while keeping an eye on the website. If this resolves the problem, check your theme’s functions.php and remove any extra spaces at the bottom of the file.