Debugging multisite blogs (3 posts)

  1. neonWired
    Posted 3 years ago #

    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.

  2. 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 ;)

  3. superautomatic
    Posted 3 years ago #

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

    if ($_SERVER['HTTP_HOST']=='site1.example.com')
      define('WP_DEBUG', true);
      define('WP_DEBUG', false);

Topic Closed

This topic has been closed to new replies.

About this Topic