in

Fix all WordPress errors by five methods completely

Fix all WordPress errors through five working methods advised by the top developers in a very simple way. These five methods are universal methods.

So, are you ready?

Let’s Go!

1. Turn on debugging

The process of finding and resolving defects or problems within a computer program that prevents the correct operation of computer software or a system is known as Debugging.

Whenever WordPress throws any errors, I recommend turning your debugging on first, it may fix almost all WordPress errors.

While this may not fix the problem, it may give you more insight into what’s going on.

You may also read this:- How to create high quality backlinks for free?

You can turn to debug on by editing your site’s wp-config.php file. Once you’ve accessed this file, search for WP_DEBUG within.

debugging during wordpress errors

If you find it, you should be able to set it to “true”. If you don’t see it there, you’ll need to create it yourself.

Either way, at the end of the day, you should have a line that looks like this:

define( "WP_DEBUG", true );

After turning on, reload your website to see if anything has changed.

Even if turning on debugging doesn’t give you a great result, it is a good idea to leave it turned on until the issue is resolved.

Don’t forget to turn debugging off once everything is a-ok and you’re done with the maintenance!

You can do this by replacing “TRUE” with “FALSE“.

define( "WP_DEBUG", false);

2. Deactivate all plugins and switch themes

If you have access to your dashboard, you should deactivate all your plugins and see what’s what.

If your website loads without the server error the issue was with one of your plugins.

You can switch them on one-by-one to figure out which one caused the issues.

You can also switch your theme to default, unaltered WordPress themes like Twenty Fifteen or Twenty Sixteen.

If the site loads without the internal server error, the issue was within your theme.

I’ve noticed that quite a few of these errors are actually caused by plugins, so this will be your best bet.

This is all due to the poorly coded or infected plugin.

You may also read this:- How to hide admin bar without plugin?

3. Check your .htaccess file

.htaccess file

The .htaccess file is commonly used for rewriting URLs or preventing access to your site for malicious intent.

It contains a number of rules that tell the server what to do in certain circumstances.

If you can’t see .htaccess file into your server (Cpanel/WHM/FTP), then follow these steps:-

Settings > Check “Show Hidden files” > Save

OR follow the images given below.

You have to delete all the no. rules or make an empty .htaccess file after making a backup of the older one.

This may remove some important rules, but if the internal server error was caused by a mistake within the file, this will tell you.

If the error is now resolved, the issue was with the .htaccess file. Now create a default .htaccess file.

You may also read this:- How to speed up your wordpress website?

How to create a default .htaccess file??

Open the new WordPress .htaccess file and paste the following code:

# 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>

Hit Save & Close.

4. Increase your memory

Sometimes your memory limit is also causing WordPress errors.

To get this done, you have to open your wp-config.php file in the WordPress root directory and search for WP_MEMORY_LIMIT.

If it exists, change the value to something like “64M”.

WP_MEMORY_LIMIT

If it doesn’t, paste the following line into the file:

define('WP_MEMORY_LIMIT', '64M');

If this works then you’ve only solved the issue temporarily.

To solve it permanentaly, asked to your host.

OR

Contact us, we will try to solve your problem for free.

5. Ask your host

There are some issues that are solved from the server end only.

Therefore, if your problem is not solving after completing all the above steps then, I suggest asking your host for help and they surely do their best.

You may also read this:- Best google tricks you should know.

6. Reinstall WordPress

When WordPress errors are creating problems, reinstalling is the last option because there are some cases where a reinstall of WordPress could fix the issue.

But before reinstalling WP, I highly recommend taking a full website backup through a plugin or manually.

If you are a beginner then you should avoid this step, it may destroy your entire website.

Comment your problems and we’ll try to give you our best support.

Thank You!

What do you think?

Written by Mohit Chaprana

Comments

Leave a Reply

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

Loading…

0

5 programming languages you should learn in 2020

How to clean C Drive on windows and speed up your PC