{"id":160,"date":"2018-05-05T13:34:40","date_gmt":"2018-05-05T10:34:40","guid":{"rendered":"http:\/\/www.drakauskas.lt\/?p=160"},"modified":"2026-08-05T17:56:15","modified_gmt":"2026-08-05T14:56:15","slug":"wordpress-debug-wordpress-debug-mode-configuration-and-error-notificationsrezimas-ir-klaidu-pranesimu-nustatymai","status":"publish","type":"post","link":"https:\/\/www.drakauskas.lt\/blog\/en\/wordpress-debug-wordpress-debug-mode-configuration-and-error-notificationsrezimas-ir-klaidu-pranesimu-nustatymai\/","title":{"rendered":"WordPress debug mode configuration and show error notifications"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>wp-config.php file configurations:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( \u2018WP_DEBUG\u2019, true);\n\/\/ To turn on or off debug mode\n\n\/* Debug mode configuration *\/\nif ( WP_DEBUG ) {\n\ndefine( \u2018SCRIPT_DEBUG\u2019, true);\n\/\/ Turn on JavaScript and CSS error notifications\n\ndefine( \u2018WP_DEBUG_LOG\u2019, true);\n\/\/ Write error norification to log file ( default file is located \u2013 \/wp-content\/debug.log )\n\ndefine( \u2018WP_DEBUG_DISPLAY\u2019, off);\n\/\/ Not allow to show error notification on display\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Not to make log file accessible, you should add these lines on .htaccess file in log file directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Files \u201cdebug.log\u201d>\nOrder Allow,Deny\nDeny from all &lt;\/Files><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>wp-config.php file configurations: Not to make log file accessible, you should add these lines on .htaccess file in log file directory.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[237],"tags":[460],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-wordpress-en","tag-wp-config-php-lt-en"],"_links":{"self":[{"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":2,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":72445,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/72445"}],"wp:attachment":[{"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.drakauskas.lt\/blog\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}