{"id":292,"date":"2016-05-23T15:33:27","date_gmt":"2016-05-23T12:33:27","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=292"},"modified":"2023-05-22T12:55:46","modified_gmt":"2023-05-22T09:55:46","slug":"how-to-turn-on-error-reporting-in-prestashop","status":"publish","type":"post","link":"https:\/\/presta.site\/blog\/en\/how-to-turn-on-error-reporting-in-prestashop\/","title":{"rendered":"How to turn on error reporting in PrestaShop"},"content":{"rendered":"<p>Sometimes you might want to see detailed error reports in your PrestaShop store.<br \/>\nYou just need this information when you see a blank error page or short text: &#171;Error 500&#187;.<br \/>\nHere are short instructions to see PrestaShop debug information.<\/p>\n<p><!--more--><\/p>\n<h4>PrestaShop 1.7 &#8212; 8+<\/h4>\n<div class=\"flex flex-grow flex-col gap-3\">\n<div class=\"min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap break-words\">\n<div class=\"markdown prose w-full break-words dark:prose-invert dark\">\n<p>In PrestaShop 1.7 and subsequent versions, activating Debug Mode from your back office is quite straightforward, with no manual code editing required:<\/p>\n<p>Start by logging into your PrestaShop back office.<\/p>\n<ol>\n<li>Proceed to the &#171;<strong>Advanced Parameters &gt;&gt; Performance<\/strong>&#187; page.<\/li>\n<li>In the Performance settings, locate the &#171;Debug Mode&#187; section.<\/li>\n<li>Toggle the &#171;Debug Mode&#187; option to &#171;Yes&#187; to turn it on.<\/li>\n<li class=\"\">Press the &#171;Save&#187; button to enforce the modifications.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-630\" src=\"http:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-1024x484.png\" alt=\"\" width=\"660\" height=\"312\" srcset=\"https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-1024x484.png 1024w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-300x142.png 300w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-768x363.png 768w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1-1536x726.png 1536w, https:\/\/presta.site\/blog\/wp-content\/uploads\/2023\/05\/Screenshot_1.png 1611w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<p>If the error prevents accessing the back office, or in any other case you can use the <strong>alternative way<\/strong>:<\/p>\n<\/div>\n<\/div>\n<\/div>\n<h4>PrestaShop 1.5.3 &#8212; 1.6.1, alternative method for PS 1.7 &#8212; 8+<\/h4>\n<p>Edit this file:<br \/>\n<strong>\/config\/defines.inc.php<\/strong><br \/>\n(you can do it via FTP)<br \/>\nFind the following line of code:<\/p>\n<div class=\"codecolorer-container php blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"php codecolorer\"><a href=\"http:\/\/www.php.net\/define\"><span class=\"kw3\">define<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'_PS_MODE_DEV_'<\/span><span class=\"sy0\">,<\/span> <span class=\"kw4\">false<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Change it to:<\/p>\n<div class=\"codecolorer-container php blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"php codecolorer\"><a href=\"http:\/\/www.php.net\/define\"><span class=\"kw3\">define<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'_PS_MODE_DEV_'<\/span><span class=\"sy0\">,<\/span> <span class=\"kw4\">true<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<h4>PrestaShop 1.4 &#8212; 1.5.3<\/h4>\n<p>Edit this file:<br \/>\n<strong>\/config\/config.inc.php<\/strong><br \/>\nFind the following line of code:<\/p>\n<div class=\"codecolorer-container php blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"php codecolorer\"><span class=\"sy0\">@<\/span><a href=\"http:\/\/www.php.net\/ini_set\"><span class=\"kw3\">ini_set<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'display_errors'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'off'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>Change it to:<\/p>\n<div class=\"codecolorer-container php blackboard\" style=\"overflow:auto;white-space:nowrap;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"php codecolorer\"><span class=\"sy0\">@<\/span><a href=\"http:\/\/www.php.net\/ini_set\"><span class=\"kw3\">ini_set<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'display_errors'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'on'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>That&#8217;s all!<\/p>\n<p><strong style=\"color: red;\">Don&#8217;t forget to turn off error reporting when you finish. Otherwise your customers will see some unexpected debug information.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you might want to see detailed error reports in your PrestaShop store. You just need this information when you see a blank error page or short text: &#171;Error 500&#187;. Here are short instructions to see PrestaShop debug information.<\/p>\n","protected":false},"author":1,"featured_media":302,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/292"}],"collection":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":15,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":651,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions\/651"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media\/302"}],"wp:attachment":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}