{"id":17872,"date":"2019-08-23T15:57:52","date_gmt":"2019-08-23T19:57:52","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=17872"},"modified":"2021-04-27T10:10:01","modified_gmt":"2021-04-27T14:10:01","slug":"how-to-enable-debugging-in-cloud-wordpress","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-enable-debugging-in-cloud-wordpress\/","title":{"rendered":"How to Enable Debugging in Cloud WordPress"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><p>Cloud WordPress is a great tool for testing out new Plugins, Themes, and custom code without risking your live website. If you&rsquo;re testing out new website features and you need to enable debugging in WordPress, follow these steps.<\/p>\n<ol>\n<li>Log into&nbsp;<a href=\"https:\/\/boldgrid.com\/central\">BoldGrid Central<\/a>&nbsp;and navigate to&nbsp;<strong>Cloud WordPress<\/strong><\/li>\n<li>Navigate to the&nbsp;<strong>Advanced Tools&nbsp;<\/strong>tab and click on&nbsp;<strong>File Manager<\/strong><br>\n<a title=\"\" href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17846\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-300x183.png\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-300x183.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-768x468.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-610x371.png 610w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-250x152.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-550x335.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-800x487.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-296x180.png 296w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-493x300.png 493w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-821x500.png 821w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109.png 882w\" alt=\"\" width=\"300\" height=\"183\"><\/a><\/li>\n<li>Locate and click on the filename for&nbsp;<strong>wp-config.php<\/strong><\/li>\n<li>You&rsquo;ll see a read-only copy of your config file. Click on&nbsp;<strong>Edit&nbsp;<\/strong>or&nbsp;<strong>AdvancedEditor<\/strong><\/li>\n<li>Scroll down to the line:\n<pre>\/* That's all, stop editing! Happy blogging. *\/<\/pre>\n<p><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17869 size-medium\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-300x196.png\" alt=\"The wp-config.php file in the Advanced Editor in Cloud WordPress\" width=\"300\" height=\"196\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-300x196.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-768x503.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-610x400.png 610w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-250x164.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-550x360.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-800x524.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-275x180.png 275w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-458x300.png 458w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113-763x500.png 763w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_113.png 997w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p><\/li>\n<li>Above this line, add the following lines of code:\n<pre class=\"wp-block-preformatted\">define( 'WP_DEBUG', true ); \/\/Enable WordPress Debugging\r\ndefine( 'WP_DEBUG_LOG', true ); \/\/Log errors to wp-content\/debug.log\r\ndefine( 'WP_DEBUG_DISPLAY', true ); \/\/Display WordPress errors when viewing the website\r\n@ini_set( 'display_errors', 1 ); \/\/Display PHP errors when viewing the website<\/pre>\n<\/li>\n<li>These settings will display errors when viewing your website, as well as store all errors to a file in wp-content called&nbsp;<strong>debug.log<\/strong><\/li>\n<\/ol>\n<h2 id=\"next-steps\">Next Steps<\/h2>\n<p>Now that you have debugging enabled, you may want to learn how to <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-view-the-debug-log-in-cloud-wordpress\/\">view your error log<\/a> or learn how to <a href=\"https:\/\/www.boldgrid.com\/support\/wordpress-tutorials\/how-to-interpret-wordpress-errors\/\">interpret WordPress errors.<\/a><\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Cloud WordPress is a great tool for testing out new Plugins, Themes, and custom code without risking your live website. If you&rsquo;re testing out new website features and you need to enable debugging in WordPress, follow these steps. Log into&nbsp;BoldGrid Central&nbsp;and navigate to&nbsp;Cloud WordPress Navigate to the&nbsp;Advanced Tools&nbsp;tab and click on&nbsp;File Manager Locate and click [&hellip;]<\/p>\n","protected":false},"author":1294,"featured_media":15511,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Enable WordPress Debugging in Cloud WordPRess","bgseo_description":"Cloud WordPress is a great tool for testing out new Plugins, Themes, and custom code without risking your live website. If you're testing out new website features and you need to enable WordPress debugging, follow these steps.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[647],"tags":[],"class_list":["post-17872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-boldgrid-cloud-wordpress-product-guide","feature-type-premium","experience-level-advanced"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1294"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=17872"}],"version-history":[{"count":6,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17872\/revisions"}],"predecessor-version":[{"id":36784,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17872\/revisions\/36784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media\/15511"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=17872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=17872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=17872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}