Common WordPress errors and messages :A Short guide with Solutions [Part 1]

 

WordPress-errors-messages- Short-guide-with-Solutions

 

WordPress is the most cherished CMS among both beginners and pro’s. While its user friendliness attracts many, its errors messages and error codes can scare many.

This post covers most common WordPress errors and messages which beginners and pros encounter and solution to them.

Let start.

 

 

WordPress Memory Exhausted error;  Increase PHP memory limit

This is the most common error faced by most of the users. One of the interesting fact about PHP memory limit, it is the solution to many WordPress errors combined.

Memory-Exhausted-error-low-php-memory

This error occurs when your PHP processes try to exceed memory more than allotted.


Solution for increasing PHP Memory Limit in WordPress

  • Open wp-config.PHP and add this code just below <?PHP

    define(‘WP_MEMORY_LIMIT’, ‘128M’);
    Save your changes.
  • You can also increase PHP memory limit by navigating to wp-admin folder, create a new PHP.ini and this code
    memory_limit = 128M
    Save your changes.
  • You can also use .htaccess to increase PHP Memory limit. Add this code at the bottom of .htaccess

    PHP_value memory_limit 128M

 

Internal server error WordPress Error

internal-server-error-wordpress-fix

The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website’s server and server could not be more specific about the problem. I would like to call it the wifey error, you don’t know what exactly is wrong, but definitely something is wrong.

Since the server too doesn’t have any idea about the exact error source, it’s up to you to figure this out.


Solution for Internal server error in WordPress

Possible fix to this error is:

  • Replace your .htaccess file with a newly generated .htaccess file. Chances are that the error is because of a corrupted .htaccess file.  This is how you can create a new .htaccess file.     
  • Try deactivating all of your Plugins to see if it is a Plugin issue. Deactivate them from WordPress dashboard; if you cannot access the dashboard, disable them by using FTP.
  • Increase the PHP limit.
  • Reupload core files. Re-upload the wp-admin and wp-includes folders from a fresh installation zip.

 

Error Establishing a Database Connection WordPress Error

error-establishing-connection-1error-establishing-connection-2

 

 

 

 

 

This error mostly appears during the second step of WordPress installation or after migrating WordPress to other webs server.

If you get this error page, this means that there is a problem with the connection to your database.

Another possibility is that your database has been corrupted.

To check the reason in your case, visit /wp-admin on the same domain.
If the error is same i.e. “Error establishing a database connection, then there is an issue with your database connectivity credentials in wp-config.PHP.

If the error says “One or more database tables are unavailable. The database may need to be repaired”; your database is corrupted.

one-or-more-database-tables-are-unavailable-wordpress-error


Solution for  Error Establishing a Database Connection WordPress Error

  • To fix “Error establishing a database connection”, cross check your database credentials like database name, database user name, database password and most importantly the hostname.  Confirm hostname with your hosting provider if username and password are correct.
    wp-config-php-database-entries
  • To fix “One or more database tables are unavailable. The database may need to be repaired” error, you have to repair your database.

    To repair your database, add this code; just above “That’s all, stop editing! Happy blogging’  in wp-config.PHP.
    define(‘WP_ALLOW_REPAIR’, true);

    Once you have added and saved, visit to this page
    http://www.sitename.com/wp-admin/maint/repair.PHP

    repair-database-wordpress
    There is no need for a user to be logged in to perform the repair. After the repair is accomplished, remove the code from wp-config.PHP.

 

Too Many Redirects Issue in WordPress

page-redirect-loop-issue-wordpress-mozillapage-redirect-loop-issue-wordpress-chrome

 

 

 

 

 

 

 

This error means there is a misconfiguration in your WordPress settings, that is making your website go into redirection loop. This is the reason your website cannot stop redirecting from one page to another.

This error can be caused by plugins which overwrite redirection rules.

Due to a misconfiguration and conflict between default rules and plugins, your site may end up redirecting users to a URL that is actually redirecting them back to the referring URL.


