{"id":281695,"date":"2019-07-26T13:07:26","date_gmt":"2019-07-26T17:07:26","guid":{"rendered":"https:\/\/wpdeveloper.net\/?p=281695"},"modified":"2019-12-21T07:46:11","modified_gmt":"2019-12-21T12:46:11","slug":"wp-debug-log","status":"publish","type":"post","link":"https:\/\/wpdeveloper.com\/wp-debug-log\/","title":{"rendered":"How to Enable WP Debug Log to Check for Errors in WordPress"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"281695\" class=\"elementor elementor-281695\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-e5c48c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e5c48c1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b1366d0\" data-id=\"b1366d0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-63c0186 elementor-widget elementor-widget-text-editor\" data-id=\"63c0186\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>At many times fixing a WordPress error might be a matter of minutes. But that is only possible when you know where the problem is. Given a situation when you do not know where a problem is generating from, it might take you days before you can find out a solution. This is where the WP Debug Log comes really handy. Once you have this feature activated it will display all PHP Error and bugs in a log format.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-3a7e742 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3a7e742\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4acd239\" data-id=\"4acd239\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-16d8f4c elementor-widget elementor-widget-image\" data-id=\"16d8f4c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/assets.wpdeveloper.net\/wp-content\/uploads\/2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6IjI5NzI0OSIsInVybCI6Imh0dHBzOlwvXC9hc3NldHMud3BkZXZlbG9wZXIuY29tXC8yMDE5XC8wN1wvSG93LXRvLUVuYWJsZS1XUC1EZWJ1Zy1Mb2ctdG8tQ2hlY2stZm9yLUVycm9ycy1pbi1Xb3JkUHJlc3MucG5nIn0%3D\" rel=\"nofollow noopener\" target=\"_blank\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"640\" height=\"360\" src=\"https:\/\/assets.wpdeveloper.com\/2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress.png\" class=\"attachment-large size-large wp-image-297249 wp-stateless-item\" alt=\"wp debug log\" srcset=\"https:\/\/assets.wpdeveloper.com\/2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress.png 1280w, https:\/\/assets.wpdeveloper.com\/2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress-600x338.png 600w, https:\/\/assets.wpdeveloper.com\/2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress-768x432.png 768w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-image-size=\"large\" data-stateless-media-bucket=\"assets.wpdeveloper.com\" data-stateless-media-name=\"2019\/07\/How-to-Enable-WP-Debug-Log-to-Check-for-Errors-in-WordPress.png\" title=\"\">\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-05d7a4d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"05d7a4d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6e3ef09\" data-id=\"6e3ef09\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cba2694 elementor-widget elementor-widget-heading\" data-id=\"cba2694\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What is WP Debug Log?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-5399218 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5399218\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5f1f512\" data-id=\"5f1f512\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0bb8840 elementor-widget elementor-widget-text-editor\" data-id=\"0bb8840\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Recommended Reading:<\/strong>\u00a0<strong><a href=\"https:\/\/wpdeveloper.com\/database-connection-error\/\" target=\"_blank\" rel=\"nofollow noopener\">How to fix the Establishing Database Error in WordPress<\/a><\/strong><\/p><p>WP Debug Log controls settings for your WordPress Site as well as helps you fix both small and big errors. This file contains information about error alerts, notices and warnings.<\/p><p>WP Debug is a<strong>\u00a0PHP constant<\/strong>\u00a0(a permanent global variable) that can be used to trigger the \u201cdebug\u201d mode throughout WordPress. It is assumed to be false by default and is usually set to true in the\u00a0<strong><a href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/\" target=\"_blank\" rel=\"nofollow noopener\">wp-config.php<\/a>\u00a0<\/strong>file on development copies of\u00a0<strong><a href=\"https:\/\/wpdeveloper.com\/wordpress-gutenberg-plugins\/\" target=\"_blank\" rel=\"nofollow noopener\">WordPress<\/a><\/strong>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-b335f90 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b335f90\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3a18dcc\" data-id=\"3a18dcc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e3992cd elementor-widget elementor-widget-image\" data-id=\"e3992cd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/assets.wpdeveloper.net\/wp-content\/uploads\/2019\/06\/WPDeveloper-Debug.png\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"WPDeveloper-Debug\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6IjI4MTgwMCIsInVybCI6Imh0dHBzOlwvXC9hc3NldHMud3BkZXZlbG9wZXIuY29tXC8yMDE5XC8wNlwvV1BEZXZlbG9wZXItRGVidWcucG5nIn0%3D\" rel=\"nofollow noopener\" target=\"_blank\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"82\" src=\"https:\/\/assets.wpdeveloper.com\/2019\/06\/WPDeveloper-Debug.png\" class=\"attachment-large size-large wp-image-281800 wp-stateless-item\" alt=\"\" srcset=\"https:\/\/assets.wpdeveloper.com\/2019\/06\/WPDeveloper-Debug.png 725w, https:\/\/assets.wpdeveloper.com\/2019\/06\/WPDeveloper-Debug-600x77.png 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-image-size=\"large\" data-stateless-media-bucket=\"assets.wpdeveloper.com\" data-stateless-media-name=\"2019\/06\/WPDeveloper-Debug.png\" title=\"\">\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-79a0a90f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"79a0a90f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-137cda96\" data-id=\"137cda96\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3304f501 elementor-widget elementor-widget-text-editor\" data-id=\"3304f501\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>WP Debug Log is a companion to WP_Debug that causes all errors to also be saved to a debug.log file. This is useful if you want to review all notices later or need to view notices generated off-screen. By default, this feature comes disabled. But you can enable this feature any time. After you enable this feature, all the errors, warnings and notices will be logged and displayed inside your WordPress Admin Dashboard.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-f0ac691 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f0ac691\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-898fc12\" data-id=\"898fc12\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ea79267 elementor-widget elementor-widget-heading\" data-id=\"ea79267\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Enable WordPress Debugging Mode<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a022a0f elementor-widget elementor-widget-text-editor\" data-id=\"a022a0f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Login to your\u00a0<a href=\"https:\/\/wordpress.org\/support\/article\/using-cpanel\/\" target=\"_blank\" rel=\"nofollow noopener\"><strong>Website&#8217;s Cpanel.<\/strong><\/a>\u00a0You might also access your account via SSH.<\/li><li>If you are using Cpanel, go to File Manager and open the file\u00a0<em>wp-config.php.\u00a0<\/em>But if you are using SSH, use a command prompt and open the\u00a0<em>wp-config.php file.<\/em><\/li><li>Add the following line of text to enable debugging mode &#8211;\u00a0<em><strong>define(&#8216;WP_DEBUG&#8217;, true);<\/strong><\/em><\/li><li>That&#8217;s it, the Debugging mode is now enabled on your\u00a0<strong><a href=\"https:\/\/wpdeveloper.com\/web-design-ux-trend\/\" target=\"_blank\" rel=\"nofollow noopener\">WordPress Website.<\/a><\/strong><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section data-particle_enable=\"false\" data-particle-mobile-disabled=\"false\" class=\"elementor-section elementor-top-section elementor-element elementor-element-fd71b90 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"fd71b90\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ea52499\" data-id=\"ea52499\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0532fa2 elementor-widget elementor-widget-heading\" data-id=\"0532fa2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Wrapping Up!<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-37d295b elementor-widget elementor-widget-text-editor\" data-id=\"37d295b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>You might want to keep the WP Debug Mode enabled while you are developing something. As you are working on your project, you might end up catching new PHP Error.\u00a0 Once you are done fixing the errors you can disable the WP Debug Mode. For disabling the debugging mode, you need to set the \u00a0WP DEBUG to False. To do so, first navigate to your CPanel, locate the\u00a0<em>wp-config.php\u00a0<\/em>file, and then add following lines &#8211;\u00a0<em><strong>define(&#8216;WP_DEBUG&#8217;, false);<\/strong><\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>If you are experiencing errors with your WordPress Website, this guide shows you a quick way to use the WP Debug Log to find out what&#8217;s wrong<\/p>\n","protected":false},"author":2045,"featured_media":297249,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","footnotes":""},"categories":[88],"tags":[662,89,659,219,661,660],"class_list":["post-281695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-php-error","tag-wordpress","tag-wordpress-debug-log","tag-wordpress-website","tag-wp-debug","tag-wp-debug-log"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[2045],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":2546,"_links":{"self":[{"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/posts\/281695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/users\/2045"}],"replies":[{"embeddable":true,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/comments?post=281695"}],"version-history":[{"count":19,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/posts\/281695\/revisions"}],"predecessor-version":[{"id":386942,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/posts\/281695\/revisions\/386942"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/media\/297249"}],"wp:attachment":[{"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/media?parent=281695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/categories?post=281695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpdeveloper.com\/wp-json\/wp\/v2\/tags?post=281695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}