2.14.1.15. Enable debug mode in WordPress

  1. Open the site configuration file wp-config.php in the built-in editor of the file manager or any FTP client.
  2. Find the line with the parameter WP_DEBUG:
    define('WP_DEBUG', false);
  3. In the line you find, replace false with true so that it looks like this:
    define('WP_DEBUG', true);
  4. If you want errors to be output to a standard WordPress log file (by default, this is wp-content/debug.log) rather than to the screen, insert the following lines below the line with the WP_DEBUG parameter:
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);
  5. Save the changes.
  6. Reproduce the error on the site to see it on the screen or record it in the WordPress log file.

After finding the source of errors on your site and fixing them, you should disable debug mode.

Content