Internal Server Error in WordPress is very worst as compared to the normal HTTP error codes because in this error we don’t know what exactly is the problem, it is the WordPress installation or .htaccess or some server related error.
In this guide you will learn how to solve this Internal server Error in WordPress.
What Does Internal Server Error(500) exactly mean
Basically, an Internal server error (500) means that something has gone wrong at the server-side, but the server could not be more specific on what the exact problem is. But in the WordPress case, this can mean that there is something wrong with the script which might be the part of the theme or plugins.
So lets start with the solution process it basically consists of the following steps:-
Step 1:- Turn on debugging
Whenever WordPress throws that error, you should turn on the debugging in the WordPress. You can simply turn on the debugging by opening the wp-config.php and the line
WP_DEBUG on it.
define( 'WP_DEBUG', true ); define('WP_DEBUG_LOG', true);
Once editing is done then save and reload the site, if you are lucky then the error will go, or it will show where the error is. If the error code is not displaying, then go to the location where the log is created basically the error log is created at the wp-content folder.
Even if the error is not resolved then also no problem, just leave the debugging turn on until the problem is solved. Once the problem is solved then you can turn off the debugging by simply false instead of true like define( ‘WP_DEBUG’, false);
Step 2:- Deactivate all the WordPress Plugins
If you have access to your WordPress admin then you can disable all the plugins from there and try activating them again the plugin which is creating problem will not activate and it will throw some error, then you can delete the plugin which actually creating the problem for your WordPress Website.
If you don’t have access to the WordPress Admin then you will have to log in to your server and go to the Directory/Folder where the WordPress is being Installed. In that directory/Folder find WP-Content in that folder you will find the plugins folder just rename it like plugins_bkp after that reload your WordPress Site. After that, your WordPress will start working but all the plugins will be disabled. If you want to activate your plugins then again rename the plugins_bkp to plugins then reload your website then go to your WordPress Admin and activate your plugins.
Step 3: Increase your Memory
This error happens very rarely, it mostly appears in the shared hosting. To solve this error you will simply open the WP-config.php file and simply change the
WP_MEMORY_LIMITto 64 or 128. If it doesn’t exist then add the following-
If this solves your error but basically the error will be solved by the plugins or theme script error.
I hope the above solutions will solve your error. But if it doesn’t solve your error then there might be some error at your server side try contacting your server system administrator for that.