HTTP Internal Server Error 500
Sometimes people experience HTTP ERROR 500 which is a general error. It generally means that something is wrong with the page you are visiting or the programing of the website has some error in it.
The other cause of this error might be termorary downtime of the website.
This error is displayed differently on different browsers, e.g. on chrome you might see it in the following way.
On Firefox, you might just see a blank page.
How to fix it!
The first thing you want to do is to try to refresh the page 2-3 times, if the page loads fine after that, the error was temporary and your website should load just fine.
If you still see the error/blank page, there is probably something wrong with the code of your website script. To know what's wrong in this case, you need to enable PHP errors. There are several ways to enable PHP errors:
- Login to your control panel and go to "Alter PHP Config > Select your domain > click Alter PHP Directives > Set Display Errors to On > click Alter PHP Directives again. Now reload the page and check if any error message appears. There will also be reference to the file and line on which error occured.
- If you still see a error 500/blank page, you need to manually override the error reporting settings in your PHP script. To do so, add the following snippet to the top of your PHP script/file:
Reload the page and check for the errors.
- If you are still unable to see the errors messages, it is because your script is, somehow, overriding the settings. If your script has an Admin Panel, look for debug mode there and enable it. It'll enable the error reporting.
- In case of wordpress, you can enable error messages by wp-config.php file and changing
define( 'WP_DEBUG', false );to
define( 'WP_DEBUG', true );. You can find more details about debugging on wordpress
Hopefully, above mentioned methods will provide you with the real error details and help you figure out the real cause of the problem and solve it. If you still have any questions in mind, you can ask on our Community Forum.