Solution for Too Many Redirects Issue in WordPress

  • Checking URL destination in dashboard
    Check your WordPress Address (URL) and Site Address (URL). Make sure the URL you see is correct. If your WordPress installation is in a subfolder, use the address including that folder.

    WordPress Address (URL): example.com/wp
    Site Address (URL): example.com/wp
  • If you do not have access to dashboard because of redirection issue, you can define this setting in your wp-config.PHP file. Add this line in your .wp-config.

    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com‘);
  • If this setting is correct, disable all the plugins from the dashboard or via FTP.

  • If plugins are not the issue, check the .htaccess configuration. Rename current .htaccess and upload a default .htaccess file.

 

Are You Sure You Want to Do This WordPress Error

are-you-sure-you-want-to-do-this-wordpress-error

You might have come across this error rarely in WordPress admin area. The most common cause of this error is a plugin or theme failing to use Nonce properly while

  • Publishing posts or pages
  • Inserting an image into a post
  • Customizing a theme
  • Creating tags or categories
  • Uploading a theme or plugin
  • Updating WordPress core or plugins and themes


Nonce are special security keys which may be appended to URLs when performing an admin action in WordPress. Sometimes a plugin or theme may use it incorrectly which may result into users seeing this error.


Solution for Are You Sure You Want to Do This WordPress Error

  • Clear your cache.
  • Disabling your plugin: You can disable plugins and cross check for this error. A poorly coded plugin can conflict with WordPress security.
  • Reverting back to default theme: Alike plugins, themes can be poorly coded,  so revert back to default /previous theme.
  • Increase PHP memory limit.
  • Reset security keys: Goto wp-config.PHP and look for Salt keys. They will look like belowsalt-keys-wordpress-wpconfig
    You need not to create these keys by yourself, you can use random salt key generator for generating.

 

403 Forbidden Error in WordPress

403-forbidden

403 forbidden error arise because of incorrect file and folder permission settings. There are primarily three permissions on the server i.e. writable, executable and readable.

Changing default file permissions can cause 403 error.

403 errors can be encountered

  • On WordPress installation page.
  • At wp-admin or WordPress login page.
  • While visiting any page on your site.
  • As  ‘Access Denied’ instead of full 403 Forbidden status.
  • As  ‘Access to yourdomain.com was denied. You don’t have authorization to view this page’ error message.

 

Solution for 403 Forbidden Error in WordPress

  • Deactivate all the plugins to check whether the error is because of plugin conflict. Some plugins are like cats and dogs, they will mess up the room once allowed to enter.

    You never know which plugin version can conflict with other plugins after the update or install.
     If plugins are not the culprit, .htaccess can be. Incomplete or new configuration in .htaccess file can be the reason. Rename the .htaccess and upload a default .htaccess file.
  • Check file and folder permissions. Use an FTP client to check file permissions or directly check it from the file manager.
    All folders on your WordPress site should have a file permission of 744 or 755.
    All files on your WordPress site should have a file permission of 644 or 640.

 

 Unavailable for Scheduled Maintenance Error in WordPress

Unavailable-for-Scheduled-Maintenance-Error-in-WordPress

We can call it as a notification page which tells your visitors that an update is going on. It is a few seconds process in which WordPress downloads and installs/upgrades your plugin/theme/WordPress core.


This notification page converts into an error if upgrade/install fails because of slow response from the server or because of memory issue.


Solution for Unavailable for Scheduled Maintenance Error in WordPress

Simply visit your website’s file manager from Cpanel and search for .maintainence file. Delete that file and your site is up again.

 

Hold on, that’s not the end for our short guide for common WordPress errors, there is more to it in next part of this series.
For now, if you have any doubts regarding these errors and their solutions, do comment below. .

About 

Carol is a content writer at Social9 who loves blogging about social media, technology and marketing.

0 comments on Common WordPress errors and messages :A Short guide with Solutions [Part 1]

Post a comment

Your email address will not be published. Required fields are marked *