IDEALNSOFT – IDEAL COMPUTER & SOFTWARE

IDEALFINALLOGOwhite 1 e1648496194857

6 WordPress Common Errors

wp-error

WordPress Errors and How to Fix them Complete Solution.

Nothing can spoil your day quite like an error that shows up on your site. Fortunately, WordPress is a useful and effective and working correctly, which is unlikely to be throwing errors at you in the middle of a production project. However, when there is an error, it can be really frustrating when you don’t know how to fix it.

Many errors stem from small problems. You can usually fix them by yourself.

This will show you how to diagnose and correct 12 of the most common wordpress errors. If your problem is not listed here, you’ll want to check out the official list of common issues. Start from the top.

Table of Contents

CTA dreampress 2

1. Parse Error/Syntax Error

We will start with two easy errors, the ‘Parse Error’ and the ‘Syntax Error’. The former tells you what’s wrong while the latter tells you what you should do to fix it.

phrase-error

This is what happens when you can’t access the page because there is an error with your site’s code. You will be greeted with a simple message describing the issue and where it occurred.

To fix the problem you’ll have to log into your web host and access your site’s backend by using the credentials supplied by your web host.

wp-errors-12
wp errors 4

If you want to replace the existing file, save your work and select yes. After that, you should be able to see your website.

2. White Screen of Death (WSoD)

One of the most infamous and cryptic errors in WordPress is the dreaded White Screen of Death (WSoD). This error simply replaces your entire sitewith a blank, white nothing, leaving no error messages or further assistance.

wp-errors-3

Sometimes, this is caused by a problem with your site. The fix is to follow the instructions to troubleshoot the issue. We’ve already discussed how to fix the wsod before. In this post, I’ll give you a quick summary on how to troubleshoot this particular problem.

  • Try disabling all your plugins. Some of them may be at fault for the error you are having.
  • Disabling my theme is what I do when I get this issue from the update-thing.
  • To activate the WordPress debug mode. It will let you see errors directly on each page that will help you identify the problem.
  • This may be a possible reason of why you’ve seen old versions of files. To be safe clear your cache.
  • the memory limit and site speed might be affected by the memory use inside the website. You can raise your maximum limit by editing your http.php.

These methods can fix most Wsod issues. However, if your server stops working, you can contact your hosting provider for more help.

3. Internal Server Error

TheInternal Server Erroris another issue that can be frustratingly opaque about the underlying problem.

wp errors 6

Luckily, this error is less likely than a wsod. It happens because of an unknown issue with the server or something else. Here is what the error says:

  • There’s a problem with your site’s.htaccessfile.
  • Your site has reached its memory limit.

.htaccess is a file that allows you to change the way your WordPress website communicates with your server. This file can be used to increase your site’s security, and to override some of the default server settings. To make sure that this file is causing the internal server error, all you need to do is disable it.

You can do this by once again using SFTP. The file is usually located in your site’s root directory, which is often titled public_html.

wp-errors-11

You can make a file and name it, .htaccess-disabled with a message saying “Site is disabled”, to see if it works for you. If you change the name of the file and reload the page, then you’ll be sure that the site’s problem has gone.

If this fix fixes the problem, then all we need to do is generate a new, “unbuggy.htaccess” file. You can do this by going into your admin dashboard and accessing Settings > Permalinks.

wp-errors-7

You don’t need to do anything here. just click on save changes to generate a new .htaccess file and this should resolve the issue.

4. 404 Error

The404 Errorshould be familiar to most internet users.

wp-errors-22

It means that the server was not able to find the page you are looking for. If you are looking for a different page, please use the back button to return to the previous page. If you know the URL of the page you are looking for, please put it in the search box and hit enter.

When this happens, it has to do with the .htaccess file. First step should be to regenerate a new .htaccess file, with solutions we have given in the previous section.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

You can now upload the file to your site’s root folder. In most cases, this shouldresolve the 404 erroryou’re seeing.

5. Error Establishing a Database Connection

This error would happen if your site can’t access its own database, which contains all its content. This does not necessarily mean that it is down. As such, if you can’t access it, try to open a different browser and visit the site again. It’s possible that it’s a server-side issue.

There are some very similar reasons why this error can occur. The most common of them is that the wp-config.php file contains all information about the site. It’s the most likely source of the problem.

To repair the database connection, access your site’s wp-config.php file, which should be located in its root folder.

wp errors 18

If you’re going to edit the file, you’ll need to check that the entries in the credentials are valid. To do that, you should access your phpmyadmin to find the exact details. If the hostname, username, password, and/or database name in the file are incorrect, replacing them should fix the error.

However, if you don’t manually optimize your database, wordpress must use this feature. You can use this feature by adding the following line to your wp-config.php file:

define( 'WP_ALLOW_REPAIR', true );

After you save it, you can run the new script by navigating to https://yourwebsiteurl.com/wp-admin/maint/repair.php in your browser. You will get a screen like this:

You can now upload the file to your site’s root folder. In most cases, this shouldresolve the 404 erroryou’re seeing.

wp-errors-14

If you want to run the repair tool, you need to click on either of the buttons to run the repair tool. When the process is completed, the page will reload, and you should see a message thanking you.

wp-errors-10

The database connection errors should be fixed. Just forget about it.

Syed Adil Hussain

Syed Adil Hussain

Website Developer | Website Designing | Ecommerce
WordPress Developer | Shopify Developer | Project Management

All Posts

Leave a comment

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

Facebook
Twitter
LinkedIn