The white screen of death is one of the most common WordPress an error. Most of the time when you see a white of death that means your website exhausted the memory limit. This error can also happen due to poorly coded themes or plugins.
Increase the memory limit
The majority of the time, this error happens because of exhausted the memory limit. To fix it, you need to increase PHP memory available to WordPress. You can increase the WordPress memory limit by editing the wp-config.php file on your WordPress website. Use an FTP client or file manager in your web hosting control panel.
Add this line in wp-config.php to increase the PHP memory limit to 256MB in WordPress.
Use this code to increase the PHP memory limit to 256MB in WordPress.
After increasing the memory limit, if the error persists, a buggy plugin can be the cause of the white screen of death issue. You should try to disable all plugins of your website and see what happens.
If you can access the admin area of your WordPress site, then you can easily disable all plugins. Otherwise, you will need to deactivate the plugins by renaming the plugin directory.
- Use an FTP client or control panel filemanager to access files.
- Go to the wp-content directory
- Now right click on the plugins folder and then select rename.
- Rename as “plugins_troubleshoot” or anything.
- Now visit the website, it should load now but without plugins
If deactivating all plugins fix the issue, identify the culprit plugin by enabling plugins one by one and test which one cause the white screen of death.
An outdated incompatible theme version can also cause the white screen of death error. If the problem persists after deactivated all of your website plugins, you should replace the current theme with a default theme. If the theme really causes the issue, you should be able to access the WordPress dashboard. Simply switch the current theme with a default WordPress theme.
If switching the theme fix the issue, make sure that the theme is up to date and compatible with the current PHP version.
Enable debugging mode
If the above-mentioned techniques do not fix the White Screen of Death error and if this issue persists. This step is to turn on debugging in WordPress. WordPress debugging mode can output the exact error location with a more understandable message.
Locate this line in wp-config.php and update as follows: