How to enable error and exception logging in Magento2?












16














I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.










share|improve this question
























  • Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
    – Robbie Averill
    Dec 21 '15 at 10:32












  • from where i can check the logs
    – Ayush Mittal
    Dec 21 '15 at 10:49










  • in path : ------- /var/www/html/magento/var/log
    – Ayush Mittal
    Dec 21 '15 at 10:50










  • Possible duplicate : magento.stackexchange.com/questions/62405/…
    – Abdul
    Dec 21 '15 at 13:12


















16














I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.










share|improve this question
























  • Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
    – Robbie Averill
    Dec 21 '15 at 10:32












  • from where i can check the logs
    – Ayush Mittal
    Dec 21 '15 at 10:49










  • in path : ------- /var/www/html/magento/var/log
    – Ayush Mittal
    Dec 21 '15 at 10:50










  • Possible duplicate : magento.stackexchange.com/questions/62405/…
    – Abdul
    Dec 21 '15 at 13:12
















16












16








16


3





I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.










share|improve this question















I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.







magento2 error api payment






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 21 '15 at 13:20









Rakesh Jesadiya

28.6k1571119




28.6k1571119










asked Dec 21 '15 at 10:30









Ayush MittalAyush Mittal

1951415




1951415












  • Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
    – Robbie Averill
    Dec 21 '15 at 10:32












  • from where i can check the logs
    – Ayush Mittal
    Dec 21 '15 at 10:49










  • in path : ------- /var/www/html/magento/var/log
    – Ayush Mittal
    Dec 21 '15 at 10:50










  • Possible duplicate : magento.stackexchange.com/questions/62405/…
    – Abdul
    Dec 21 '15 at 13:12




















  • Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
    – Robbie Averill
    Dec 21 '15 at 10:32












  • from where i can check the logs
    – Ayush Mittal
    Dec 21 '15 at 10:49










  • in path : ------- /var/www/html/magento/var/log
    – Ayush Mittal
    Dec 21 '15 at 10:50










  • Possible duplicate : magento.stackexchange.com/questions/62405/…
    – Abdul
    Dec 21 '15 at 13:12


















Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32






Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32














from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49




from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49












in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50




in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50












Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12






Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12












2 Answers
2






active

oldest

votes


















23














Go inside root pub/errors folder,



Just copy local.xml.sample to local.xml



Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.



Now the final statement displays as ini_set('display_errors', 1);






share|improve this answer























  • How we can do the same things at Magento cloud environment as they are write protected.
    – Sumit Verma
    Oct 26 '18 at 6:39



















0














The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "479"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94530%2fhow-to-enable-error-and-exception-logging-in-magento2%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    23














    Go inside root pub/errors folder,



    Just copy local.xml.sample to local.xml



    Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.



    Now the final statement displays as ini_set('display_errors', 1);






    share|improve this answer























    • How we can do the same things at Magento cloud environment as they are write protected.
      – Sumit Verma
      Oct 26 '18 at 6:39
















    23














    Go inside root pub/errors folder,



    Just copy local.xml.sample to local.xml



    Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.



    Now the final statement displays as ini_set('display_errors', 1);






    share|improve this answer























    • How we can do the same things at Magento cloud environment as they are write protected.
      – Sumit Verma
      Oct 26 '18 at 6:39














    23












    23








    23






    Go inside root pub/errors folder,



    Just copy local.xml.sample to local.xml



    Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.



    Now the final statement displays as ini_set('display_errors', 1);






    share|improve this answer














    Go inside root pub/errors folder,



    Just copy local.xml.sample to local.xml



    Also you can enable display_errors from app/bootstrap.php file. At line no. 11 remove # from the start of the line.



    Now the final statement displays as ini_set('display_errors', 1);







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 28 '17 at 11:20









    7ochem

    5,72193668




    5,72193668










    answered Dec 21 '15 at 13:26









    Rakesh JesadiyaRakesh Jesadiya

    28.6k1571119




    28.6k1571119












    • How we can do the same things at Magento cloud environment as they are write protected.
      – Sumit Verma
      Oct 26 '18 at 6:39


















    • How we can do the same things at Magento cloud environment as they are write protected.
      – Sumit Verma
      Oct 26 '18 at 6:39
















    How we can do the same things at Magento cloud environment as they are write protected.
    – Sumit Verma
    Oct 26 '18 at 6:39




    How we can do the same things at Magento cloud environment as they are write protected.
    – Sumit Verma
    Oct 26 '18 at 6:39













    0














    The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/






    share|improve this answer


























      0














      The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/






      share|improve this answer
























        0












        0








        0






        The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/






        share|improve this answer












        The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        zuber bandizuber bandi

        493




        493






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94530%2fhow-to-enable-error-and-exception-logging-in-magento2%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            An IMO inspired problem

            Management

            Has there ever been an instance of an active nuclear power plant within or near a war zone?