Magento : Show All Errors in PHP

You can write below lines of code in your custom PHP script to show PHP errors in Magento.
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

To debug in magento, set following line to enable display errors in index.php:
ini_set('display_startup_errors', 1);
              OR

Add following line to your .htaccess file:
SetEnv MAGE_IS_DEVELOPER_MODE “true”

To show PHP parse errors, use the following
display_errors = on // modify this in your php.ini file

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s