{"id":563,"date":"2019-08-23T02:16:40","date_gmt":"2019-08-23T02:16:40","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/08\/23\/solved-exception-printing-is-disabled-by-default-for-security-reasons-in-magento-2\/"},"modified":"2026-04-22T15:37:28","modified_gmt":"2026-04-22T10:07:28","slug":"solved-exception-printing-is-disabled-by-default-for-security-reasons-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solved-exception-printing-is-disabled-by-default-for-security-reasons-in-magento-2\/","title":{"rendered":"Solved: Exception Printing is Disabled by Default for Security Reasons in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ever faced an error of &#8220;Exception Printing is Disabled for Security Reasons&#8221; in your Magento 2 store?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If yes, keep reading, because the post explains the error, its cause and of course the solution \ud83d\ude03<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What does Exception Printing is Disabled by Default for Security Reasons in Magento 2 means?<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/11\/How-to-Enable-Exception-Printing-in-Magento-2.jpg\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/11\/How-to-Enable-Exception-Printing-in-Magento-2.jpg\" alt=\"How to Enable Exception Printing in Magento 2\" class=\"wp-image-11465\"\/><\/a><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This message is a notification of an error that isn&#8217;t displayed to avoid a system exploit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is a general error, usually occurring at the time of Magento 2 or extension update. You may face this error while installing a Magento 2 theme or module, or if anything goes wrong with the cache folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The conflict between components like extensions or themes causes the &#8220;<i><strong>exception printing is disabled by default for security reasons&#8221; error in Magento 2<\/strong><\/i>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Due to this, Magento 2 (Adobe Commerce) cannot operate properly, leaving us developers in a mess!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But, we developers tend to find out the solution every time, isn&#8217;t it!\u00a0\ud83d\ude0e<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Suggested Read:<\/b><a href=\"https:\/\/meetanshi.com\/blog\/throw-exception-on-magento-2-admin-save-configuration\/\">How to Throw Exception on Magento 2 Admin Save Configuration<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution for Exception Printing is Disabled by Default for Security Reasons in Magento 2:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Go to folder <strong>pub\/errors find file local.xml.sample<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rename the file local.xml.sample to <em><strong>local.xml<\/strong><\/em> in the same folder pub\/errors<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, set developer mode using the following command :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento deploy:mode:set developer<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So, that\u2019s it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/11\/Annotation-on-2020-11-04-at-18-24-48-1024x329.png\" alt=\"How to Enable Exception Printing in Magento 2\" class=\"wp-image-11466\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution on social media with fellow developers \ud83d\ude0a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever faced an error of &#8220;Exception Printing is Disabled for Security Reasons&#8221; in your Magento 2 store? If yes, keep reading, because the post explains&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-563","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":26362,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions\/26362"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}