Simple ways to fix White Screen of Death in WordPress

We are happy that there are Simple ways to fix White Screen of Death in WordPress. The WordPress White Screen of Death is one of the issues that may have occurred to your WordPress website. In this case, as the name implies, you will not be able to see any content other than a white page displayed on any section of the site. It includes the WordPress panel or the main pages of the site. This problem may come to you in two possible ways:

Simple ways to fix White Screen of Death in WordPress

  • In the most optimistic way, one part of the site, the WordPress panel, or the site pages will look like this.
  • In the most pessimistic case, both the WordPress panel and pages of the site will be white and it’s a bit worse to solve the problem.

The white Screen of Death in WordPress is usually due to php programming errors or restrictions imposed on the memory. If there is a problem with the user’s side and the WordPress panel is completely right. Then there’s a better chance to fix White Screen of Death in WordPress. Now let’s take a look at Simple ways to fix White Screen of Death in WordPress, so stay tuned to us.

How to fix it

In any case you should first identify the problem and after you know the problem where it is you should fix it. The White Screen of Death in WordPress will appear in a variety of ways in any browser, as you can see in the Google Chrome.

Simple ways to fix White Screen of Death in WordPress

In other browsers, like Firefox, you will face with a white page without content, with no specific posts or content displayed on it. In the following you will learn simple ways to fix white screen of death in WordPress.

Enable WordPress debugging mode

WordPress debug mode is the best way to know where our problem is. So, to enable it, just go to the File Manager section of the host, and then select the wp-config.php file located in the public_html path. Right-click and select the Edit option to edit it. On the Edit file screen, look for the following code snippet.

define( 'WP_DEBUG', false );

If you do not have this line, you can add it to the file and change it to true to enable it. So for debug mode to be active, you need to change the code above as it is placed instead of false.

define( 'WP_DEBUG', true);

Now, after you save the file, refresh the site, in this case, instead of the white screen that was displayed to you. You will see the following scripts showing you the error path and the error line. For fixing the problem Just go to the paths listed on each line to fix the problem.

Cannot redeclare get_posts() (previously declared in /var/www/html/wordpress/wp-includes/post.php:1874) in /var/www/html/wordpress/wp-content/plugins/my-test-plugin/my-test-plugin.php on line 38

In the above example, our error occurred in one of the plugins called the my-test-plugin and this error occurred exactly in line 38 of the my-test-plugin.php file in this plugin. Let’s look at where the problem is and where to fix it.

Deactivate plugins

Through Cpanel: The main reason for the White Screen of Death in WordPress is from the plugins. To fix it, disable them and turn them off. Then active them one by one to realize which one cause the problem and fix it. If you have access to the WordPress panel, you will need to go to the plugin’s path and select all plugins to deactivate them. Then activate them one by one and refresh the website to find the faulty plugin.

But if you do not have access to the WordPress counter, you can deactivate all plug-ins at the same time. To do this, first log on to your hosting site and then go to the File Manager section of the Web site.

Simple ways to fix White Screen of Death in WordPress

Now after entering file management in the host, enter the path / public_html / wp-content / as you see in the image. There is a folder called plugins that will be located in this folder of every plugin that you install.

Simple ways to fix White Screen of Death in WordPress

Simple ways to fix White Screen of Death in WordPress

Now it’s enough to right-click and rename the plugins folder to another name like pligins_old and then rename it to plugins so that all plugins are disabled. If the White Screen of Death in WordPress is on your site from the plugins side, you will be able to access the WordPress panel. Now you can activate and test plugins one by one to get the plugin that create error on the site and identify it.

Increase WordPress memory

Sometimes it happens that due to the need for more memory in WordPress, the White Screen of Death in WordPress is displayed to us. In order to fix it in this case enough to add the amount of WordPress php memory.

Using wp-config.php: Enter your host and after you have entered the File Manager, go to the public_html path. Then find the wp-config.php file and right-click on it to edit. Then write the following code in the appropriate place.

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

Then save the file and check the site to see if you can resolve it has.

Using php.ini: In this case, if it is possible of editing and modifying the php.ini file for you, you can create a file with the same name on the site root, in the public_html, and then put the following line inside it.

memory_limit = 64M

After saving the file, refresh the site to see if the problem has been resolved. If you do not succeed in this way, ask your hosting company to add the amount of php memory to you.

Good job! You learned Simple ways to fix White Screen of Death in WordPress.

Simple ways to fix White Screen of Death in WordPress
4.3 (85.71%) 14 vote[s]

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *