Skip to:

Fatal Error multisite Define Blog_id

  • I need to designate a subsite as root blog. I have found 2 answers in codex by either adding:
    define ( ‘BP_ROOT_BLOG’, 2); in wp-config.php or in bp-custom.php files. I’ve tried both methods and in both cases get the same error:

    Fatal error: Call to a member function get() on a non-object in /home/ridgeroc/public_html/wp-includes/query.php on line 27

    I have WP 3.3.1 and BP installed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Profile photo of aces


    It’s not clear from the above code because you didn’t use `backticks` but…

    Make sure you are using `’BP_ROOT_BLOG’` not `‘BP_ROOT_BLOG’`
    ie before and after should be with`’` not `‘` or `’`

    Anyone there? after temporarily changing back the root blog back to “1” – which I still need to figure out the problem changing root to “2” – now almost all of my buddypress page links for all users are getting broken links.

    Thanks – I’ll check the backticks. What is the preferred placement of the definition? I’ve found 2 different answers here in the codex. One in wp-config.php the other in bp-custom.php. Is one method obsolete?

    I checked the code and the backticks wasn’t the problem:
    define ( ‘BP_ROOT_BLOG’, 2 );

    Do you see anything incorrect here?

    Profile photo of Kathy_Goss


    I’m still trying to solve this problem – has anyone successfully changed the Root_Blog ID?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error multisite Define Blog_id’ is closed to new replies.
Skip to toolbar