How to fix WordPress “500 Internal Server error” page

How to fix WordPress "500 Internal Server error" page
How to fix WordPress “500 Internal Server error” 

You maybe getting this error page due to a server issue rather than WordPress configuration. So do not change or delete anything in your WordPress yet as it may not be related to your WP installation at all.

In order to solve this issue lets first look at what the “500 Errors” actually mean. Basically the 500 Internal Server Error is quite a common HTTP status code that indicates something is not working properly on the web-site’s server but the server itself could not tell you what the exact problem is. The WordPress 500 internal server error its just like any other web page that shows up in your browser window.

Now that we know know what the “500 Internal Server Error” is we can look at WordPress in relation to this error.

1. Try deleting your .htaccess as your permalinks might not work, but you’ll at least know whether this is being caused by an error in htaccess.

2. I deletion of .htaccess did not work the re-upload it and add the following:
SecFilterEngine Off
SecFilterScanPOST Off

3. Increase the server memory in php.ini file for example from 64m to 128m

4. If you have changed the prefix of your MySQL database tables manually this can also affect it so revert back to your previous tables.

5. If you have just moved to another server/hosting and your php version is old try adding this to your .htaccess file: AddType x-mapp-php5 .php

6. Disable your brower-cache then quit tour browser then open it again and see what happens. This one is pretty straight forward.

7. Check your file permissions as some server will behave better if you set your permissions to chmod 777 instead of chmod 755 – as strange as it sounds.

8. Some people have had issues with GoDaddy WP-Cache plugin so my suggestion is to remove WP-Cache and install another plugin like WP-SuperCache or Hyper Cache.

Solution to error “wp-includes template-loader.php on line ..”

Ever gotten this type of error ?
wp-includes template-loader.php on line 26 or 43

Regardless of the number after the “on line” its a very common issue with WordPress due to template or plugin installations.

Here are some simple solutions to this error:

Firstly, deactivate all of your active/inactive plugins (and yes, all) just temporarily to narrow down the issue list. After having done this and the error goes away, re-activate them individually (one-by-one) to find the buggy plugin(s). If you are not able to login into your admin dashboard, try re-setting the plugins folder with your favorite FTP client or phpMyAdmin. Every now and then, an allegedly inactive plugin can still cause errors-problems because the php hooks remain unless plugins have been completely uninstalled/removed or some plugins hang around in cached folder. So when you rename the plugin the folder, you break them and force them to become inactive). If applicable, also remember to deactivate any other plugins in the old-plugins folder. Probably, the easiest and simplest way is to rename that folder to inactive-plugins-old, however its totally up to you the name as it wont make any difference.

Secondly, switching to the un-changed default theme (e.g Twenty Eleven template) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to go back to the default theme to exclude any theme-related issue. This basically check to see if anything is wrong with your custom theme. If you still don’t have access to your admin dashboard, then access your server via FTP or shell connection or whatever file management application your hosting company provides.

Third, if the above troubleshooting steps have been exhausted and do not resolve the issue, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. This method will replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory. Note – make sure you do not overwrite the highlighted files as that will misconfigure the database settings and it will create more work than needed.
If all fail then feel free to contact us to do this for you !

SOLVED: Error establishing a database connection WordPress

For anyone who is getting “Error establishing a database connection” the solution is very simple . If you know how to use a FTP client like Filezilla you can login in and check to see if the wp-config.php file exists (see Figure 1). Your server/hosting panel might also have a file browser editor you can use to check. This file will be in the root directory where your WordPress is installed in.

SOLVED: Error establishing a database connection WordPress
WordPress root directory in FileZilla – Figure 1 

If this is a new WordPress installation use the file wp-config-sample.php and add your database username and password credentials and save the file as wp-config.php.

If the file is there and you have already added your database credentials find the line:

define( ‘WP_DEBUG’, false); and change false to true then re-save it.

This will give you a more specific error telling you either your username or password is wrong or it can’t connect to the database host. This will determine the next steps that need to be taken.