{"id":38457,"date":"2014-12-04T04:01:22","date_gmt":"2014-12-04T09:01:22","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=38457"},"modified":"2016-02-24T04:21:09","modified_gmt":"2016-02-24T09:21:09","slug":"wordpress-how-to-enable-error-reporting","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-enable-error-reporting.html","title":{"rendered":"WordPress. How to enable error reporting"},"content":{"rendered":"<p>\r\n<\/p>\r\n<p>This tutorial will show you how to enable error reporting in WordPress.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=fynSCiv86oI?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to enable error reporting<\/a><\/p>\r\n<p>If WP_DEBUG is enabled, all PHP errors, notices and warning messages will be displayed on your site. It is possible to modify the default behavior of PHP to make only fatal errors visible. <\/p>\r\n<ol>\r\n<li><strong>WP_DEBUG<\/strong>\r\n<p>WP_DEBUG is a PHP constant, used to trigger the &#8220;debug&#8221; mode throughout WordPress. It is assumed to be false by default and is usually set to true in the <strong>wp-config.php<\/strong> file:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4-300x172.jpg\" alt=\"how to enable error reporting.4\" width=\"300\" height=\"172\" class=\"aligncenter size-medium wp-image-38458\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4-300x172.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4-150x86.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4-1024x589.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.4.jpg 1130w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<ul>\r\n<li>\r\n<p>To enable error reporting in WordPress, please log into your hosting panel, locate <strong>File Manager<\/strong>, open WordPress directory of your website:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.1-300x210.jpg\" alt=\"how to enable error reporting.1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-38459\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.1-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.1-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Locate <strong>wp-config.php<\/strong> file and open it:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.2-300x210.jpg\" alt=\"how to enable error reporting.2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-38460\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.2-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.2-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>WP_DEBUG has to be set to <strong>true<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\ndefine('WP_DEBUG', true);\r\n<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.3-300x180.jpg\" alt=\"how to enable error reporting.3\" width=\"300\" height=\"180\" class=\"aligncenter size-medium wp-image-38461\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.3-300x180.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.3-150x90.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/10\/how-to-enable-error-reporting.3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<li>\r\n<p><strong>WP_DEBUG_LOG<\/strong> is a companion to <strong>WP_DEBUG<\/strong> that makes all errors to be also saved to a <strong>debug.log<\/strong> file inside the <strong>\/wp-content\/<\/strong> directory. This is useful if you want to review all notices later or need to view notices generated off-screen (e.g. during an AJAX request or running wp-cron). Please mind, if there are no errors or warnings, a <strong>debug.log<\/strong> file will not be created. Also, check files\/folders permissions (644 &#8211; for files; 755 &#8211; for folders).<\/p>\r\n<pre class=\"brush:php\">define('WP_DEBUG_LOG', true);<\/pre>\r\n<\/li>\r\n<li>\r\n<p><strong>WP_DEBUG_DISPLAY<\/strong> is another companion to <strong>WP_DEBUG<\/strong> that controls whether debug messages are shown inside the HTML of pages or not. By default it is &#8216;true&#8217; which shows errors and warnings as they are generated. Setting this to false will hide all errors. This should be used in conjunction with <strong>WP_DEBUG_LOG<\/strong> so that errors can be reviewed later.<\/p>\r\n<pre class=\"brush:php\">define('WP_DEBUG_DISPLAY', false);<\/pre>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=fynSCiv86oI?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to enable error reporting<\/a>\r\n<\/p>\r\n<\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to enable error reporting in WordPress.<\/p>\n","protected":false},"author":67,"featured_media":41013,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[691,1752,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38457"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=38457"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/38457\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/41013"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=38457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=38457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=38457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}