WPMu, BuddyPress, bbPress integration

Ok, so I had to sort out why bbPress and WPMu weren’t integrating. My client was pulling out his hair, and I just didn’t think the bald look would suit him.

First off, let’s not repeat what is being said repeatedly all over the internet on forums and blogs. Start here, this is a good guide to getting integration done.

Once you’ve done that you may be lucky and things will just work – it seems to work for some and not for others.

However, if it doesn’t here’s a list of the things I did to make it work.

Add this line to the end of both your wp-config.php and bb-config.php files;

define( ‘WP_AUTH_COOKIE_VERSION’, 1 );

It looks like WPMU (2.7.1) may already be using version 2, so that’s why it seems to be necessary to explicitly tell both WPMu and bbPress which version to use.

Next, make SURE that your KEYS and SALT VALUES match up. KEYS are set in the wp-config.php and bb-config.php files, SALT VALUES are set in wp-config.php and http://[your blog site]/[bbpress location]/bb-admin/options-wordpress.php.

Next thing may be a bit odd – and most likely this isn’t the most secure way of doing it (the preferably way would be to figure out why WPMu isn’t attaching the HASH value to the cookie name), but, in wp-config.php set COOKIEHASH to an empty string like so;

define( ‘COOKIEHASH’, ” );

And in bb-config, set BB_HASH to an empty string as well – like so;


Remember to test every step of the way – your integration could start working at any point!

However, if all the above has been done and it’s still not working, there’s an edit required in the bbPress code, and another line to be added to bb-config.php which sorted it out for me (and ensured my client of a beautiful head of hair). And here it is!

Add this line to bb-config.php:

$bb->wp_cookie_path = ‘/’;

And on line 928 of bb-settings.php (bbPress version 1.0.1) after this line;

unset( $_plugin_cookie_paths, $_type, $_data, $_cookie_path );

Add this;

if ( $bb->wp_cookie_path ) {
	$cookies['auth'][] = array(
		'domain' => $bb->cookiedomain,
		'path' => $bb->wp_cookie_path,
		'name' => $bb->authcookie

	$cookies['secure_auth'][] = array(
		'domain' => $bb->cookiedomain,
		'path' => $bb->wp_cookie_path,
		'name' => $bb->secure_auth_cookie,
		'secure' => true

Basically, after much digging, I noticed that when you log in via bbPress a cookie value is missing, so that just makes sure that it’s there.

If all goes well you should now have an integrated site using WPMu, BuddyPress, and bbPress.

If it’s still acting up, make sure you clear your cookies for the relevant domain (or just all cookies if you like) – actually – do that anyway to be on the safe side.

You’ll notice I don’t mention anything about BuddyPress, that’s cos it seems to work for me as soon as I’ve done what I explained in this post.

Lastly, I’m sure there are better (and right) ways of doing what I’ve done, and that this is possibly a hack rather than a proper fix. I’ll send a link of this post to the bbPress guys tho, so hopefully this will be of some help to them and they’ll know how to sort it out more elegantly.

Good luck!

Comments are closed.