How to Enable WordPress Debug Mode to Fix Site Errors

Why should I enable WordPress Debug Mode?

Sometimes.WordPress PluginThemes or custom code (such as PHP or JavaScript) may cause conflicts on the site.

It will lead to different errors and the website may not work properly.

Now, one can always deactivate all plugins to see which plugin is causing the error. Similarly, one can switch to a different WordPress theme or remove the custom code to find the cause of the error.

However, all of this takes a great deal of time, as each possibility has to be eliminated one by one.

The good news is that WordPress has debug mode built-in. However, it is turned off by default and you need to turn it on manually.

Once enabled, debug mode displays a log of all errors and warnings on the site.

This makes it possible to find out what's wrong with your WordPress site and fix them quickly. It can even find errors that may not be found otherwise.

There are usually two ways to use WordPress debug mode.

Image[1]-How to Enable WordPress Debug Mode to Fix Site Errors - Photonflux.com | Professional WordPress Repair Service, Global Reach, Fast Response

Method 1: Enable WordPress Debug Mode with a Plugin

An easy way to enable debug mode is to use theWP DebuggingPlugin. This method is suitable for novices and people who are not familiar with handling website files.

WP Debugging is a free WordPress plugin. With this plugin, there is no need to manually edit website files.

First, install and activate the WP Debugging plugin.

Once activated, you can go from the WordPress dashboard to the"Tools" ""WP Debugging"". Next, make sure that "Set WP_DEBUG to true" option is enabled.

Image[2]-How to enable WordPress Debug Mode to fix site errors - Photon Flux | Professional WordPress Repair Service, Worldwide, Fast Response

After that, you'll see an addition to the top of the admin bar "Debugging Quick Look"Options.

To continue, hover over it and click "View Document"Options.

Image [3] - How to Enable WordPress Debug Mode to Fix Site Errors - Photonflux.com | Professional WordPress Repair Service, Global Reach, Fast Response

This will open a log file containing all the errors on the site. It is then possible to find out what is causing problems on the site and fix them quickly.

Remember to disable the plugin when done debugging the site.

Method 2: Enable WordPress Debug Mode Manually

The second way to enable WordPress debug mode is to edit the wp-config.php file. This method is more difficult and is suitable for users who are familiar with editing website files.

It's still the same, back up the site data before editing the files.

An FTP client for Mac or Windows is required to access the website files.

In this tutorial, we are using the FileZilla FTP client.

After logging in, go to?public_html folder. "wp-config.php" fileLocated here.

Image [4] - How to Enable WordPress Debug Mode to Fix Site Errors - Photonflux.com | Professional WordPress Repair Service, Worldwide, Fast Response

Of course, it's the same if you use another control panel; log in to the control panel, find the appropriate website, and then find the "wp-config.php" fileReady to go.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨詢:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
? Reprint statement
This article was written by Harry
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments