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);

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

Add following line to your .htaccess file:

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


Leave a Reply

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

You are commenting using your 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