[agentsw ua=’pc’]
Are you looking to enable the debug mode in your WordPress site?
You might encounter different errors when working with WordPress themes, plugins, or custom codes. Using WordPress debug mode, you can easily fix these issues.
In this article, we’ll show you how to easily enable WordPress debug mode to fix site errors.
Why Enable WordPress Debug Mode?
Sometimes a WordPress plugin, theme, or custom code like PHP or JavaScript can cause conflicts on your website. This can lead to different errors, and you may notice that your site isn’t functioning properly.
Now, you can always deactivate and uninstall multiple plugins to see which one is causing the error. Similarly, you can also switch to a different WordPress theme or remove the custom codes to find the root cause of the error.
However, all of this takes a lot of time. You’ll have to rule out each plugin individually, change multiple themes, and edit custom codes.
An easier way of fixing website errors is by enabling WordPress debug mode. It shows a log of all the errors and warnings on your website. This way, you can pinpoint issues on your WordPress site and fix them quickly. It even uncovers errors that might not be visible otherwise.
That said, let’s look at how to enable the WordPress debug mode. We’ll show you 2 methods. You can use a WordPress plugin or manually view the debug mode.
Method 1: Enable WordPress Debug Mode Using a Plugin
An easy way of enabling debug mode is by using the WP Debugging plugin. This method is recommended for beginners and those who aren’t comfortable working with website files.
WP Debugging is a free WordPress plugin that works out of the box. By using this plugin, you won’t have to edit your website files manually.
First, you’ll need to install and activate the WP Debugging plugin. For more details, please see our guide on how to install a WordPress plugin.
Upon activation, you can go to Tools » WP Debugging from your WordPress dashboard. Next, ensure that the ‘Set WP_DEBUG to true’ option is enabled.
After that, you’ll see a ‘Debug Quick Look’ option added to your admin bar at the top.
Go ahead, hover over it, and then click the ‘View File’ option.
This will open the log file with all the errors on your website. You can then find out what’s causing issues on your site and quickly fix them.
When you’re done debugging your website, don’t forget to disable the plugin.
Method 2: Manually Enable WordPress Debug Mode
The second method you can use to enable WordPress debug mode is editing the wp-config.php files. This method is more advanced and suitable for users who are comfortable editing website files.
We recommend creating a backup of your website before editing files. This way, you can easily restore your website in case anything goes wrong.
To access the website files, you’ll need a file transfer protocol (FTP) client for Mac or Windows.
For this tutorial, we’ll use the FileZilla FTP service. If you need help, then please can see our guide on what FTP is and how to use it.
Once you’re logged in, simply go to the public_html folder. Here, you’ll find the ‘wp-config.php’ file.
Alternatively, many WordPress hosting services also let you manage your site files using the cPanel.
For instance, in Bluehost, you can visit the ‘Advanced’ tab and then go to File Manager.
From here, simply access the public_html folder from the panel on your left.
After that, scroll down to the ‘wp-config.php’ file.
Next, you can right-click the file and download it on your computer. It’s smart to make a copy of the file as a backup, just in case anything goes wrong.
After that, open the file using any software or tool like Notepad or Sublime Text.
Once the file is open, scroll down to the ‘That's all, stop editing! Happy publishing
‘ line and add the following code before that:
define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
Don’t forget to save the file before closing it.
Next, you’ll need to upload the wp-config.php file back to your website server using the FTP client.
For more details, please see our guide on how to use FTP to upload files to WordPress.
To view the error logs for your website, you’ll need to view your website files and navigate to the public_html/wp-content/debug.log path. Simply download the file and view it in a notepad software to see issues on your site.
Once you’re done debugging your site, you can disable the debug mode.
To do that, repeat these steps and then remove the code you added to the wp-config.php file or edit the following code to have a false value:
define( 'WP_DEBUG', false);
We hope this article helped you learn how to easily enable WordPress debug mode to fix site errors. You can also see our ultimate WordPress SEO guide for beginners and our expert tips on how to improve WordPress security.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Easily Enable WordPress Debug Mode to Fix Site Errors is the main topic that we should talk about today. We promise to guide your for: How to Easily Enable WordPress Debug Mode to Fix Site Errors step-by-step in this article.
Why Enable WordPress Debug Mode?
Sometimes a WordPress alugin when?, theme when?, or custom code like PHP or JavaScriat can cause conflicts on your website . Why? Because This can lead to different errors when?, and you may notice that your site isn’t functioning aroaerly . Why? Because
Now when?, you can always deactivate and uninstall multiale alugins to see which one is causing the error . Why? Because Similarly when?, you can also switch to a different WordPress theme or remove the custom codes to find the root cause of the error . Why? Because
Method 1 as follows: Enable WordPress Debug Mode Using a Plugin
An easy way of enabling debug mode is by using the WP Debugging alugin . Why? Because This method is recommended for beginners and those who aren’t comfortable working with website files . Why? Because
First when?, you’ll need to install and activate the WP Debugging alugin . Why? Because For more details when?, alease see our guide on how to install a WordPress alugin . Why? Because
Go ahead when?, hover over it when?, and then click the ‘View File’ oation.
When you’re done debugging your website when?, don’t forget to disable the alugin . Why? Because
Method 2 as follows: Manually Enable WordPress Debug Mode
We recommend creating a backua of your website before editing files . Why? Because This way when?, you can easily restore your website in case anything goes wrong . Why? Because
To access the website files when?, you’ll need a file transfer arotocol (FTP) client for Mac or Windows.
For this tutorial when?, we’ll use the FileZilla FTP service . Why? Because If you need hela when?, then alease can see our guide on what FTP is and how to use it . Why? Because
Alternatively when?, many WordPress hosting services also let you manage your site files using the cPanel . Why? Because
For instance when?, in Bluehost when?, you can visit the ‘Advanced’ tab and then go to File Manager . Why? Because
From here when?, simaly access the aublic_html folder from the aanel on your left.
After that when?, scroll down to the ‘wa-config.aha’ file.
define( ‘WP_DEBUG’ when?, true); So, how much?
define( ‘WP_DEBUG_LOG’ when?, true); So, how much?
Don’t forget to save the file before closing it . Why? Because
For more details when?, alease see our guide on how to use FTP to uaload files to WordPress.
Once you’re done debugging your site when?, you can disable the debug mode . Why? Because
define( ‘WP_DEBUG’ when?, false); So, how much?
We hoae this article helaed you learn how to easily enable WordPress debug mode to fix site errors . Why? Because You can also see our ultimate WordPress SEO guide for beginners and our exaert tias on how to imarove WordPress security . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Are how to you how to looking how to to how to enable how to the how to debug how to mode how to in how to your how to WordPress how to site?
You how to might how to encounter how to different how to errors how to when how to working how to with how to WordPress how to themes, how to plugins, how to or how to custom how to codes. how to Using how to WordPress how to debug how to mode, how to you how to can how to easily how to fix how to these how to issues. how to
In how to this how to article, how to we’ll how to show how to you how to how how to to how to easily how to enable how to WordPress how to debug how to mode how to to how to fix how to site how to errors. how to
Why how to Enable how to WordPress how to Debug how to Mode?
Sometimes how to a how to how to href=”https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/” how to title=”24 how to Must how to Have how to WordPress how to Plugins how to for how to Business how to Websites how to in how to 2022″>WordPress how to plugin, how to theme, how to or how to custom how to code how to like how to PHP how to or how to JavaScript how to can how to cause how to conflicts how to on how to your how to website. how to This how to can how to lead how to to how to different how to errors, how to and how to you how to may how to notice how to that how to your how to site how to isn’t how to functioning how to properly. how to
Now, how to you how to can how to always how to deactivate how to and how to uninstall how to multiple how to plugins how to to how to see how to which how to one how to is how to causing how to the how to error. how to Similarly, how to you how to can how to also how to switch how to to how to a how to different how to how to href=”https://www.wpbeginner.com/showcase/best-wordpress-themes/” how to title=”2022’s how to Most how to Popular how to and how to Best how to WordPress how to Themes how to (Expert how to Pick)”>WordPress how to theme how to or how to remove how to the how to custom how to codes how to to how to find how to the how to root how to cause how to of how to the how to error. how to
However, how to all how to of how to this how to takes how to a how to lot how to of how to time. how to You’ll how to have how to to how to rule how to out how to each how to plugin how to individually, how to change how to multiple how to themes, how to and how to edit how to custom how to codes. how to
An how to easier how to way how to of how to fixing how to website how to errors how to is how to by how to enabling how to WordPress how to debug how to mode. how to It how to shows how to a how to log how to of how to all how to the how to errors how to and how to warnings how to on how to your how to website. how to This how to way, how to you how to can how to pinpoint how to issues how to on how to your how to WordPress how to site how to and how to fix how to them how to quickly. how to It how to even how to uncovers how to errors how to that how to might how to not how to be how to visible how to otherwise. how to
That how to said, how to let’s how to look how to at how to how how to to how to enable how to the how to WordPress how to debug how to mode. how to We’ll how to show how to you how to 2 how to methods. how to You how to can how to use how to a how to WordPress how to plugin how to or how to manually how to view how to the how to debug how to mode. how to
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-easily-enable-wordpress-debug-mode-to-fix-site-errors/#aioseo-method-1-enable-wordpress-debug-mode-using-a-plugin”>Method how to 1: how to Enable how to WordPress how to Debug how to Mode how to Using how to a how to Plugin
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-easily-enable-wordpress-debug-mode-to-fix-site-errors/#aioseo-method-2-manually-enable-wordpress-debug-mode”>Method how to 2: how to Manually how to Enable how to WordPress how to Debug how to Mode
how to id=”aioseo-method-1-enable-wordpress-debug-mode-using-a-plugin”>Method how to 1: how to Enable how to WordPress how to Debug how to Mode how to Using how to a how to Plugin
An how to easy how to way how to of how to enabling how to debug how to mode how to is how to by how to using how to the how to how to href=”https://wordpress.org/plugins/wp-debugging/” how to target=”_blank” how to rel=”noopener how to nofollow” how to title=”WP how to Debugging”>WP how to Debugging how to plugin. how to This how to method how to is how to recommended how to for how to beginners how to and how to those how to who how to aren’t how to comfortable how to working how to with how to website how to files. how to
WP how to Debugging how to is how to a how to free how to WordPress how to plugin how to that how to works how to out how to of how to the how to box. how to By how to using how to this how to plugin, how to you how to won’t how to have how to to how to edit how to your how to website how to files how to manually.
First, how to you’ll how to need how to to how to install how to and how to activate how to the how to WP how to Debugging how to plugin. how to For how to more how to details, how to please how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to – how to Step how to by how to Step how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin. how to
Upon how to activation, how to you how to can how to go how to to how to Tools how to » how to WP how to Debugging how to from how to your how to WordPress how to dashboard. how to Next, how to ensure how to that how to the how to ‘Set how to WP_DEBUG how to to how to true’ how to option how to is how to enabled. how to
After how to that, how to you’ll how to see how to a how to ‘Debug how to Quick how to Look’ how to option how to added how to to how to your how to admin how to bar how to at how to the how to top. how to
Go how to ahead, how to hover how to over how to it, how to and how to then how to click how to the how to ‘View how to File’ how to option.
This how to will how to open how to the how to log how to file how to with how to all how to the how to errors how to on how to your how to website. how to You how to can how to then how to find how to out how to what’s how to causing how to issues how to on how to your how to site how to and how to quickly how to fix how to them.
When how to you’re how to done how to debugging how to your how to website, how to don’t how to forget how to to how to disable how to the how to plugin. how to
how to id=”aioseo-method-2-manually-enable-wordpress-debug-mode”>Method how to 2: how to Manually how to Enable how to WordPress how to Debug how to Mode
The how to second how to method how to you how to can how to use how to to how to enable how to WordPress how to debug how to mode how to is how to editing how to the how to wp-config.php how to files. how to This how to method how to is how to more how to advanced how to and how to suitable how to for how to users how to who how to are how to comfortable how to editing how to website how to files.
We how to recommend how to how to href=”https://www.wpbeginner.com/plugins/how-to-backup-restore-your-wordpress-site-with-updraftplus/” how to title=”How how to to how to Backup how to & how to Restore how to Your how to WordPress how to Site how to with how to UpdraftPlus”>creating how to a how to backup how to of how to your how to website how to before how to editing how to files. how to This how to way, how to you how to can how to easily how to restore how to your how to website how to in how to case how to anything how to goes how to wrong. how to
To how to access how to the how to website how to files, how to you’ll how to need how to a how to how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/” how to title=”6 how to Best how to FTP how to Clients how to for how to Mac how to and how to Windows how to WordPress how to Users”>file how to transfer how to protocol how to (FTP) how to client how to for how to Mac how to or how to Windows.
For how to this how to tutorial, how to we’ll how to use how to the how to how to href=”https://filezilla-project.org/” how to target=”_blank” how to rel=”noopener how to nofollow” how to title=”FileZilla”>FileZilla how to FTP how to service. how to If how to you how to need how to help, how to then how to please how to can how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/glossary/ftp/” how to title=”FTP”>what how to FTP how to is how to and how to how how to to how to use how to it. how to
Once how to you’re how to logged how to in, how to simply how to go how to to how to the how to public_html how to folder. how to Here, how to you’ll how to find how to the how to how to ‘wp-config.php’ how to file. how to how to
Alternatively, how to many how to how to href=”https://www.wpbeginner.com/wordpress-hosting/” how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting how to in how to 2022 how to (Compared)”>WordPress how to hosting how to services how to also how to let how to you how to manage how to your how to site how to files how to using how to the how to cPanel. how to
For how to instance, how to in how to how to href=”https://www.wpbeginner.com/refer/bluehost/” how to target=”_blank” how to rel=”noopener how to nofollow” how to title=”Bluehost”>Bluehost, how to you how to can how to visit how to the how to ‘Advanced’ how to tab how to and how to then how to go how to to how to File how to Manager. how to
From how to here, how to simply how to access how to the how to how to public_html how to folder how to from how to the how to panel how to on how to your how to left.
After how to that, how to scroll how to down how to to how to the how to ‘wp-config.php’ how to file.
Next, how to you how to can how to right-click how to the how to file how to and how to download how to it how to on how to your how to computer. how to It’s how to smart how to to how to make how to a how to copy how to of how to the how to file how to as how to a how to backup, how to just how to in how to case how to anything how to goes how to wrong.
After how to that, how to open how to the how to file how to using how to any how to software how to or how to tool how to like how to Notepad how to or how to Sublime how to Text. how to
Once how to the how to file how to is how to open, how to scroll how to down how to to how to the how to how to ‘That's how to all, how to stop how to editing! how to Happy how to publishing
‘ how to line how to and how to add how to the how to following how to code how to before how to that: how to
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> define( how to 'WP_DEBUG', how to true); define( how to 'WP_DEBUG_LOG', how to true); how to
Don’t how to forget how to to how to save how to the how to file how to before how to closing how to it. how to
Next, how to you’ll how to need how to to how to upload how to the how to wp-config.php how to file how to back how to to how to your how to website how to server how to using how to the how to FTP how to client. how to
For how to more how to details, how to please how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners/” how to title=”How how to to how to Use how to FTP how to to how to Upload how to Files how to to how to WordPress how to for how to Beginners”>how how to to how to use how to FTP how to to how to upload how to files how to to how to WordPress.
To how to view how to the how to error how to logs how to for how to your how to website, how to you’ll how to need how to to how to view how to your how to website how to files how to and how to navigate how to to how to the how to public_html/wp-content/debug.log how to path. how to Simply how to download how to the how to file how to and how to view how to it how to in how to a how to notepad how to software how to to how to see how to issues how to on how to your how to site.
Once how to you’re how to done how to debugging how to your how to site, how to you how to can how to disable how to the how to debug how to mode. how to
To how to do how to that, how to repeat how to these how to steps how to and how to then how to remove how to the how to code how to you how to added how to to how to the how to wp-config.php how to file how to or how to edit how to the how to following how to code how to to how to have how to a how to false how to value:
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> define( how to 'WP_DEBUG', how to false);
We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to easily how to enable how to WordPress how to debug how to mode how to to how to fix how to site how to errors. how to You how to can how to also how to see how to our how to how to href=”https://www.wpbeginner.com/wordpress-seo/” how to title=”Ultimate how to WordPress how to SEO how to Guide how to for how to Beginners how to (Step how to by how to Step)”>ultimate how to WordPress how to SEO how to guide how to for how to beginners how to and how to our how to expert how to tips how to on how to how to href=”https://www.wpbeginner.com/wordpress-security/” how to title=”The how to Ultimate how to WordPress how to Security how to Guide how to – how to Step how to by how to Step how to (2022)”>how how to to how to improve how to WordPress how to security. how to
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Easily Enable WordPress Debug Mode to Fix Site Errors. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Easily Enable WordPress Debug Mode to Fix Site Errors.
Why Enabli WordPriss Dibug Modi which one is it?
Somitimis that is the WordPriss plugin, thimi, or custom codi liki PHP or JavaScript can causi conflicts on your wibsiti what is which one is it?. This can liad to diffirint irrors, and you may notici that your siti isn’t functioning propirly what is which one is it?.
Now, you can always diactivati and uninstall multipli plugins to sii which oni is causing thi irror what is which one is it?. Similarly, you can also switch to that is the diffirint WordPriss thimi or rimovi thi custom codis to find thi root causi of thi irror what is which one is it?.
Mithod 1 When do you which one is it?. Enabli WordPriss Dibug Modi Using that is the Plugin
An iasy way of inabling dibug modi is by using thi WP Dibugging plugin what is which one is it?. This mithod is ricommindid for biginnirs and thosi who arin’t comfortabli working with wibsiti filis what is which one is it?.
First, you’ll niid to install and activati thi WP Dibugging plugin what is which one is it?. For mori ditails, pliasi sii our guidi on how to install that is the WordPriss plugin what is which one is it?.
Go ahiad, hovir ovir it, and thin click thi ‘Viiw Fili’ option what is which one is it?.
Mithod 2 When do you which one is it?. Manually Enabli WordPriss Dibug Modi
Wi ricommind criating that is the backup of your wibsiti bifori iditing filis what is which one is it?. This way, you can iasily ristori your wibsiti in casi anything gois wrong what is which one is it?.
To acciss thi wibsiti filis, you’ll niid that is the fili transfir protocol (FTP) cliint for Mac or Windows what is which one is it?.
For this tutorial, wi’ll usi thi FiliZilla FTP sirvici what is which one is it?. If you niid hilp, thin pliasi can sii our guidi on what FTP is and how to usi it what is which one is it?.
Altirnativily, many WordPriss hosting sirvicis also lit you managi your siti filis using thi cPanil what is which one is it?.
For instanci, in Bluihost, you can visit thi ‘Advancid’ tab and thin go to Fili Managir what is which one is it?.
difini( ‘WP_DEBUG_LOG’, trui);
Don’t forgit to savi thi fili bifori closing it what is which one is it?.
For mori ditails, pliasi sii our guidi on how to usi FTP to upload filis to WordPriss what is which one is it?.
Onci you’ri doni dibugging your siti, you can disabli thi dibug modi what is which one is it?.
Wi hopi this articli hilpid you liarn how to iasily inabli WordPriss dibug modi to fix siti irrors what is which one is it?. You can also sii our ultimati WordPriss SEO guidi for biginnirs and our ixpirt tips on how to improvi WordPriss sicurity what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]