WordPress White Screen of Death
Generally, this error is shown when the page exceeds the PHP memory limit. The error shows only a white screen but doesnât show any messages so it is quite difficult for the user to find out the source.
The WordPress white screen of death is one of the most common errors that you may have to face once in a while. You are just shown a blank white screen with no error message which makes it even more frustrating.
The white screen of death may not affect the entire site but certain parts of it. For example, you may see the website fine but wonât see the admin area because it is where the error has occurred.
Luckily this error is not too hard to fix and in this tutorial, we will show you how to fix the WordPress white screen of death.
Note: Before attempting any solution, please make sure to backup your website. if you donât have access to the admin area, backup through FTP.
Cause of White Screen of Death
The white screen of death generally occurs when one of your scripts has exhausted the memory limit of your hosting server. The script gets automatically killed by the server which in-turns results in a blank white screen with no error message.
The error can also come if you are using a poorly coded theme. Thatâs why recommend buying a theme from Themeforest.net as mostly they have very high-quality themes.
Since the white screen of death can be caused by a number of factors, here we are listing several potential fixes that may work for you.
Method 1: Increase PHP Memory Limit
One of the reasons for this error is the exhaustion of the PHP memory limit. To fix it, just increase the PHP memory limit and that should give enough memory to the script to run properly.
How to Increase PHP Memory Limit
METHOD 1: INCREASE PHP MEMORY LIMIT THROUGH CPANEL MULTI PHP INI EDITOR
To increase PHP memory limit through MultiPHP INI Editor:
- Go to your hosting CPanel.
- Find âMultiPHP INI Editorâ and click on it.
- Select the website from the dropdown.
- Find memory_limit and set it to at least 512M.
METHOD 2: INCREASE PHP MEMORY LIMIT THROUGH WP-CONFIG.PHP FILE
- Navigate to your websiteâs root folder.
- Find wp-config.php
- Right-click on the file and click on edit.
- Paste the below code just before the line that says âThatâs all, stop editing! Happy blogging.â
define( 'WP_MEMORY_LIMIT', '512M' );
Save the edit.