For those who are awake!
Discount -15%
We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.1.16. Enabling Debug Mode in WordPress

To enable debug mode in WordPress:

  1. Discover config file site wp-config.php in the built-in editor file manager or any FTP client.
  2. Find the line with the parameter WP_DEBUG:
    define('WP_DEBUG', false);
  3. In the found line, replace false on trueso that it looks like this:
    define('WP_DEBUG', true);
  4. If errors need to be displayed not on the screen, but in the standard WordPress log file (by default, this wp-content/debug.log), under the line with the parameter WP_DEBUG insert lines like this:
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);
  5. Save your changes.
  6. Reproduce the error on the site to see it offscreen or log it to the WordPress log file.

After identifying the source of errors on the site and eliminating their causes, it is recommended to disable debug mode.