- Published by
- Posted on
- Leave your thoughts
WordPress popularity is rising with each passing day, and webmasters around the world are widely using this content management system (CMS) for creating and running their sites. However, there are a few common errors that can make any WP beginner to panic. In this post, we will look at the top 10 most common WP errors and how they can be fixed:
Error Establishing a Database Connection
As the name implies, this error message pops up whenever your site can’t connect to the database. But, resolving this issue can give hard time to novices. Such kind of error occurs when a user made some changes to database credentials (like database host, database username and/or password) incorrectly. This error sometimes also occurs when your database server is unresponsive, or has become corrupted.
How to Fix the error?
In order to fix this error, you need to make edits to your wp-config.php file and confirm that the database host, name and password that you entered are correct. In case, you can’t locate any issue within your wp-config.php file you should talk to your web hosting service provider. This will help you know whether the problem persists from the end of your web hosting service provider, or it’s because of lack of security from your side. In case, you come to know about any some security issues, it becomes essential to ensure that your site isn’t hacked. For this purpose, you can test your site by using plugins such as the Sucuri Sitecheck.
Internal Server Error
Internal Server Error message is displayed in several ways like in the form of “HTTP 500 Error”, “500 Internal Server Error” etc. This type of error can be a lot frustrating for the beginners, since it will let you know that something when wrong with the server, but you can’t identify what’s the exact problem.
How to fix this error?
This error occurs due to corrupted .htacess file, and thus you need to edit the file. For doing so, open your FTP and rename your existing .htaccess file to something like .htaccess.old. Next, refresh your browser and verify whether the error has been solved or not. If the error no longer prevails in the file, save the changes you’ve done to the file and “flush the write rules”. If it doesn’t work, then you should check out the plugins installed in your website and deactivate them. But if the problem is not with your plugins, then probably your website theme would have caused the error; in that case switch to default WP theme and re-load your site.
WordPress Syntax Error
You may encounter this error because of using incorrect syntax or when you’ve fortuitously missed something (like bracket or character(s)) while coding. This eventually causes a PHP parse error and you’ll see a message as shown below:
Parse error – syntax error, unexpected $end in
/public_html/site2/wp-content/themes/my-newtheme/functions.php on line 234
The best part is that you the error message will let you identify what went wrong with the code, and the location where the error occurred (with line number).
How to fix the error?
The best way to tackle such sort of error is to educate yourself about how to add code snippets in your WP powered site. In case, the error is caused after updating a plugin (after pasting some code from the web to your site), then remember that won’t be able to rectify the syntax error by navigating to Appearance>>Editor, as you’ll be restricted to use your site during a syntax error. This would certainly make beginners freak out. However, there’s nothing to fret as you can make changes to the your site’s files by accessing them via FTP or File Manager in cPanel. If the problem still persists, then your plugin or site theme may contain faulty codes and it is better to replace them with some other plugin or theme respectively.
WordPress Posts Returning 404 Error
Often when a user visits a single WP post they stumble across a “404 page not found error”, even though they can browse other sections along with the admin area. The kind of error usually takes place because the .htaccess file got deleted accidentally or due to some issues with the rewrite rules.
How to fix the error?
You can fix the error by updating your permalink settings. For this, open your site’s admin panel and go to Settings>>Permalinks. Next, update the permalinks settings by selecting permalinks of your choice and click on “Save changes” button. Plus don’t forget to flush the rewrite rules. In case, this solution don’t work for you then you would need to manually update your .htaccess file by logging into your server via FTP.
WordPress White Screen of Death
This type of error leads to a blank screen and no error message is generated, and thus makes it confusing for the users to determine where they should look for the error and what they actually need to fix. White screen of death error is caused due to installing an incompatible theme or plugin.
How to fix the error?
In order to deal with this problem, you need to set apart the plug-in directory. And then, access your root installation directory through FTP. In case you’re seeing only a plain white screen, and are unable to access your WP website, then move to /wp-content folder. Now try to locate the plug-in directory and assign it some other name. Make sure to create a new folder for your plugins as well. Now try accessing your site, if you can simply copy the files into the new folder from the old one, and you’ll come to know which plugin caused “white screen of death” error.
We hope that the post will prove to be a useful resource for beginners, seeking for ways to solve the above described – the 4 most common WordPress errors.
About Me :- Samuel Dawson has over many years of experience in programming and writing for wordpress. He has delivered many successful projects on HTML to WordPress theme conversion services and many more. When not working on codes and writings, he loves to hand out with friends outside.