Support » Networking WordPress » Debugging multisite blogs

  • Is there a way to enable debug on a single site when using multisite, I have one blog set up as a development/test environment for changes to the network theme and i need to do some debugging. The usual way is to add define(‘WP_DEBUG’, false); but that would turn it on for all network sites i think.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Not at this time, but man, what a neat idea.

    I would probably make a local site on my PC to test those things, personally. Less of a risk of ‘Oh no! I broke my site!’ Which … I do regulrarly anyway 😉

    You can turn on debugging on a single site from the wp-config:

    if ($_SERVER['HTTP_HOST']=='site1.example.com')
      define('WP_DEBUG', true);
    else
      define('WP_DEBUG', false);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Debugging multisite blogs’ is closed to new replies.