{"id":4656,"date":"2024-09-25T13:57:41","date_gmt":"2024-09-25T12:57:41","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=4656"},"modified":"2024-09-25T14:03:00","modified_gmt":"2024-09-25T13:03:00","slug":"debug-log-file","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/wordpress\/debugging-wordpress\/debug-log-file","title":{"rendered":"debug.log file"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Enabling the debug.log file<\/h4>\n\n\n\n<p>Edit the wp-config.php file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/Instead of using this line\n\/\/define('WP_DEBUG', false);\n\/\/Use these three lines:\ndefine( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_DISPLAY', false );\ndefine( 'WP_DEBUG_LOG', true );<\/code><\/pre>\n\n\n\n<p>You&#8217;ll now get the same output, but written to the file instead of shown to users at the top of the page.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Viewing the file<\/h4>\n\n\n\n<p>This file will be written in: \/wp-content\/ directory<\/p>\n\n\n\n<p>Open this file using SSH or your FTP client to view the debug reports.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enabling the debug.log file Edit the wp-config.php file: You&#8217;ll now get the same output, but written to the file instead of shown to users at the top of the page. Viewing the file This file will be written in: \/wp-content\/ directory Open this file using SSH or your FTP client to view the debug reports.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[208],"tags":[],"class_list":["post-4656","post","type-post","status-publish","format-standard","hentry","category-debugging-wordpress"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=4656"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4656\/revisions"}],"predecessor-version":[{"id":4659,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/4656\/revisions\/4659"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=4656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=4656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=4656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}