Internal Server Error WordPress

Fix Internal Server Error WordPress

Fixing Internal Server Error

A code 500 Internal Server Error. Is one of the common WordPress errors, it can put a WordPress user in a absolute panic of deleting and backtracking. Thinging to remember there last actions, before the error.

Pinguis Web fix errors like the internal server error, error establishing database connection, white screen of death, and many similar errors for our users.



Why do you get Internal Server Error in WordPress?

internal server error

How to deal with internal server error on website

Internal server error is not specific to WordPress. Due to the lack of description of this error, it does not tell the developer anything.

Most internal server error in WordPress are caused by a plugin or the theme. Internal server error in WordPress can be corrupted .htaccess file and low PHP memory limit.

Checking for a Corrupt .htaccess File

Internal server error in WordPress may come from a corrupted .htaccess file. Renaming your main .htaccess file to something like 1.htaccess. To rename the .htaccess file, you will need to login to your site using the FTP.

.htaccess File in WordPressThe .htaccess file will be located at the domain level of your website in the same directory where you will see folders like wp-content, wp-admin, and wp-includes or files begining with wp-*****.php example wp-config.php.

Once you have renamed the .htaccess file, try re-loading your site to see if this solved the problem. If this works congrats, get a fresh copy of .htaccess file here.

 

Before you continue troubleshooting, make sure that you go to Settings » Permalinks and click the save button. This will generate new proper rewrite rules to ensure that your post pages don’t return a 404, when viewing your website.

How to Increase the PHP Memory Limit

The error can happen if you have exhausted your PHP memory limit. Either way it has to be fixed the internal server error only may show when you try to login to your WordPress admin or uploading an image, if this is your error you should increase the memory limit by following these steps:

  1. Create a blank text file called php.ini
  2. Paste this code in there:
    define( 'WP_MEMORY_LIMIT', '256M' );

    or download a pre-made php.ini

  3. Save the file
  4. Upload it into your /wp-admin/ folder using FTP
WordPress Admin Folder Highlighted Save php.ini in wordpress

Save php.ini in wp-admin folder

Doing the above should fix the problem. Retest your Website.

 

If increasing the memory limit fixed the problem for you, then you have fixed the problem temporarily. There has to be something that is exhausting your memory limit. This could be a plugin or even a theme problem.

If increasing the PHP memory limit did not fix the problem for you Deactivate all plugins.

Deactivate all Plugins

If none of the above solutions worked for you, then this error is most likely being caused by a specific plugin. It is also possible that it is a combination of plugins that are not playing nice with each other.

A quick tip, if you have ftp access, comment out the plugins folder. for example – 1plugins. This will disable all plugins at once allowing you to test the website. Has it come back…

If disabling all plugins fixed the error, then you know it is one of the plugins that is causing the error. Simply go through and reactivate one plugin at a time until you find the one that caused the issue. Get rid of that plugin, and report the error to the plugin author.

Re-load Core Files WordPress files

If the plugin option didn’t fix the internal server error, then it is worth re-uploading the wp-admin and wp-includes folder from a fresh WordPress install. This will NOT remove any of your information, but it may solve the problem in cases of corrupt wordpress core files.

Make sure not to upload the wp-contents folder, it will overwrite all your themes, plugins and more importantly your uploads folder(images).

If your website is still not online, talk to your hosting company, have you paid your hosting fee, have you renewed your domain.

Ask yourself questions, maybe it will remind you of something vital, that you may not have considered when troubleshooting.

force showing hidden files ftp

Save