Tag: ftp errors

5 Frequent Wordpress Errors & How To Fix Them

wordpress-errors

WordPress is a stable and secure platform, but that doesn’t mean you won’t encounter errors on your website from time to time. There are several common issues many users face that prevent their visitors from accessing content and carrying out key functions.

5-common-wordpress

By learning about the most common WordPress errors and hiccups, you can prepare yourself to resolve them quickly. Getting your site back up and running fast will minimize any losses of traffic or revenue.
In this post, we’ll look at five of the most common types of errors that could show up on your WordPress site. We’ll also give you information on what to do if you encounter them. Let’s dive right in!

1. Plugin Conflicts

One of the best things about WordPress is how easy it is to customize your site’s functionality with plugins. Unfortunately, because these extensions, the platform itself, and its available themes are all created by many unique developers, they don’t always get along.
Plugin conflicts may result in many frustrating problems for your site, including:

  • Certain features not working. This is a little vague, but plugin conflicts aren’t always easy to diagnose. If part of your site is broken and you aren’t sure why, checking for incompatibilities is a standard troubleshooting best practice.
  • Timed Out Connections. An error reading “Connection timed out” may be an indication that there is a plugin conflict on your site.
  • A Call to Undefined Function. This means that a plugin on your site isn’t able to access code that it needs to work properly. Sometimes this is due to incompatibilities.
  • The White Screen of Death (WSoD). This error causes your site to appear as a blank white screen. It’s often the result of a plugin conflict.

The standard practice for dealing with these common WordPress errors is to switch to a default theme and deactivate all your plugins. Then, reactivate them one by one until the symptoms reappear. You’ll know that the most recently activated tool is the one causing the conflict.
If you’re locked out of your admin area, you can do this by connecting to your server via File Transfer Protocol (FTP) with an FTP Client such as FileZilla. Then, navigate to wp-content > plugins and rename each of the directories:

To reactivate your plugins, restore their original names. Once you’ve identified which tool is the source of the problem, it’s best to remove it.

The best way to run these tests is to use a staging site, which is an exact copy of your live WordPress site. Typically, hosting providers will provide staging sites for testing purposes.

2. Error Establishing a Database Connection

At some point or another, you may see an error message reading “Error Establishing a Database Connection” while trying to access your site’s back end:

database

This means that your website isn’t able to reach your database. Often, this is because the credentials listed in your wp-config.php file are incorrect.
To resolve this issue, first find your correct database credentials. Most web hosts will make them available somewhere in your account dashboard.
Then, connect to your server using FTP and locate wp-config.php:

5-common-wordpress

Right-click on it and select View/Edit. Compare the information listed in the following lines of code with that you found in your web hosting account:


If there are differences, make the necessary edits and re-upload the file to your server. In the event that the credentials in the file are correct, you’ll want to contact your hosting provider to determine if the problem lies with your server.

Whenever you’re making changes to a file such as wp-config.php, it’s always recommended to keep a backup of the original file on your desktop. Should something go wrong when you upload the updated file, such as not noticing there might have been a typo, you can quickly restore the original version in the same way while you figure out the exact cause of the problem.

3. 404: Page Not Found

As a user, being met with a 404: Page Not Found error is both disappointing and frustrating:

error

Ooops!

For site owners, this error means that visitors aren’t getting to your content. That’s a missed opportunity for a conversion.
There are a few situations that may lead to visitors running into your 404 page:

  • There are broken links on your site. This means that a user has attempted to navigate through your site via internal links, but was directed to a non-existent URL.
  • Outside sources include broken links to your site. Other websites may also have links that are supposed to point towards your site, but have become broken or were written incorrectly.
  • Your Pretty Permalinks settings are incorrect. This occurs most often when you’re using WordPress Multisite or Custom Post Types.

To find and fix broken links on your own site, you might consider a tool such as Broken Link Checker:

broken-link-checker-1536x503

This plugin detects links on your site that aren’t working and notifies you in your dashboard and by email.
Dealing with external broken links is a little trickier. One way to find them is with SEMRush’s Site Audit Tool which you can try out free at this link, just sign up and get started!

semrush-site-audit-600x348@2x

This will highlight broken internal and external links. You can then reach out to the owners of the sites containing them and ask to replace these paths with working ones.
If you believe the source of the problem is your Pretty Permalinks, you can usually fix this by navigating to Settings > Permalinks in WordPress and selecting the Plain option:

reset-pretty-permalinks-600x328@2x

4. WordPress Is Stuck in Maintenance Mode

Whenever you run an update on your WordPress site, it automatically goes into ‘maintenance mode’. Any visitors who attempt to access your site during this time will receive a message that your site is “unavailable for scheduled maintenance”:

unavailable-scheduled-maintenance-1536x351

Once the update is complete, everything should go back to normal. Unfortunately, sometimes WordPress gets stuck in maintenance mode, making your site unavailable to users for an extended period of time.
The solution to this error is fortunately relatively simple. Connect to your server using FTP, and look for a file named .maintenance:

ftp-maintenance-file-600x379@2x

Delete it, then return to your site. Everything should be back in working order.

5. Incorrect File Permissions

‘File permissions’ refer to a native security feature of WordPress. Based on your user role, you’re allowed to perform certain actions on your site, such as installing plugins or updating content. This prevents other users or hackers from making unauthorized changes.
However, sometimes your file permissions can be set incorrectly, preventing you from making administrator-level changes. This can result in several different issues. In some situations, you may see a message that reads “Sorry, you are not allowed to access this page”:

not-allowed-access-copy-600x147@2x

Other times, incorrect file permissions may prevent you from:

  • Installing or updating themes and plugins
  • Moving posts or pages to the trash
  • Uploading files to your Media Library

The best way to put your permission back in order is by using FTP. Once you connect to your server, select wp-admin, wp-includes, and wp-content. Right-click on them, then select File permissions:

ftp-file-permissions-600x379@2x

In the resulting window, set the Numeric Value to 755. Select recurse into subdirectories and apply to directories only. Repeat this process, but set the Numeric Value to 644 and select recurse into subdirectories and apply to files only:

change-file-permissions-600x380@2x

Then, select the rest of the files in public_html. Right-click on them and select File permissions once more. The Numeric Value should again be 644, but there’s no need to worry about the other settings.

So, that’s a quick look at 5 of the most prevalent errors with Wordpress, if you enjoyed this post, why not check out this article on SEO Blunders and how to avoid them!

Post by Xhostcom Wordpress & Digital Services, subscribe to newsletter for more!

Filed under: WordpressTagged with: , ,