Hi, Today I would like to discuss about most common error developers come across while working with PHP or WordPress themes. Its the 500 Internal Server Error.
Step 1: If you are using Php with WordPress theme, simply enable debugging in wp-config.php .This means that you are enabling debugging for your website to trace out the culprit code. Initially value will be set as
Change this statement to
// Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define('SCRIPT_DEBUG', true); Note: For more information on enabling debugging refere to http://codex.wordpress.org/Debugging_in_WordPress .
Now save your wp-config.php file and refresh your website. definitely you will get rid of 500 Internal Server error. But you might see some error or warnings displayed on the header part usually.
Based on the warnings or error messages, you can find out where exactly the problem is and can sort it out.
Step 2: Try disabling or renaming the plugins folder in you wp-content folder. If any of your plugins are not working properly or if they are corrupted, they might raise an internal server error.
So, try to rename the plugins folder and check your luck.
Will try to cover more issues in my future articles.
Excuse me for by bad English. 🙂