Group Mods

  • Profile picture of r-a-y
  • Profile picture of @mercime
  • Profile picture of Hugo

Support: Installing BuddyPress

Problems with getting it running.

Fatal Error multisite Define Blog_id (6 posts)

Started 3 months, 3 weeks ago by: Kathy_Goss

  • Profile picture of Kathy_Goss Kathy_Goss said 3 months, 3 weeks ago:

    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.

  • Profile picture of aces aces said 3 months, 3 weeks ago:

    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

  • Profile picture of Kathy_Goss Kathy_Goss said 3 months, 3 weeks ago:

    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.

  • Profile picture of Kathy_Goss Kathy_Goss said 3 months, 3 weeks ago:

    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?

  • Profile picture of Kathy_Goss Kathy_Goss said 3 months, 3 weeks ago:

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

    Do you see anything incorrect here?

  • Profile picture of Kathy_Goss Kathy_Goss said 3 months, 2 weeks ago:

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