WordPress 500 internal server error.. is a common issue, And today we gonna discuss what you have to do if you get it.
first of all as we always recommend make a backup first. Most of time “500 internal server error” show due to a PHP error or .htacess error.
Enable WordPress debug mode
login to your website files throught Cpanel or FTP on the website root folder there wp-config.php.
Search for the follow code and replace the wp_debug “false” with “true”.
define( 'wp_debug', false );
define( 'wp_debug', true );
Enabling WP_DEBUG will cause all PHP errors, notices and warnings to be displayed. Look for “PHP Fatal error:”
it should be combined with a path for example “PHP Fatal error: Call to ….. on null in
/xxx/wp-includes/example.php on line 123”. Like this you will easily find where is you issue located. and you will be able to find a solution easily..
In case of you didn’t find and Fatal errors.. you can go ahead and try renaming your .htacess you should find it on the same directory as wp-config.php file.
you can easily rename it for example to .htacess_STOP and reload your website to check if the issue sorted. If all the previous steps didn’t work for you please go ahead and contact your hosting support.