Top 8 ways to Troubleshoot WordPress Errors
Do you face common WordPress errors on your site? Do you want to troubleshoot these WordPress errors on your own? You can solve most of these errors by following easy troubleshooting steps.
1.Create a Backup of your Site
The first thing you should do is to create a complete backup of your WordPress site. If you were already using a WordPress backup plugin, then make sure that you have a recent backup safely stored.
If you were not using a backup plugin, then you should start using one immediately. However, in case you don’t have access to the admin area of your WordPress site, then you will need to manually backup your database and files. Backups allow you to restore your WordPress site easily when something goes wrong. They are your first and most important defense against security threats, hacking, and data loss.
You can easily refresh permalinks without changing anything on your WordPress site. Visit Settings » Permalinks page and click on ‘Save Changes’ button without changing anything.
3.Fix WordPress Site URL
Having incorrect settings for WordPress URL and Site URL options can also cause redirect issues, 404 errors, and some other common issues.
WordPress URL and Site URL options can be changed from admin area by visiting Settings » General page.
Make sure that both URLs are exactly the same.
If you do not have access to the admin area of your WordPress site, then you can change these URLs using FTP. There are two ways to do that using FTP:
Update WordPress URL and Site URL Settings in wp-config.php File
Once connected to your website using an FTP client, locate wp-config.php file. Now you need to edit this file in a text editor like Notepad.
Go to the line that says
/* That's all, stop editing!. */, and just before it, add this code:
Now save your changes and upload the file back to your server.
Update URLs Using functions.php File
You can also update URLs using your theme’s functions.php file.
Open your FTP client and navigate to /wp-content/themes/ folder. Open your currently active theme’s folder and locate functions.php file inside it. Now you will need to edit the functions.php file in a text editor like Notepad.
Simply add these lines at the bottom of the functions file:
update_option( 'siteurl', 'http://onlineshouter.com' ); update_option( 'home', 'http://onlineshouter.com' );
Don’t forget to change WordPress URLs from the settings page after you login to your site. Once you have added them on the settings page, you need to delete these lines from your theme’s functions file.
4.Switch to Default Theme
Sometimes your WordPress theme can cause issues on your site. You can easily find out if your theme is causing an issue by switching to a default WordPress theme like Twenty Sixteen or Twenty Thirteen.
Head over to Appearance » Themes page and then click on the Activate button next to a default theme.
However, if you don’t have access to the admin area of your WordPress site, then you will need to use FTP to switch theme.
Connect to your website using an FTP client and then navigate to /wp-content/themes/ folder. Download your currently active theme as a backup to your Desktop.
After that, you need to delete all themes except a default WordPress theme like TwentySixteen. Since your active theme will no longer be available, WordPress will now automatically switch to using the default theme available.
If your theme was causing the issue, then you should be able to log in to your WordPress site now.
5.Backup and Delete .htaccess File
A corrupt .htaccess file is often the cause of the internal server error.
First, you need to connect to your website using an FTP client. The .htaccess file is located in your site’s root directory. Since it is a hidden file, you may need to force your FTP client to show hidden files.
You need to download the .htaccess file to your computer as a backup, and then delete it from your web server.
You can now try to login to your WordPress site and go to Settings » Permalinks page. Click on the Save Changes button to refresh your permalinks and to regenerate a new .htaccess file for your site.
6.Scan for Malware and Backdoors
If you suspect that your WordPress site is affected with malware, then you should scan your website with Sucuri. It is the best website security monitoring service for WordPress site owners.
7.Check Reading Settings
If your newly created WordPress site is not indexed by search engines, then this is the first thing that you should do.
Login to your WordPress site and go to Settings » Reading page. Scroll down to the bottom of the page and make sure that the box next to ‘Search Engine Visibility’ is unchecked.
This option allows you to discourage search engines from showing your website in search. It is used by webmasters when they are working on a website which is not ready to be live. Sometimes you can accidentally check this setting and forget about it.
Make sure that this option is unchecked when your website is ready to go live.
8.Deactivate All Installed Plugins
Most of the times errors are caused by a plugin conflicting with each other, your theme, or the WordPress core. Deactivating all WordPress plugins on your site will most likely solve the problem. You can then find out which plugin was causing the issue by activating plugins one by one on your site.
If you have access to the admin area of your WordPress site, then simply head over to the plugins page.
Latest posts by sarah ali (see all)
- How to Fix the Internal Server Error in WordPress - July 24, 2017
- How to Reset your WordPress Password using PhpMyAdmin - July 16, 2017
- Top 5 A/B Testing Tools For WordPress Users - June 30, 2017