{"id":292,"date":"2023-05-22T12:55:46","date_gmt":"2023-05-22T09:55:46","guid":{"rendered":"http:\/\/presta.site\/blog\/?p=292"},"modified":"2026-06-30T09:25:09","modified_gmt":"2026-06-30T06:25:09","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: &#8220;Error 500&#8221;.<br \/>\nHere are short instructions to see PrestaShop debug information.<\/p>\n<p><!--more--><\/p>\n<h4>PrestaShop 1.7 &#8211; 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 &#8220;<strong>Advanced Parameters &gt;&gt; Performance<\/strong>&#8221; page.<\/li>\n<li>In the Performance settings, locate the &#8220;Debug Mode&#8221; section.<\/li>\n<li>Toggle the &#8220;Debug Mode&#8221; option to &#8220;Yes&#8221; to turn it on.<\/li>\n<li class=\"\">Press the &#8220;Save&#8221; 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 loading=\"lazy\" decoding=\"async\" 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=\"auto, (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 &#8211; 1.6.1, alternative method for PS 1.7 &#8211; 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:<br \/>\n<code class=\"codecolorer php default\"><span class=\"php\"><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><\/span><\/code><br \/>\nChange it to:<br \/>\n<code class=\"codecolorer php default\"><span class=\"php\"><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><\/span><\/code><\/p>\n<h4>PrestaShop 1.4 &#8211; 1.5.3<\/h4>\n<p>Edit this file:<br \/>\n<strong>\/config\/config.inc.php<\/strong><br \/>\nFind the following line of code:<br \/>\n<code class=\"codecolorer php default\"><span class=\"php\"><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><\/span><\/code><br \/>\nChange it to:<br \/>\n<code class=\"codecolorer php default\"><span class=\"php\"><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><\/span><\/code><\/p>\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: &#8220;Error 500&#8221;. Here are short instructions to see PrestaShop debug information.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/presta.site\/blog\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"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: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}]}}