Question:
I’m trying to turn on error reporting in EE 1.6.x, how do I do that?
Answer:
The first thing you need to make sure of is that PHP supports display_errors turned on.
Visit Admin › Utilities › PHP Info and ensure that display_errors is On.
NOTE: If your host has disabled the PHP ‘display_errors’ directive, you will need to ask them to enable it, or if the server allows scripts to override the setting, you can add the following to your index.php file:
ini_set('display_errors', 1);
Next, edit the /system/index.php file, and change the value of
"error_reporting(0);"
to
"error_reporting(E_ALL);"
Then visit Admin › System Preferences › Output and Debugging Preferences and set Debug Preference to 1. PHP/SQL error messages show only to Super Admins.
View the front end of your site to see what sort of errors show up.
Additional Note: If you cannot access the Control Panel due to errors on the site or templates not rendering, you can change the system/config.php $conf[‘debug’] value to 2 temporarily which will show PHP errors to everyone. Remember to change this back to 0 or 1 when you’ve resolved your issues.
Category:Troubleshooting
Category:HowTo
