Fix 11 Common WordPress Errors Without Paying a Penny In 2018! |
Fix 11 Common WordPress Errors Without Paying a Penny In 2018! Posted: 28 Feb 2018 07:01 AM PST Wordpress errors could become a headache or a nightmare for a webmaster who may not be well versed with handling PHP errors or MySQL database errors. Thankfully WordPress community has matured so much since 2003 that today there is an answer for almost every problem faced by a WordPress user. WordPress is used by more than 29.9% of the top 10 million websites as of February 2018. It is the most popular content management system with a market share of 60.2% while Google blogger has a market share of just 2% (We play a part in that share too!). Our site (MBT) is hosted on blogger and we have not yet migrated to Wordpress for several reasons. Security, WP errors and hosting expenses are amongst the biggest reasons why we have not yet moved. However we have four other sites which are hosted on WordPress and we enjoy using WP a lot. In this tutorial I will share 11 Common WordPress errors that we often face and their easy solutions as applicable in 2018. After following this tutorial thoroughly, you will surely acquire enough skills to troubleshoot your WordPress blog without paying a penny to a developer. You can surely buy me a coffee with your savings if you wish to! ;) 1. Common WordPress Database ErrorsYour entire wordpress posts, comments and pages data is stored inside MySQL database, which is an open source relational database management system. Wordpress updates, adds, removes or deletes data from these databases by performing structured query language commands using PHP. Every Web host provides a friendly user interface called phpMyAdmin using which you can easily solve the following database errors: Cannot Create/Write to FileThis error occurs when:
You can easily fix this problem by changing the tmpdlr variable to point to a writable directory. Follow these steps:
Every file has certain read/write/execute permissions grouped as:
You can easily edit the file permissions on your wp-content directory using an FTP client. I highly recommend you read the following tutorial by Wordpress to understand this problem in detail. Unknown ColumnThere are two possible reasons why you are seeing this error. Either you are using incorrect quotation marks for the identifier quote character while running a database query or Wordpress Core update is not installed properly. For the first reason I reason you go through the MySQL documentation to see what went wrong on your side. For the second reason I recommend manually upgrading WordPress again by using a FTP client. Follow these steps:
That's it! If you have successfully replaced all files correctly then your site will be up in no time. If you get into a problem, do not panic and head straight to Google as there are tons of guides on stackoverflow and WP community forum. These methods really empowers you to understand the core structure of WordPress and solve almost any error encountered in future. Master this skill and you can easily troubleshoot all WP errors! 2. Fix WordPress Error "Connection Timed Out"When you put more load on your website than your server can actually cover, you are inviting this error. Since shared hosting have limited bandwidth and some webhosts like siteground provide only a limit of 25,000 pageviews a month, its common you may face this error during high traffic spikes or too much media being browsed. Such wordpress errors will be more commonly seen in 2018 as web hosting costs continue rising. Following are few things you can try to resolve this error:
These three things will hopefully resolve this error easily. 3. Fix Error WordPress "Establishing Database Connection"You see this error when your server can not connect to your database. There are several reasons which could cause this. In my case following are the main culprits: Incorrect wp-config.php InformationUsing FilezillaoOpen up wp-config.php file and double check if the following details are correctly inserted:
All these credential details must match with those set by you. Compromised WebsiteI saw this error twice in 2017 when someone had compromised my site through a PHP contact form and got full control of the index.html page. In other words, you could see a database connection error when your site is h***ked. You must immediately contact your webhost and inform them to restore your backup. I highly recommend not to provide the "Upload" option in any of your website forms to allow readers to send you attachments. H***kers see it as an opportunity to attach malicious code that badly effects your data hierarchy and replaces your index.html page with index.php page of their own. This way they frighten you with a message on your homepage: "Your website is h***ked by XYZ!" 4. Fix 403 Forbidden Error in WordPressIf the error reads on your screen as:
403 Forbidden error is shown mostly when your server does not give permissions to access a specific page. This error is often caused by poorly coded third party security plugins, or server configuration. To fix this error simply open Filezilla and locate .htaccess and delete it. Now check your site, if its resolved than your .htaccess file was corrupted. You can then move ahead to generate a fresh .htaccess file. Simply log into WordPress and going to Settings » Permalinks page. Do not change anything and simply click the "Save Changes" button at the bottom of the page and you are done! A new .htaccess file will be automatically created in your root directory. If in case you are looking for more details related to 403 error and want comprehensive tutorial on how to fix 403 error then head to this in-depth guide by 000webhost which covers A-Z details of WordPress 403 Forbidden Error and how to troubleshoot it. I am sure the above methods will help you in easily fixing this error in future. Doing it for the first time will take some time and technical know-how but once you understand the basic steps, it would become a piece of cake the next time you encounter a 403 error. 5. Browser not showing the changes made on WordPress File EditorMost often when you edit your CSS files or other related files in WordPress file editor, you fail to see the site reflecting the changes made. This happens because the browser loads a cache of your last changes in order to speed up the load time the next time a user visits your pages. Even if you disable the WP Super Cache plugin or similar, the problem still remains there. To fix this problem, first try deleting your browser cache or close the tab and reopen the link. If nothing worked, then hit Ctrl + U and find style.css link inside the source code of your site. Open it and then hit the refresh key (F5) 2-3 times. Now go back and reload the site to see the changes in action. 6. Custom Post Type 404 ErrorsTo troubleshoot 404 errors or custom post types follow these steps:
7. How to fix Pretty Permalinks 404Most WordPress multisite users often experience 404 errors with pretty permalinks while uploading images. This happens because mod_rewrite is not be enabled in Apache by default. To fix this error simply log into WP and reset your permalinks through Settings > Permalinks. Click the save button and you are done! If this does not solve the problem then you can replace the contents of your .htaccess file with the following code either using Yoast plugin or Filezilla 8. Fix Internal Server ErrorThere are several ways that cause this error and we will discuss the major solutions to fixing this problem:
All these methods if applied correctly will surely bring your site back in order. 9. Fix the WordPress White Screen Of D***thIf you see nothing on your site's homepage but a blank page then know that its the WP white screen of d***th. It is caused either by a poorly coded WP plugin, theme or a corrupted .htaccess file. Apply all the methods that we discussed in point 8 i.e. "Fixing Internal server error". 10. How to fix syntax error in WordPressSyntax error occurs most often when you incorrectly edit files such as functions.php file or any other file with .php extension using the WP file editor. You then come across an error on screen that either reads as "Parse error", "use of an undefined constant" or similar and shows you the line number where this error is occurring. A syntax error occurs when you make a mistake in writing the correct PHP structure code. It could be a missing terminator (;), or comma, closing tag or a missing bracket. If Parse Error error occurs then it means that you have forgotten to include a character. The most common are:
"Use of an Undefined constant" error also occurs when you have forgotten to include a character. It could be one of the following:
The only way easy way to fix these errors is to open that specific PHP file in a FTP client such as FileZilla and make the necessary syntax edits and re-upload the file. That simple! 11. Fix Wordpress error "Maintenance Mode Following Upgrade"Wordpress installs a .maintenance file when you run a WordPress update. During that time when WordPress is upgrading, your visitors will see this message for a short span of time "Briefly unavailable for scheduled maintenance. Please check back in a minute." The maintenance file is a temporary file and is deleted as soon as the upgrade process completes but sometimes this file may not have been removed properly due to several reasons. To fix this error simply connect to your site using FileZilla and inside the root directory folders, find and delete the .maintenance file. That's it! ConclusionAll these easy fixes really made my life at ease when I was new to WordPress. Not knowing these simple tweaks equals banging your head against the wall when you come across such frightening white screen errors. Educating yourself will not only reduce your development expenses this year (2018) but will also strengthen your technical skills and make you a well versed webmaster. I hope this easy guide may help you in troubleshooting day to day errors faced in WordPress. I would love to answer any queries you might have. Please leave your queries in the comment box below. |
You are subscribed to email updates from My Blogger Tricks. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |