{"id":3042,"date":"2019-06-13T13:42:49","date_gmt":"2019-06-13T20:42:49","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=3042"},"modified":"2022-08-28T16:34:15","modified_gmt":"2022-08-28T23:34:15","slug":"how-to-debug-wordpress","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/","title":{"rendered":"How to Debug WordPress Without Going Crazy"},"content":{"rendered":"\n<p>WordPress is a beautiful part of modern life. No, really&#8211; how often in history has there been a platform that\u2019s open and available to anyone who has a thought they\u2019d like to get across? Blog platforms, such as WordPress, give the previously voiceless a voice in our global conversation, and spark chains of thought that would have never existed without a spark from someone\u2019s humble musings. WordPress is a powerful tool, but only when it functions correctly. That\u2019s why you need some top-notch debug skills to make sure your WordPress content stays up and visible.<br><\/p>\n\n\n\n<p>We\u2019ve put together this guide to help you get your WordPress debugging process down cold. We\u2019ll look at WordPress\u2019 native debugging tool and show you how to get the most of it in your error-correction crusades. We also include some advanced steps that you can take to make the WordPress debugger even more useful. While having errors in WordPress can be frustrating&#8211; and correcting them might seem to be out of your skill level, you\u2019ll be amazed at how soon you\u2019ll be confidently striding through your WordPress pages, swatting away bugs and making your words sparkle, if you follow the tips in this guide.<br><\/p>\n\n\n\n<p><strong>&lt;h2&gt;:<\/strong><\/p>\n\n\n\n<p><strong>Enable Debugging<\/strong><\/p>\n\n\n\n<p>To get started in your WordPress debugging quest, you\u2019ll first need to know how to start the damn debugger, right? Fortunately, getting the debugger going is easy enough. WordPress was developed with the end user in mind, and all of its debugging tools are easy to access and simple to comprehend. And, if you have some prior experience with debuggers, you\u2019ll be pleasantly surprised at how easy it is to understand any WordPress log dumps compared to other platforms.<br><\/p>\n\n\n\n<p>First, log onto the WordPress cPanel or connect using SSH. Open your \u201cwp-config.php\u201d file and edit it using your preferred text editor. Add the line: \u201cdefine(\u2018WP_DEBUG\u2019, true);\u201d to the config file. Now, you\u2019ll get notifications for any warnings, errors, and notices that might occur once you save the config file and exit the text editor. When you finish your debugging, you\u2019ll need to be sure to disable debugging to shut off the notification stream. To disable the debugger, open the config file again and change the line to \u201cdefine(\u2018WP_DEBUG\u2019, false);\u201d.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"799\" src=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/05\/glenn-carstens-peters-203007-unsplash-1.jpg\" alt=\"\" class=\"wp-image-2649\"\/><figcaption> Then you can get back to writing about pies or quantum mechanics theories; whatever\u2019s on your mind.<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-know-your-wordpress-debug-optional-commands\"><strong>Know Your WordPress Debug Optional Commands<\/strong><\/h2>\n\n\n\n<p>Just getting your WordPress debugger going is often enough to find the answer to your issue, but sometimes you\u2019ll need to dig deeper to find the underlying issue. That\u2019s why WordPress included some other useful debugging commands that you can try when the standard debugger isn\u2019t enough. Add these commands to the \u201cwp-config.php\u201d file (the same way you added the debugger command earlier) when you want to give your error detection a bit more oomph.<br><\/p>\n\n\n\n<p>To push all error data to a log file for parsing and issue identification, enable WP_DEBUG_LOG by changing its config line to \u201cdefine(\u2018WP_DEBUG_LOG\u2019, true);\u201d, and wait for the logs to start streaming in. Be sure to change \u201ctrue\u201d to \u201cfalse\u201d when you\u2019re done to avoid filling up your logs. If you\u2019re concerned about scripting issues, you can also use a config-file entry to set up your investigation. Enable SCRIPT_DEBUG in the config file by changing the line to \u201cdefine(\u2018SCRIPT_DEBUG\u2019, true);\u201d \u2014this will force WordPress to use core JavaScript and CSS development cores rather than the usual compressed ones.<br><\/p>\n\n\n\n<p>We hope that you enjoyed this WordPress debugging guide. Being a WordPress ninja means being able to fix any issues that pop up, so knowing how to debug WordPress is a vital part of any skilled blogger\u2019s toolkit. With our guide, you\u2019ll be able to get your debugging sessions jumping and be a master blogger in no time. If you want even more knowledge, consider enrolling in an <a href=\"https:\/\/careerkarma.com\/blog\/online-wordpress-courses\/\">online WordPress course<\/a> to round out your skillset.<\/p>\n","protected":false},"excerpt":{"rendered":"WordPress is a beautiful part of modern life. No, really-- how often in history has there been a platform that\u2019s open and available to anyone who has a thought they\u2019d like to get across? Blog platforms, such as WordPress, give the previously voiceless a voice in our global conversation, and spark chains of thought that&hellip;","protected":false},"author":21,"featured_media":3043,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[18069],"tags":[],"class_list":{"0":"post-3042","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-web-development-skills"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Web Development","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Debug WordPress Without Going Crazy | Career Karma<\/title>\n<meta name=\"description\" content=\"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Debug WordPress Without Going Crazy\" \/>\n<meta property=\"og:description\" content=\"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-13T20:42:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-28T23:34:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Paul Larkin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Larkin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/\"},\"author\":{\"name\":\"Paul Larkin\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/1761df0013e0bbfeb16c0d4078e4685d\"},\"headline\":\"How to Debug WordPress Without Going Crazy\",\"datePublished\":\"2019-06-13T20:42:49+00:00\",\"dateModified\":\"2022-08-28T23:34:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/\"},\"wordCount\":686,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/tran-mau-tri-tam-57714-unsplash.jpg\",\"articleSection\":[\"Web Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/\",\"name\":\"How to Debug WordPress Without Going Crazy | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/tran-mau-tri-tam-57714-unsplash.jpg\",\"datePublished\":\"2019-06-13T20:42:49+00:00\",\"dateModified\":\"2022-08-28T23:34:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/1761df0013e0bbfeb16c0d4078e4685d\"},\"description\":\"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/tran-mau-tri-tam-57714-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/tran-mau-tri-tam-57714-unsplash.jpg\",\"width\":1200,\"height\":800},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/how-to-debug-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/web-development-skills\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Debug WordPress Without Going Crazy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/1761df0013e0bbfeb16c0d4078e4685d\",\"name\":\"Paul Larkin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/paul-larkin-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/paul-larkin-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/paul-larkin-150x150.jpg\",\"caption\":\"Paul Larkin\"},\"description\":\"Paul Larkin has years of experience in the tech industry and writes about cybersecurity and future of work.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/paul-larkin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Debug WordPress Without Going Crazy | Career Karma","description":"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Debug WordPress Without Going Crazy","og_description":"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.","og_url":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2019-06-13T20:42:49+00:00","article_modified_time":"2022-08-28T23:34:15+00:00","og_image":[{"width":1200,"height":800,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg","type":"image\/jpeg"}],"author":"Paul Larkin","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Paul Larkin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/"},"author":{"name":"Paul Larkin","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/1761df0013e0bbfeb16c0d4078e4685d"},"headline":"How to Debug WordPress Without Going Crazy","datePublished":"2019-06-13T20:42:49+00:00","dateModified":"2022-08-28T23:34:15+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/"},"wordCount":686,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg","articleSection":["Web Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/","url":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/","name":"How to Debug WordPress Without Going Crazy | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg","datePublished":"2019-06-13T20:42:49+00:00","dateModified":"2022-08-28T23:34:15+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/1761df0013e0bbfeb16c0d4078e4685d"},"description":"Find out how to make your WordPress pages look and act their best with our guide to debugging WordPress.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/06\/tran-mau-tri-tam-57714-unsplash.jpg","width":1200,"height":800},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/how-to-debug-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/careerkarma.com\/blog\/web-development-skills\/"},{"@type":"ListItem","position":3,"name":"How to Debug WordPress Without Going Crazy"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/1761df0013e0bbfeb16c0d4078e4685d","name":"Paul Larkin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/paul-larkin-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/paul-larkin-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/paul-larkin-150x150.jpg","caption":"Paul Larkin"},"description":"Paul Larkin has years of experience in the tech industry and writes about cybersecurity and future of work.","url":"https:\/\/careerkarma.com\/blog\/author\/paul-larkin\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/3042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=3042"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/3042\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/3043"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=3042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=3042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=3042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}