If you have used WordPress and have a seniority with WordPress, then surely the white page error is an error that has been encountered at least once, the white page error in WordPress must be said to be very annoying when Website design with wordpress next to errors like 403 forbidden error or Error Establishing a Database Connection in WordPress. In this article, I will share some ways to fix white page errors in wordpress effectively.
The white page error makes you unable to access the wordpress admin page, besides there is no error message on the website homepage, a very annoying feeling.
In addition, the white page error in wordpress does not always appear on the entire page, sometimes the error only appears on a certain page such as the admin page, a certain post, the rest everything still works normally.
Why does white page error in wordpress happen?
Most of this error occurs because your server’s data memory is running low, this is caused by an inappropriate plugin, it can also be caused by the theme you install, or by the hosting you use for the site. cause. We need to check step by step.
Steps to fix white page error in wordpress
First you must make sure to backup your wordpress website data before proceeding to fix the error. Then proceed to see which pages the error appears on. If you use hosting for many websites, you should immediately check all websites for errors, if all websites are faulty, it is definitely caused by hosting, and if only 1 website is faulty, you should see more pages of our website. If the error occurs on the whole page, then we have to check the hosting and the error is only on a certain page, just check the plugin and theme is fine.
Method 1: Increase hosting memory limit
Add the following code to the wp-config.php file or to the PHP Version of cpanel to increase it.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
Method 2: Turn off all plugins in use
If increasing the memory limit still does not solve the error, then you need to use this step, go to cpanel hosting, file manager to wp-content folder => change the name of the plugins folder to deactive.plugins.
Then f5 back to the website to see if the error is gone. If the error is gone, it is caused by a certain plugin in this, now go to wordpress and activate each plugin to see exactly which plugin is causing the error.
In my experience, this error usually occurs due to a certain plugin or the theme does not match the plugin. Need proper update.
Method 3: Replace the wordpress theme you are using
If the above 2 methods still do not fix it, this is the next way, delete the theme you are using in the wp-content => themes folder. Remember that you have backed up your data before doing this step.
If you’re done and the error is gone, check the functions.php file to see if there is a space at the bottom of the file, this is also a common reason for white page errors in wordpress.
Some other ways
Try clearing your browser’s cache to see if it’s because of the cache, or add the following code to the wp-config.php file to see what the error message is so that it’s easier to fix. (Find and fix define : false to true)
error_reporting(E_ALL); ini_set(‘display_errors’, first);
define( ‘WP_DEBUG’, true);
Above are some ways to solve and fix white page errors in wordpress often used quite effectively, if you have a better way, please comment and share for mutual development. If you are new, take a look at my basic wordpress learning series.
If you are looking for a free wordpress sales theme, then my blog is also a reliable address for you!