Support » Plugin: Networks for WordPress » Error when commenting out DOMAIN_CURRENT_SITE

  • The moment i comment out (step 4 install) Comment out DOMAIN_CURRENT_SITE in your wp-config.php file i get Error “No site defined on this host. If you are the owner of this site, please check Debugging a WordPress Network for help.”… Have existing latest versions on all WordPress/Buddypress Multisite with BP installed on root domain/site.

    http://wordpress.org/plugins/networks-for-wordpress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Dean

    (@ddean)

    Hi maddogmcewan –

    Can you confirm whether there’s an entry in your sites table for the URL you’re using to access WordPress? It sounds like there’s a mismatch that DOMAIN_CURRENT_SITE is covering up.

    – David

    What does comment out mean? What do you actually do iin this step. I know how to edit config file but never done this before. Not sure what to do.

    Plugin Author David Dean

    (@ddean)

    Hi PCactive –

    You need to add PHP comments to that line. You can use # or //, for example. See the following doc for more information on comments:

    http://php.net/manual/en/language.basic-syntax.comments.php

    – David

    Hi, what the purpose of comment out the line /*DOMAIN_CURRENT_SITE */ ?

    to tell wordpress that do not let DOMAIN_CURRENT_SITE act as main site, right?

    because still have another network on this install to act like WordPress MU

    Plugin Author David Dean

    (@ddean)

    If DOMAIN_CURRENT_SITE is present in the config, WP will not check for other networks. It will only serve your first network no matter what domain you browse to.

    @david… tx for reply…. Yes I confirm entry exists in sites table for main site (see attached pic)… the moment i // out the DOMAIN_CURRENT_SITE, the site won’t load
    <img src=”http://smeak.com/sitesl.jpg”>

    Plugin Author David Dean

    (@ddean)

    Hmm… Are you using PHP via CGI? It sounds like WP may not be getting the server vars it’s expecting.

    What does it look like if you print_r($_SERVER) ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error when commenting out DOMAIN_CURRENT_SITE’ is closed to new replies.