https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/
In your wp-config.php:
`define ( ‘BP_ROOT_BLOG’, 2 );`
Where 2 is the ID of the site you wish to run BuddyPress on.
Hi Paul, thanks, still not working yet, though – could there be anything else – I’ve added;
‘/** Sets up BuddyPress subdomain indicator. */
define ( ‘BP_ROOT_BLOG’, 4 );’
to wp-config.php and uploaded, pretty sure it’s blog 4 – yep, blog ID 4. Checked upload twice, etc. Have Ctrl+F5 refreshed also, but pages still not showing ( http://talk.integraluk.org/ ).
http://talk.integraluk.org/
Thanks,
James
…(without the ‘backticks’) …..
`/** Sets up BuddyPress subdomain indicator. */
define ( ‘BP_ROOT_BLOG’, 4 );`
Hi, we found a solution to this problem, look in bp-core.php:
/wp-content/plugins/buddypress
line 21 it states:
`/* Define on which blog ID BuddyPress should run */
if ( !defined( ‘BP_ROOT_BLOG’ ) )
define( ‘BP_ROOT_BLOG’, 4 );`
And change the blog ID number on here as well – for some reason it was causing a conflict across teh WP installation.
Hi all,
Yes, as keith (graf1771) says, adding the second line after !defined in bb-core.php did it.
Thanks,
James
I have been struggling with this same problem for about half a day now and finally found this topic. I do have a concern with hard-coding a blog id. I took the following approach (similar to graf1771’s but more generic):
As already mentioned, line 21 ff. in /wp-content/plugins/buddypress/bp-core.php states:
`/* Define on which blog ID BuddyPress should run */
if ( !defined( ‘BP_ROOT_BLOG’ ) )
define( ‘BP_ROOT_BLOG’, 1 );`
instead of changing the “1” to my default blog id, I changed the “1” to “get_current_blog_id()” resulting in:
`/* Define on which blog ID BuddyPress should run */
if ( !defined( ‘BP_ROOT_BLOG’ ) )
define( ‘BP_ROOT_BLOG’, get_current_blog_id() );`
Problem solved!
Since I am new to BP (been playing with it for about 2 days now), I am concerned that this approach may have negative side affects on other BP functionality. Anyone have any thoughts on this?
Just ran across this article (https://codex.buddypress.org/extending-buddypress/bp-custom-php/) talking about bp-custom.php. Putting the above code in bp-custom.php is MUCH cleaner than modifying bp-core.php. So, bp-core.php is now back to it’s original state and my new bp-custom.php contains:
`<?php
/* Define on which blog ID BuddyPress should run */
if ( !defined( ‘BP_ROOT_BLOG’ ) )
define( ‘BP_ROOT_BLOG’, get_current_blog_id() );
?>`
and all seems good. Haven’t found any yet, but don’t know if there might be any unintended side effects of using get_current_blog_id().
Thanks BP developers for a GREAT plugin!!!
Thank you all for posting this! I’ve been reading for hours and this has fixed my issues.
I’m running BP on a network install and want ALL subdomains to have use of BP. It was working on the main install but as I created subdomains, the BP pages (Activity, Members, etc,) was giving me 404 errors. I went down the htaccess rabbit hole for a while and gave up. Started at the beginning and reading thru all the forums that looked related and found this.
@WesCleveland – The bp-custom.php works like a charm so far. Thanks for posting your solution.
That might work but I can’t guarantee that it will not cause any weird bugs or issues down the line. I’d recommend that you test with this setting, and remove the BP_ROOT_BLOG customisation:
define ( ‘BP_ENABLE_MULTIBLOG’, true );