Scroll to top
USA
651 N Broad St, Suite 206,
MiddleTown, New Castle,
Delaware - 19709
Canada
635 Ashprior Avenue,
Mississauga, Ontario,
Canada - L5R3N6
India
34, Shiwanshu Bunglows
Vadodara, Gujarat - 390007

How to Fix Internal Server Error (500) in WordPress

90 / 100

Display of error pages is never appreciated by the website owners nor by the audience, yet WordPress is no exception. WordPress might be one of the most popular Content Management Systems (CMS) out there, yet your WordPress web hosting service provider can show errors or bugs from plugins or themes. 

how to fix internal server error

Seldom you might see the 500 internal server errors on your website. These errors fail to provide any valid information; hence it can be frustrating for website owners, especially new ones. Quick fixes may solve some of the errors, but some require a little more work.

By the end of this article, you will locate and fix the 500 Internal Server Error on your WordPress website. Let’s dive in and start by discussing what 500 Internal Server errors really are in WordPress.

What are 500 Internal Server errors in WordPress?

It is an error that shows up when your server is unable to display your requested page. It might occur when you click on the URL or the website link, which can’t show the errors due to some reason. This never signifies or highlights the reason for the error. 

What are the possible causes of the 500 Internal Server Error?

There are no specific causes that might lead to any particular error. Yet significant errors are caused by plugins or themes that you have installed on your website. These plugins and themes might have bugs, or other possible prevalent reasons could be corrupted .htaccess file and PHP memory limit.

REMEMBER: Always look that your hosting provider offers automated backup. It will always make your job easier. 

Creating a WordPress backup:

Since human beings handle the servers, they are inevitable. Some of the errors can be irreversible and may bring down the quality and efficiency of your website. Therefore you should always keep in mind to back up all your website data.

Most hosting providers offer data backup. If your hosting provider doesn’t provide it, you can follow this article.

backups in WordPress

Resolving the 500 Internal Server Errors in WordPress:

It is highly recommended to start with troubleshooting. It not only gives you a critical path to walk rather also saves you a couple of minutes and effort. 

You must find the cause to get rid of it finally. As discussed earlier, corrupted .htaccess file and PHP memory limit are the two leading causes. We will discuss how to track them down and resolve them. 

1.  PHP memory level increase in WordPress:

PHP is allocated to run when the user makes a request. It is eventually handled by PHP that, ultimately, at the client’s end. You can simply increase the memory level of PHP, which is set by default by WordPress and the host. 

As soon as the memory drop is felt, 500 internal error pages come up. It can be fixed by altering the code in one of these files:

img 5fa9040121fcc

PHP.ini File:

Create a PHP.ini file, post the code below in that file, and upload it in the wp-admin/ directory.

memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On
change in php.ini file
.htaccess File:

Download the .htaccess file in your in you root directory. Open that file and add this code:

php_value upload_max_filesize 64M
php_value post_max_size 64M
.htaccess file change to solve Internal server error 500
Functions File: 

Download the functions.php file in your root directory. Paste this code after opening the downloaded file text editor below the opening PHP tag.

@ini_set(‘upload_max_size’ , ’64M’);
@ini_set(‘post_max_size’, ’64M’);
@ini_set(‘max_execution_time’, ‘300’);
function file change

Sometimes, you may find problems with increasing memory. Even if you can fix it by increasing the memory, it is a temporary fixture. You still have to find the reason for memory exhaustion. 

It could be due to poorly developed plugins or themes. If increasing PHP memory didn’t solve the errors 100%, you should go for troubleshooting and further, Plugins Audit. 

2. Plugins audit:

Sometimes there are compatibility issues of the plugins when they are outdated. They can cause errors on WordPress websites. If you can access your WordPress’s website dashboard, deactivate all the plugins one by one and then refresh your website after each deactivation. 

Now one by one, install the plugins and again refresh the website simultaneously. The bugged plugin will give you 500 error pages. You can delete this plugin and install the updated version or if you are unable to do so, contact your host’s customer support. 

Audit WordPress themes and Plugins

Sometimes it can get difficult to solve unexpected errors. A WordPress website comes with third-party plugins and audits, which makes auditing their source code. 

For this, first, make sure you have backed up this specific website, then download fresh wp-admin and wp-content folders, then upload it to the live host via FTP. 

Contacting your Hosting Provider

After all these fixing procedures, you still have errors, and websites pop up on the 500 Internal Error pages; you need to contact your hosting provider; you will be asked to place a request with the technical experts.

Contact hosting provider in case on internal server error 500 in wordpress

Follow the WP Uber blog for the latest WordPress updates.

Read:

How To Add A Parallax Effect To Any WordPress Theme

10 Must-have plugins for an optimized WordPress site

How to add Facebook login to a WordPress Website: Complete 2020 Guide

Author avatar
Tim Michaels
I am into WordPress and web development for the last 10 years. I use my experience to help people just starting with WordPress. Follow my blog at WP Uber for everything related to WordPress.
We use cookies to give you the best experience.
Do NOT follow this link or you will be banned from the site!