Debug wp-config.php Settings

Home Forums WordPress Config Setup Debug wp-config.php Settings

Viewing 1 reply thread
  • Author
    Posts
    • #2392

      Layer7web
      Keymaster

      Useful debug settings for the wp-config.php file:

      define(WP_DEBUG, true); – Turn on warnings and notices.

      define(WP_DEBUG_LOG, true); – Log those warnings and notices to wp-content/debug.log

      define(WP_DEBUG_DISPLAY, false); – Don’t display them just log them to debug.log. (Publicly accessible if location is not changed)

      • This topic was modified 8 years, 3 months ago by Layer7web. Reason: Added change location of debug.log file
      • This topic was modified 8 years, 3 months ago by Layer7web.
    • #2697

      Layer7web
      Keymaster

      To use the same config file for different environments I have been using this a lot these days:

      Putting development connection settings in the ‘local’ and live settings in the not ‘local’.

Viewing 1 reply thread

You must be logged in to reply to this topic.

Comments are closed.