Re: Subdomain Install – Pages Not Found
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?