Resolution for solving 5 common WordPress errors is given in this article do read it.
We cannot deny the fact that WordPress is one of the most loved platforms for people to build websites today. As much as we admire it, there are times when WordPress makes maintaining a website one heck of a job.
Be it a white screen of death that irritates or an unknown database error that causes your website to break down, WordPress becomes no fun when you encounter such errors. Fortunately, for every problem, there is a solution and WordPress is no exception.
If you are not one of those who like to get their hands dirty in coding and messing around with WP files, you can always take help of the professionals. Outsource WordPress Development service is one sure shot solution to get rid of all WordPress errors once and for all. However, if you are more of a “do-it-yourself” person, we’ve got you covered here.
We are going to share some of the most 5 common WordPress errors webmasters come across and a way to resolve it. Hope you find them handy.
1. Error Establishing a Database Connection
Ever tried installing WordPress? If so, you probably be familiar with this error. Moreover, this is quite a self-explanatory error. The error clearly indicates that you couldn’t connect to your database.
Well, there can be several causes of this error including an error in wp-config.Php, a problem in web hosting or hacking.
Fix your wp-config.php
Open your wp-config.php file through FTP or file manager in Cpanel and check whether database information is correct or not including the database name, host, username, and password. If you are just a beginner, you would need to learn few things about wp-config file.
Well, you can find the relevant information written under a comment saying
//** MySQL settings – you can get this information from your web host **//
/** The name of the database for WordPress **//
and so on…..
Fixes issues with web host
If you find your wp-config.php file absolutely fine, it’s time to check with your web hosting provider. You would get to know whether your database has exceeded its quota or there are some temporary issues with the server.
Scan your site for hacking attacks
Hacking is a common practice with WordPress websites since it is one of the most vulnerable CMS available because of its popularity. In case you find everything fine with your hosting server, you better prepare your site from hacking attacks. Install a plugin or two such as Sucuri Sitecheck to ensure everything is in place and nothing is going to hurt your site. Additionally, make sure you backup your site every so often in case something goes wrong.
2. Lost Admin password or email is not working
With so many passwords to keep in your mind, it’s quite normal to forget a password or two. In fact, remembering passwords becomes hard at times. Unfortunately, like other platforms, WordPress makes it quite difficult to recover or change your site’s admin password. You have clicked on “forgot your password” link, filled your relevant email id to get the password change link, but failed to get any link in your email id. Yes, it does happen with WordPress.
Use the power of database
Login to your Cpanel and under databases section, open phpMyAdmin. Next click on your database name. You should be able to see many tables in the right tab.
Click on a table called wp-users and then browse. You should see a row with your username details such as username, password, ID and much more.
Now, it’s time to change your password in the user_pass column. Note before saving it, click on MD5 in the menu function.
Edit your functions.php
Set up a connection with your server via FTP and open “functions.php” file. Reset your password by adding following line of code
wp-set-password(‘DesiredNewPassword’, 1); Change the value of desiredNewPassword with your new password and the other parameter is the user_ID from the wp-users table. Hit save to save all the changes made in the file and upload it your FTP.
3. Connection timed out error
This is one of the most common yet important error that usually lives on an overwhelmed shared server.
1. Heavy themes or plugins
2. errors in theme functions
3. Exhausted PHP Memory Limit
Since the problem is related to heavy website activities, you can easily get rid of this error by uninstalling any heavy plugin installed lately and switching back to a simple theme such as ‘twentythirteen’ or ‘twentytwelve’ theme to check if the problem persists.
You can also increase your PHP memory limit by adding a line of code in your functions.php
or you can add this line of code in your .htaccess file at the top.
php_value memory_limit 256M
4. Stylesheet Missing
You probably have bought a beautiful and enticing theme from a trusted source; however, still you find a “theme install failed” error in while installing it. Frustrating. Isn’t it?
Well, there are two things possible either you have been robbed (which we hope isn’t true) or you have missed uploading a root theme folder.
Open your theme folder and check if it comes with a sub-directory. Find a folder with the same name as that of your theme name. Now zip it and try uploading it either via FTP or WordPress itself.
5. 404 Page errors
Have you just received a 404 error on your blog page? It is common and usually is a result of bad permalink settings. This is a common problem with themes that offer custom post types.
To get things right, you need to make certain changes in your permalinks. Open settings and then permalinks. Choose a relevant option and hit save button. Check again if your post is still returning a 404 error or not.
Sometimes it does get hard to tackle certain errors in your WordPress website. However with little patience and caution, you can get rid of them in no time.
About the Author-
Emily Johns is a web developer cum writer. She is associated with Wordsuccor Ltd., WordPress CMS Development Company based in USA. She utilizes her in-depth knowledge to meet clients goal. You can connect with her if you need to hire an expert WordPress Developer.