Skip to content

Instantly share code, notes, and snippets.

@evgv
Last active June 16, 2017 07:20
Show Gist options
  • Select an option

  • Save evgv/d9de858cb0d790c93d3f798d6b29c2d8 to your computer and use it in GitHub Desktop.

Select an option

Save evgv/d9de858cb0d790c93d3f798d6b29c2d8 to your computer and use it in GitHub Desktop.
Magento. Turn on error reporting

Turn on error reporting

Hardcode method

Fast but not good.
Uncomment this line in index.php

    ini_set('display_errors', 1);

Apache

Must be understood in the Apache configuration.
Add environment variable to virtual host

    <VirtualHost *:80>
        SetEnv MAGE_IS_DEVELOPER_MODE "true"
    </VirtualHost>

or add it to .htaccess

    SetEnv MAGE_IS_DEVELOPER_MODE "true"

Nginx

Must be understood in the Nginx configuration.
Add environment variable to configuration.

     
    location ~ \.php$ {
        fastcgi_param MAGE_IS_DEVELOPER_MODE "true";
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment