Scroll to top
Get In Touch
541 Melville Ave, Palo Alto, CA 94301,
Ph: +1.831.705.5448
Work Inquiries
Ph: +1.831.306.6725

How to fix 500 error in WordPress

If you are lucky, the WordPress admin works, however, sometimes, even that will refuse to collaborate.

Significant : Always make a full backup of your website (even if it is not functioning as it ought to be) prior to making any modifications — better safe than sorry!

Internal server errors are annoying for consumers and programmers alike since they do not supply any information regarding the origin of the issue — they simply tell you that there’s one. Imagine you went into the doctor and said you felt pain, but refused to show where this pain was — it would make it quite difficult for your physician to deal with it! That is the problem with an internal server error — there is no sign of where the difficulty coming from.

(click to expand )

What is more, the title’internal server error’ could be misleading, as, in just about all circumstances, your server (or server) is not to blame.

There is nothing wrong with the host itself — it has simply encountered something that it can not figure out. Let us take a peek at what that may be — and ways to eliminate it.

The very first step must be to attempt to generate sense of this mistake — you might get lucky! Based on how your host manages mistakes, what you are seeing may not really be a server error in any way. To check if this is true, you will want to edit the wp-config.php document in your site’s root directory. If you discover the line, just change false to true and re-upload the document into the server.

Reload your site and see if the error varies. Should it, and at this point you find a’fatal error’ message which points to a particular line of code in a particular document, then you are taking a look at a comparatively straightforward code mistake. Assuming stated mistake arises out of a plugin or theme, you will have to disable the offending merchandise or function on fixing the problem yourself (or have somebody else have a peek at it if you are unable to figure out what is happening in your ).

Note: Once you have discovered the issue, be sure to modify the aforementioned’authentic’ worth back to’untrue’ inside the above wp-config file.

Step One: Assess if Your Admin Works

Stop by your site admin in If this page loads correctly and permits you to log into, you’ll be pretty certain the matter is using a plugin or with your own theme. If your admin heaps, keep on to measure two. If it does not, jump to measure four.

Step Two: Hide All Utilities

There is no way that a plugin may cause difficulties if it is disabled, therefore, if you suspect any of your plugins is causing the issue, go to the plugins section and then disable all of them. This will not delete themand they will continue to keep their stored information, but their code will not be run. If you have disabled all of your plugins and your website still will not load, visit measure three.

If your website’s up and running, then begin allowing your plugins one by one. Keep checking for this 500 internal server error after every plugin. When you have discovered the culprit, it is possible to decide exactly what to do with it. The most appropriate plan of action is to maintain the plugin notify the author immediately. When it is a mission-critical plugin, then you should probably search for a much better, more secure choice.

In some very rare circumstances, running old applications like PHP 5.3 can cause difficulties. Before substituting a plugin that is shown to be reliable so far, have a peek at measure seven.

If deactivating your plugins did not fix the matter, it is probably your motif’s the offender. I suggest using Twenty Sixteen, that’s the newest default theme. If switching to Sixteen solves the issue, you can re-enable all plugins and also have to work finding the matter on your subject’s code.

If, on the other hand, it is your theme, you will want to obtain a programmer to aid you, as these bugs may often be rather tricky to locate — even for experienced coders.

In some very rare circumstances, running old applications like PHP 5.3 can cause difficulties. Before spending hours looking for a bug, or spending countless dollars to a programmer, have a peek at measure seven.

Step Four: Boost Your Memory Limit

If your site’s using too much memory, then it will surely throw a match — quite possibly leading to a 500 internal server error. In several instances, this can be a indication of a poorly coded plugin or theme. It may be remedied immediately by raising the memory limitation, but this is not a surefire manner of solving the issue, and will not reach the origin of it.

In any event, WooThemes includes a brief manual on raising the WordPress memory limitation . Remember your host or your accounts could have a fixed amount of memory allocated for this, however, and you will not have the ability to raise your memory limitation beyond that.

Otherwise, talk to your server for more specific directions — a few will be happy to maximize your memory limitation with practically no fuss in your part.

Measure 5: Debug .htaccess Problems
The .htaccess document is a configuration file to the Apache Server that empowers some comparatively advanced performance. With it, you are able to enable gzip compression, alter the upload size and perform all kinds of other useful things.

We have already written a manual on the way to edit the .htaccess document , but it is worth mentioning that this can be a sensitive area in which care’s required. Even a typo, a forgotten area or an unclosed quotation, by way of instance, could certainly create a 500 internal server error, grinding your site — such as your own admin to a block.

The remedy is to start out your .htaccess document — it ought to be from the root WordPress folder and see whether there are any mistakes (particularly in the event that you’ve recently changed it).

You are able to go through it line by line to determine if your website goes down; after you have discovered the offending line be certain that it doesn’t have some unnecessary text (possibly an unclosed quotation or something comparable ). If you can not locate the issue, I propose deleting this line. Your site being entirely down is much worse than a lost .htaccess lineup — inquire on forums if you want more help.

It is really rare, but you could have some corrupt files in the WordPress core. This is not anything to be concerned about — something could have gone wrong when your waiter was copying the necessary files, for instance. Re-uploading that the WordPress Core files can address your issue.

Should you want more detailed directions, have a look at this Codex post on Upgrading WordPress.

While older PHP versions typically don’t trigger 500 internal server errors, it can be worth speaking to your server and asking them to offer you a newer version before spending precious time and money. PHP 7 includes deprecated some preceding attributes — for instance, a plugin can use a purpose that is not accessible old version of PHP, etc.

Ask your server what type of PHP you are running. PHP 5.2 is currently ten years old and 5.3 is just seven years old — do not take it if your server is running your website on these old versions. You need to at least possess some form of 5.4 jogging, or, even better, the brand-new PHP 7 (for optimal performance).

Compound Issues
As soon as it’s unlikely you are going to have two issues at the same time, it may occur. You might have a plugin that is causing a problem, in addition to an .htaccess issue. In cases like this, the issue will not be solved when you disable plugins and it will not be solved if you eliminate your . Htaccess record — just in the event that you do .

If you have followed these steps and you are still getting a 500 internal server error, you ought to begin again and be certain you not reverse any changes. Maintain your plugins keep your motif changed to Sixteen, etc.

Last Ideas
If you still can not address the issue, contact your host. Link to this guide and inform them you have tried these measures, as they will enjoy the energy and will have the ability to find the problem much faster!

Seen any border cases or downright bizarre things happening concerning this mistake? Tell us in the comments!

Author avatar
Mike Judd
Author of WPWizz, a digital agency dedicates to make your website runs faster. WPWizz also offers managed cloud hosting and WP services. Click on the Services page to find out more.

Post a comment

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

I accept the Terms and Conditions and the Privacy Policy * for Click to select the duration you give consent until.

Share via
Copy link
Powered by Social Snap