Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error multisite Define Blog_id

  • Avatar of Kathy_Goss
    Kathy_Goss
    Member

    @kathy_goss

    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 1.5.3.1 installed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of aces
    aces
    Participant

    @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 `’`

    Avatar of Kathy_Goss
    Kathy_Goss
    Member

    @kathy_goss

    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.

    Avatar of Kathy_Goss
    Kathy_Goss
    Member

    @kathy_goss

    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?

    Avatar of Kathy_Goss
    Kathy_Goss
    Member

    @kathy_goss

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

    Do you see anything incorrect here?

    Avatar of Kathy_Goss
    Kathy_Goss
    Member

    @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)

You must be logged in to reply to this topic.