Reading list Switch to dark mode

    Enable Error Reporting in Magento2

    Updated 13 January 2016

    Enabling Error reporting in magento2 is little tricky , as magento2 now comes with 3 different modes

    • Default
    • Developer
    • Production

    Magento2 by default install in “default” mode and thats why you dont get the error log at the front-end of the site , that can a viewed at magento error log . You may check the complete details over here http://devdocs.magento.com/guides/v2.0/config-guide/bootstrap/magento-modes.html

    How to enable developer mode in Magento2

    This is must have if you are a developer and building extension and template for magento2 , magento provide a command for this purpose . Login in to your linux terminal and under magento execute

    php bin/magento deploy:mode:set developer

    and it will enable the developer mode under your magento instance for production mode you can set the mode to production or default .

    Searching for an experienced
    Magento 2 Company ?
    Find out More

    still if you are experiencing in error reporting you can give a try by renaming local.xml.sample to local.xml under pub/errors

    if you are changing mode then magento2 changes the ownership and file permission  so you will require to set the permission and ownership again

    the same command which you execute during magento2 installation

     

    chown -R :www-data .
    
    find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \; && chmod u+x bin/magento
    

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home