If you’ve ever worked on WordPress you will have probably seen the white screen of death. This annoying problem can be frustrating because it doesn’t only break the front-end of your website, but it can also lock you out of the dashboard which prevents you from easily fixing problems
There are many causes for the white screen of death, but it’s usually caused by one of three things
Not enough memory
Before you do anything, you should make a backup of your website’s files and database. If you make any database changes or file changes, you may cause even more problems.
To see if a plugin is causing the error, you should disable them all and then try to access your website or dashboard to see if the white screen of death still appears If you’re able to get access to your dashboard, simply deactivate all your plugins and refresh the page where the white screen appears. If It loads correctly, then one of the plugins is causing the problem.
Reactivate one plugin and refresh the screen. Keep reactivating one plugin at a time and refreshing the screen until you find the plugin which is causing the problem.
If you don’t have access to your dashboard, you will need to deactivate your plugins via FTP. Go to your wp_content/plugins folder and you’ll see a list of folders which contain your plugins. Rename each plugin folder so that the name is still recognisable. For example, rename pluginfolder to pluginfolder1.
Do this with all your plugins and then see if the problem is now resolved. If so, then you can reactivate each plugin one at a time by renaming it back to the original name and refreshing the screen. Continue to do this until you find which plugin is causing the problem.
If you’re sure that your plugins are not causing the problem, then it’s time to look at your theme.
Check Your Theme
In some cases, a poorly coded theme could cause issues. Poorly coded themes can cause conflicts with plugins or just stop working after you’ve updated WordPress. If you have access to your dashboard, you can deactivate your theme and activate one of the standard themes that came with WordPress If you don’t have access to your dashboard, you can access the wp-content/themes folder and rename the theme’s folder to deactivate it.
If the theme is causing the problem, you can try to fix the theme or find a new one.
Increase Memory Limit
As your site gets bigger and receives more visitors, it will need more resources It could be that you have outgrown your hosting and need to upgrade to a better plan with more resources available.
Alternatively, you can try to increase PH P memory limit by editing the wp-config.php file and adding the following code:
Define(‘WP M EMORY_LIM IT’, ’64M’);
If this still doesn’t fix the problem, you can try to increase the memory limit even further. However, your web host may limit the amount of memory you can use. You may need to contact your hosting provider to help you increase your memory limit.
If you still have problems, then there is a chance that something else is causing this issue. This could be corrupted files, database problems, caching issue4 or even malware. To find out exactly what’s causing it, you need to debug the problem. To debug Issues, you can add the following code to the bottom of your wp-conflg.php
error reporting(E ALL);
ini_set(‘display errors’, 1);
define( ‘WP DEBUG’, true);
Now, instead of just seeing a white screen, you’ll see warnings and errors appear. You can use this information to help you to diagnose and fix the problem. There are many forums dedicated to helping people solve WordPress issues and you can get some free advice and help. If you’re not able to diagnose and fix these problems yourself, it maybe time to call In a professional.
The WordPress white screen of death can suddenly appear at anytime and can restrict access to either your front-end, dashboard, or both. In most cases, plugins are the cause of the white screen of death and you should always start by deactivating your plugins. If you’re sure it’s not a plugin, it’s time to look at your theme. If your theme isn’t the cause of the white screen, then you should try to increase your PHP memory limit. If you still haven’t found the cause of the issue, then you’ll need some extra information. Set WordPress to display error and warnings on the screen and use this Information to help you correctly diagnose and fix the WordPress white screen of death.