WordPress is an excellent software mechanism that is useful for creating a website and blog. It works best for different industries. But sometimes, it stops working because of errors. The reason for WordPress not working is different. Maybe there is any server related problem; files get damaged, PHP memory has exhausted the problem in .htaccess file, and much more. Whatever the reason is, we are discussing it.
1. White Screen of Death
The WordPress white screen of death is the usual Error, but it is quite menacing. It makes user confused because it doesn’t tell why an empty white screen appears in your website front end. But the good thing is that this Error is not hard to solve. Here are a few tips to fix the WSOD error.
Activate debugging tool
When you enable debugging in WordPress, WordPress will start displaying error messages that it would hide in a production environment. The reason why WordPress hides these error messages is that a hacker might misuse the information these errors offer.
When you activate the WordPress error log in the WordPress website, it begins showcasing error notification that was not visible. The Error was hidden earlier in the database because hackers can misuse the information errors. After activating debugging mode, you can view the actual Error
- To activate debugging use below syntax in
- Once you enable debugging, you might see the real Error. Wp-config.php file:
- define(‘WP_DEBUG’, true);
- The code might have presented in the form of “false,” turn it into the” true.”
Upload the default theme
Sometimes the third party themes of WordPress bring errors on the website. The best way is to upload the standard to the default theme. The reason for uploading the core theme is that it doesn’t usually have any complication and compatibility issues.
Eliminate all the plugins
Go to your dashboard and search the plugins. The plugins sometimes make your website down. The best way to get rid of the Error is to remove them. But try to remove one at a time.
By doing this, you can get the specific theme that becomes the reason for the white screen of death error.
Enlarge the PHP memory
Maybe the shortage of PHP memory is leading to the Error on the website. Go to either php.ini file, wp-copnfig.php file or, htaccess file and increase the memory accordingly.
2. WordPress 404 Not Found Error
When it comes to WordPress 404 Not Found Error, then it appears when the page requested by users not present on the website. We are giving the solutions for troubleshooting of 404 error
Solutions to fix WordPress 404 error
- Type correct URL on the address bar of the internet as sometimes we get Error because of mistakenly wrong URL
- Go to the permalink structure of the WordPress website through WP admin login and then save permalink s
- You can also manually set URL and save changes in the permalink section
- Generate a new .htaccess file and upload to the website server
- Try 301 redirection to the new URL
3.500 Internal Server Error
The Http error 500 WordPress shows that there is something wrong server, but the server system is not detecting the actual Error. There are multiple reasons for WordPress error 500, and we have multiple solutions for this Error
Tips to rectify WordPress error 500
Scrutinize your .htaccess file
The .htaccess file is the significant file that is for URLs rewrite. Make changes in the file, or you can also create a new file to fix the Error. The WordPress permalink setting has a “pretty permalinks” option that utilizes .htaccess file to set the URLs of the website smartly.
Move back to the default theme.
If you are getting the 500 internal server error message, then you possibly face issue in admin dashboard access. Go to the admin dashboard and locate the theme segment. Replace the present theme to the default theme.
Amplify the memory limit
The default memory of the WordPress website crossed its limits, and it can bring the Error. You can enlarge the PHP memory limit in the wp-config.php file.
Delete all plugins
The broken or incompatible plugins might be the leading cause of why you are facing this Error. Delete all plugins to get rid of this Error.
4. WordPress HTTP error when uploading images
The WordPress HTTP error when uploading images happened when the image editor of the website failed to upload the image. It is possible because of image size is big in pixel size. Here are some solutions
Solutions
- Reduce the image size before uploading to the website: check that which image size is applicable to the site and don’t exceed the size of the image
- Boost the PHP memory of the site: expand PHP limit in wp-config.php file, and it is very easy to increase the image.
- The conflicts of Plugin cause the Error, so delete such plugins and try uploading images after that.
- Change your Image media library and replace it with the default one
- Consult your Hosting provider
5. Connection Timed Out Error
The connection timed out Error appears when WordPress exceeds its memory to function with it. It also appears when the page is not loading and might be internet disconnection is behind this or any server issue.
Solutions
Firstly you should increase the memory. Visit the wp-config.php file and search the code
define(‘WP_MEMORY_LIMIT’, ’64M’);
- Now change the 64M into the 128M or 256M whichever you require
- You can also try to remove all plugins as they can also cause the connection timed out Error
- Check your internet connection and make sure it is giving proper speed
- Inspect the firewall and proxy settings
6. Error establishing database connection in WordPress
When WordPress doesn’t connect with the database, then the Error is as Error establishing database connection in WordPress. However, it is not difficult to solve the Error, but you need expert guidance
Solutions
- Enter the correct database user name and password
- Delete the corrupt file and upload the default one
- Corrupt themes need to be removed
- Eliminate plugins that are troubling the website
Concluding thoughts
We have covered some of the WordPress errors in this guide. Moreover, we have also given the appropriate solutions for the above-explained errors. There are many other errors associated with WordPress, and we will talk about them in a later session. Meanwhile, you can try all these troubleshooting methods and make your website free from errors.