Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fatal Error multisite Define Blog_id


  • Kathy_Goss
    Participant

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

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


    Kathy_Goss
    Participant

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


    Kathy_Goss
    Participant

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


    Kathy_Goss
    Participant

    @kathy_goss

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

    Do you see anything incorrect here?


    Kathy_Goss
    Participant

    @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