In your WordPress site, you may face sometime the white screen of death leaving you nothing to do. And due to no error reporting too, you can’t figure out about what caused it for your site. So, you are exhausted about how to fix this issue in your site and you search about it and landed in this very page. Well, you are then lucky regarding this issue for your site. Here, we will be learning about how to fix white screen of death in your site after you have installed WordPress Theme or plugin.
What is white screen of death in WordPress?
Well, it is when you could not see any of your site content at all and could not do anything since there is no error reporting for your site too. And this sometimes, you will see for the certain pages of your site only. For eg: you may be able to visit your WordPress back-end and sometimes, you may only have the feasible to visit your site pages only.
So, what may have caused the white screen of death for your site? Well, below we will discuss about what may have caused it for your site. And we will also learn about how to fix white screen of death too.
What may cause white screen of death in WordPress?
Well, if you have automatic updates available for your site then, maybe the automatic update process could not go well and hence, the white screen of death. Another reason is that, the allowed PHP memory to run your site has gone up due to too much site visitor which the server could not handle at all.
Similarly, what if you have just installed the WordPress theme in your site and activated it? And if the theme code is poorly coded then, you will get white screen of death. Also, maybe you are running older version of PHP for your site and the theme code uses the latest PHP version code. Well, this too will create the white screen of death for your site. Similarly is the case for the plugin install too.
And what if you have just updated the theme or plugin in your site and then, the site went down. Well, this is also the cause of white screen of death for your site.
Now, knowing some of the causes of the white screen of death, now you may figure out already about what may have caused it for your site, isn’t it? Well now, here we will learn about how to fix white screen of death in WordPress, shall we?
How to fix white screen of death in WordPress?
Since you have already learned about some of the causes of white screen of death for your site, we will learn about how to fix it now. Hence, lets move ahead and learn it about how to do, shall we? But first to remember, to create the backup of your site and proceed to solutions below.
Well, for the automatic update, you can disable the automatic update for your site since it might not went smooth. After it is disabled, you can manually update your WordPress site. You can add the below PHP code in the wp-config.php file to disable WordPress automatic update:
define( 'WP_AUTO_UPDATE_CORE', false );
In the case of the allowed PHP memory, you can increase the PHP memory limit for your site placing the below PHP code in the wp-config.php file:
define( 'WP_MEMORY_LIMIT', '128M' );
Now, in the case of the plugin or theme install, you need to rename the theme folder or plugin folder as needed. In the case of theme, if you remember about what theme activation created it in your site then, you can disable it via FTP. For it, you can open up your FTP client and then visit wordpress-install-directory/wp-content/themes folder. Now, rename the theme folder name and then the default WordPress theme will be activated for your site if you visit Appearance->Themes section.
Now in the case of plugin, it is similar way to deactivate the plugin as in theme. For it, just visit wordpress-install-directory/wp-content/plugins folder and then rename the plugin folder just activated for your site. Now, you will be able to visit your site without any issue at all. And once you visit Plugins section, you will get the message that the related plugin is deactivated.
And lastly, please ensure that you are running the latest version of PHP for your site since most of the themes and plugins code always inherit the latest PHP code trend. So, having older version of PHP for your site will probably cause the issue due to theme or plugin update as well as new install too.
You may also want to read:
- How To Change Login Logo URL In WordPress?
- How To Limit Excerpt Length In WordPress
- Make YouTube And Vimeo Video Responsive In WordPress
- Display Author Bio Without The Use Of Plugin
- Tutorial On Creating WordPress Child Theme
If you have followed up the tutorial properly and now can easily fix white screen of death in your WordPress site then, we can say that you are now more familiar on this than before. However, if you are still confused on the same and want to know more about it then, do drop the comment below in the comment box and we will follow it up.