How to Turn Magento Error Reporting On

Seeing what errors are being thrown is a vital part of developing, this rings especially true in Magento. Make sure the following is only done in your development or staging environment, and that you never show them on production.

Go to index.php (in the directory root) and uncomment the following line:


ini_set('display_errors', 1);

Add in the following line:


error_reporting(E_ALL | E_STRICT);

This will display error messages in the browser for you.

Leave a Comment

Your email address will not be published.