How to activate WP_DEBUG (debug mode) in WordPress

How to activate WP_DEBUG (debug mode) in WordPress

in General Tags: debugerror

WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout WordPress. It is assumed to be false by default and is usually set to true in the wp-config.php file on development copies of WordPress.

In order to make your WordPress installation show the errors you are getting from a theme or plugin, you can activate it. Note that this is not recommended to live websites as users will see the errors, but in case you need to debug your website and see why it is crashing or what could be causing the issue, the first step would be to check the debug mode.

You can be asked by some of our representatives to activate the debug, as there are cases when the support team can’t really guess what could be the problem.
In order to do that, you’ll have to connect to your server via FTP, edit the wp-config.php file there and find the line:

define( 'WP_DEBUG', false );

and basically change the “false” declaration to true.

Once we have debugged and fixed the issue, it is recommended to set it back to false.

0

0

Related Articles

2 Comments

Jipin Apricot
· October 20, 2017 at 9:43 am

Hi Team,

Set the constant define( ‘WP_DEBUG’, true );
Still unable to login/no error message showing.
Please check the issue.

    Support Staff
    · April 5, 2018 at 6:28 pm

    You should try and check the server logs if this fails for you.

Leave a Reply