WP_DEBUG is a global variable that can be added to the wp-config.php file of any site running WordPress. In addition to the error logs available in Cpanel, WP_DEBUG will help you identify problems that occur in your WordPress website.

Initially this variable is inactive, because it can hinder the operation of the website, respectively it can reduce its loading time.

When WP_DEBUG is enabled, WordPress will display PHP notifications, error messages and problem alerts on your website and save them to a file named debug.log in the wp-content directory.

By examining these errors and notifications you can identify and eliminate any issues that affect WordPress, for proper operation.

Activation:

In wp_config.php file add the line:

define('WP_DEBUG', True );

Deactivation is done by changing the state from True to False ->  define('WP_DEBUG', True );

If you want to check for errors on your live site we recommend you to use:

define ('WP_DEBUG_LOG', true);
  define ('WP_DEBUG_DISPLAY', false);

This way the errors are saved in debug.log and are not displayed visually on your live site.

 

If you encounter problems in applying the above instructions please contact us. HostX offers the best WordPress hosting service and can help you solve your problems.

Was this answer helpful? 0 Users Found This Useful (0 Votes)