Website Displays a Blank Page. Don’t Panic
What to do when your website only displays a WordPress blank page
You are doing something on your website and suddenly all you have in front of you is a WordPress blank page. What is your next step? Anybody who has had this experience knows the sick feeling you get and the momentary sense of panic, especially if this is the first time its ever happened. You are probably locked out of the WordPress Admin panel so how are you going to figure out what’s wrong? Stay calm. It may not be as bad as you think. There are some procedures that you can follow that will solve the problem in many cases.
Steps to take when WordPress blank page shows up
The first question is to determine whether or not the problem is with your website, or if your web host provider is at fault. If you have multiple sites and all you have is the WordPress empty page on all of them, it is very likely that the problem is with your web host. If it occurs only on one site, or only on certain parts of your site then the culprit is more than likely something on your end. Should it prove to be that case, then it will be necessary to try and determine the cause and find a solution. Try the following when the blank WordPress page has struck your site:
Increase your memory limit – In many cases you will get the blank page when you run short of memory. It might also be the reason for your slow website. You may get an error message. Open your wpconfig.php which is located in the root WordPress directory. Then add the following line inside the main php tag: define(‘WP_MEMORY_LIMIT’, ’64M’); This increases your memory to 64M. You could just as easily make your limit 128M in the same manner. If you are unable to increase the memory and you are sure it’s the problem, you will have to contact your host.
Disable all plugins – Plugins are often the cause of a WordPress blank page. If you were working on a plugin when the problem occurred, that’s a pretty good indicator which one caused the problem. If not then disable all of your WordPress plugins. If you are locked out of your admin panel, use FTP and navigate to the /wp-content/ folder. Look for a folder called plugins. The plugins folder will need to be renamed. It can be any name you choose. In this case it will be called “plugins.disable”. All of your plugins should be disabled once you complete this. If the problem was a plugin, you will now be able to get back into your admin panel:
- Log in and return to the folder that was renamed.
- Change the name back to plugins.
- Now go through the plugins and activate them.
- When your site breaks again after activating a plugin, you will know which plugin caused your problem.
- If a plugin is not the problem then go to the next step.
Check your theme – To see if your theme is the cause of your problem you will need to replace it with a default theme. The easiest way to do that is to back up your theme folder. After backing the theme folder up, delete the theme. WordPress will automatically go to a default theme. If this solves the problem then your theme is the issue.
Empty your cache – In some instances you will get a WordPress blank page because of a caching plugin. Try clearing your cache and see if this is the cause. Popular caching plugin that may cause this bug is W3 Total Cache. Check if you have it installed on your website.
Use the WordPress debug function – To use the debug function and the following code in your wp-config.php file:
1 error_reporting(E_ALL); ini_set('display_errors', 1); 2 3 define( 'WP_DEBUG', true);
There will be errors, notices and warnings on the blank screen now and it may be possible to determine the cause from these.
Re-install a fresh copy of WordPress – This is a more extreme step. It is possible that a core file became corrupted somehow in which case re-installing WordPress will solve the problem. Make sure you download the latest version from official WordPress.org website.
Hopefully one of the above steps will solve your WordPress empty page problem and you can relax. In the majority of cases, the problem will be resolved in one of the first three steps.