Integrating BuddyPress 1.0, WPMU 2.7.1 and bbPress Alpha 6
BuddyPress Tutorials, Wordpress MU Tutorials, bbPress Tutorials April 30th, 2009
Before beginning, you must install Wordpress Multi-User 2.7.1 (WPMU) as well as BuddyPress 1.0.
Remember to save (and upload) your work often when modifying the php files.
1. Download bbPress 1.0-Alpha-6
2. Unzip it and upload the entire bbpress folder to your root directory.
3. Change the name of the directory from bbpress to forums & chmod it to 777 if it isn’t already.
4. Go to yoursite.com/forums Click “Let’s get started”
5. Enter the same database information that you used while installing WPMU.
6. Click “Show advanced settings”
7. Enter the database host information (same as WPMU install) into the Database host section. Ignore all of the other boxes. Scroll to the bottom and make sure that the last option (Table name prefix) says bb_
8. Click “Save” and “Go to step 2″
9. Click “Add integration settings” then “Add cookie integration settings”
10. Enter your site’s URL into the first 2 boxes. (http://www.yoursite.com) I’ve done this with AND without the trailing slash and it worked for me either way.
11. Type any word(s) of your choice into all of the key and salt boxes. We’re going to overwrite this later so it doesn’t matter what you put there, as long as you put SOMETHING there. I like to type “THIS STUFF” so that it’s easier to find later.
12. Click “Add user database integration settings” Make sure the box there matches the prefix you used during WPMU install. If you made no changes while installing WPMU, this should say wp_
13. Click Save. And then “Go to step 3″
14. Enter your forum name and URL i.e. My Site Forums and http://mysite.com/forums/
15. Click the drop down menu for Username. You should see admin. Choose that.
16. Name your first forum. i.e. My First Forum or Test Forum or If You Don’t Work So Help Me!!
17. Click “Save site settings” and then “Complete the installation”
18. At this point you should see “Your installation completed successfully.” If you get any red errors, try a new install. Do this by first deleting the forums >> bb-config.php file. Only that one file, not the entire directory. Then, open your database and drop all tables that start with bb_
My suggestion to you would be to check the trailing slash from step 10. If you used it before, don’t use it this time. And vice versa.
19. If all has gone well, go to your forums. i.e. http://mysite.com/forums/
20. Log in as admin. Click Admin. Click Settings.
21. Scroll down and tick the boxes that say Enable XML-RPC and Enable Pingbacks — Save changes
22. Click Wordpress Integration
23. Give your users roles. The WPMU admin needs to be a keymaster. You can set all other roles to member. Click “Save user role map”
24. After saving, scroll down to the first grey box. You will see 2 define codes. Paste these codes into wp-config.php You should put them on the 2nd and 3rd lines of your file (immediately following the open php code)
They will resemble these codes
define(’COOKIE_DOMAIN’, ”);
define(’COOKIEPATH’, ‘/’);
25. Copy the following code onto the 4th line of your wp-config.php
define('COOKIEHASH', 'PUT_YOUR_CODE_HERE');
26. Back on the WP integration page, scroll down to the bottom. Look for your longest line of code in the big grey box. It will resemble the following code:
$bb->logged_in_cookie = ‘wordpress_logged_in_5e3c6464lssf6a33bd9aae’;
27. Copy the string. The string is the big jumbled mess of letters and numbers.
i.e. 5e3c6464lssf6a33bd9aae
28. In wp-config.php replace “PUT_YOUR_CODE_HERE” with the string you copied in step 27.
i.e. define(’COOKIEHASH’, ‘5e3c6464lssf6a33bd9aae’);
29. (Optional) Get new secret cookie keys.
30. In your wp-config.php, find “Authentication Unique Keys” Below that, you’ll see 7 (hopefully 7) different define codes. Copy these codes (full code, not just strings. Copy the full paragraph starting with the first ‘define’) Copy all of them!!
31. Open forums >> bb-config.php Scroll down and find the word(s) that you typed during the forums install in step 11. (i.e. THIS STUFF)
32. Highlight the 4 define codes that contain your word. Then, right click and paste. This will replace the codes with the ones you just copied in step 30.
33. Fix each of the seven codes by putting BB_ at the beginning of each one.
i.e. BB_AUTH_KEY, BB_SECURE_AUTH_KEY, BB_LOGGED_IN_SALT
34. Scroll to the bottom and paste the following code on the line before the closing php code. The closing code looks like ?>. The code to paste is:
$bb->bb_xmlrpc_allow_user_switching = true;
35. Save the bb-config.php
36. Now you must move your buddypress-enable.php. You can find it here:
wp-content >> plugins >> buddypress >> bp-forums >> bbpress-plugins >> buddypress-enable.php
Move it to:
forums >> bb-plugins >> buddypress-enable.php
37. Back in the Forum Admin, click Plugins. You will most likely be logged out. If this happens, just log back in, click Admin and then Plugins.
38. Activate BuddyPress Support Plugin
39. Go back to your WPMU Admin dashboard (yoursite.com/wp-admin)
40. Click BuddyPress at the bottom of the left menu and then Forums setup, again at the bottom left.
41. Enter your forums URL (i.e. http://yoursite.com/forums/)
42. Enter the name & password of the person you set as Key Master. (Mine is admin)
43. Log out of WPMU/Buddypress
44. Go to your forums and log out if you aren’t already. (http://yoursite.com/forums/)
45. Go back to your main site (http://yoursite.com) and log in
46. Back over to the forums — You should be logged in automatically.
Test this a few times by logging in and out and checking the other part of the site to see if you’re in our out like you should be.
Don’t forget to change your permissions (chmod) back to their original settings.




May 4th, 2009 at 6:04 pm
[...] Though the directions within this tutorial will work for the new release, I’ve written a 2nd tutorial that cuts out a few unnecessary steps. The new tutorial can be found here. [...]
May 13th, 2009 at 8:37 am
Haha - That’s awesome. So happy to hear/see that the directions worked for you.
May 13th, 2009 at 12:31 pm
I could marry you. Thanks!
May 16th, 2009 at 8:12 am
Hmm… it’s not quite working for me. It’s all going great but when I log into either WPMU or BB I’m not logged into the other.
The BP integration is working up until the point when I try to add a new forum post into a group. Then I get the message, “There was an error posting that topic.”
Any ideas why that might be happening? I followed your instructions to the letter.
May 16th, 2009 at 8:20 am
Actually, when I create a group, I can’t enable forums I get the “Site administrator” message about integrating forums. I can edit the settings after creating the group however and enable the forums from there…
May 16th, 2009 at 9:50 am
Well crap. Does that mean you’re taking back your marriage proposal?
Can you give the address of the installation so I can go look at a couple of things?
May 16th, 2009 at 12:09 pm
21. Scroll down and tick the boxes that say Enable XML-RPC and Enable Pingbacks — Save changes
They aren’t there..
Is it me or is there atypo in here…
wp-content >> plugins >> buddypress >> bb-forums >> bbpress-plugins >> buddypress-enable.php
Is it me, but this isn’t an installation process, it’ torture. Why the fuck can’t someone package the entire lot up first?
May 16th, 2009 at 12:20 pm
@Tom - The most likely reason for your lack of “Enable” is the fact that you downloaded the wrong version of bbPress. Did you download the alpha version like step 1 instructs? The other (the official release) doesn’t work.
And yes, you’re right. That’s a typo. It should say bp-forums and I’ll fix it right now. Thank you.
I had the older version all packaged up for an easier install and was told people might not like to download MY files and would prefer to get the originals. That’s why I didn’t package this one.
May 16th, 2009 at 12:26 pm
@Tom - Guess what — They decided to change that page. That’s exactly why I packaged the last one. Cuz it ticks me off when I write a tutorial and 2 days later they change the site.
Give me about 10 minutes to upload the zip of Alpha.
May 16th, 2009 at 12:28 pm
Alpha 6 download
May 16th, 2009 at 4:02 pm
Thank you very much. This worked great!
Do you know if this process will work with the 1.0RC version of bbpress that is on their site?
Hopefully is will work with bbpress 1.0 when released?
thanks,
Mike
May 16th, 2009 at 4:15 pm
Great to hear Mike!
I’m not sure about the new version of bbPress. I was hoping to tackle that issue sometime this weekend if I got a chance.
May 19th, 2009 at 7:11 am
Let’s just say we’re not setting a date yet darling
Sure… it’s at http://developadream.com/
Phil
May 19th, 2009 at 7:51 am
Philip John - I wonder if they’ll give me my money back for the dress I bought. *sigh*
Your cookies aren’t matching up. BP has cookies that say wordpress_ and forum cookies are wordpress_########
Check your 2 config files to make sure that those 7 define lines match (step 30-32)
Also check and make sure you have those 3 codes at the top of the wp-config. 3 defines and the 3rd should say
define(’COOKIEHASH’, ‘de92662bcb268ec671c99d686ecdca0b’);
May 19th, 2009 at 9:11 am
Yep, all present and correct… which is why I’m perplexed. Any idea what could be causing that other than incorrect keys and salts?
May 19th, 2009 at 11:48 am
Okay - I did a bunch of messing with code and the only way I’m getting the ‘broken’ (no hash on wp_ cookie) setup you have is if I remove the cookiehash from wp-config.php (step 25-28)
Are you SURE that that line is there? Are you sure it’s in wp-config and not bb-config? Are you sure you uploaded the file to the server and didn’t just save it on your computer?
Check that the single quotes are correct. Sometimes different comps (mac vs pc) will screw up those quotes when you copy them. Make sure you copy the code from step 25, NOT 28.
May 19th, 2009 at 12:16 pm
Hopefully there’s something simple right there that’s making that hash not show up.
The other thing is… once you get that hash to show, your cookies still aren’t going to work. But never fear!! I HAVE had THAT problem and actually know how to fix it.
When you log into wp & bbpress, you should be getting cookies that all say wordpress. None should say bbpress. Sometimes, the installation just glitches. I have no clue what causes it.
To fix this, open forums >> bb-settings.php and go to line 650. There, and in 2 instances directly below it (line 655, 660) you will see the word bbpress. Change those 3 words to wordpress and it’ll fix the double cookies.
May 19th, 2009 at 9:16 pm
Wow, by far the most complete and simply AWESOME tutorial on this EVAR! I’ve been scouring the interweb for some instructions on getting just this type of situation up and running…and the worst part is nearly every tutorial on how to do THIS, is different? How is that possible?!
Anyway, yours is the best. I was attempting to get this working with BBPress 1.0-RC but it never quite got all the way there so I’ll just wait until they work the bugs out. Groups is working, syncronized logging in is working and I think that’s all I need right?
Cheers! Keep up the awesome work!
May 19th, 2009 at 9:22 pm
Oh, while I’m here, maybe you know the answer to this as it’s happening in WPMU and now in BBPress. When I use the apostrophe, in say a post title or something like “I’m here!” I get a weird triple backslash so it looks like “I\\\’m here!”
Do you know what that’s about and how I can fix it? It doesn’t appear within the Groups side on BuddyPress but on the BBPress forum itself.
May 19th, 2009 at 9:41 pm
Jason - Sweet!!! I’m SO happy it worked for you. And so happy you took the time to let me know. It makes me want to write more tutorials. =D
I’m not sure why all the tutorials are different. But I know none of them worked for me and it just made me want to cry. (And I may’ve… just once.. but don’t tell anyone)
Where are you seeing the slashes? On your blog after you’ve published the post? In the address bar? On RSS?
The reason it’s being put in there is because your title is part of a code. If the page sees the apostrophe, it says “okay, that’s part of my code” and the page goes retarded. However, if the code sees a backslash, it says to itself “okay, ignore whatever character comes after this backslash”
Let me know where the slashes are showing up and I’ll see if I can help you find a solution.
Again, thanks for commenting. =D
May 19th, 2009 at 10:28 pm
Hi Chris!
Okay, I’ve been digging into this a little bit more and here is what I’ve found.
1. When posting anything to the forum FROM the BuddyPress side slahses appear in the forum. E.G. I go too Groups and create a new topic with either one or multiple single quotes, double quotes or \, the slashes will appear in the BBPress forum side but not be present in the BuddyPress side.
If I type: “hello” ‘there’ buddy!
BuddyPress->groups side: “hello” ‘there’ buddy!
BBPress Forums side: \\\”hello\\\” \\\’there\\\’ buddy!
BUT! If I post the same thing IN the BBPress forums I do not experience this problem on EITHER end. BuddyPress looks great as does BBPress.
NOTE: This is only affecting the topic titles and not the post content.
Also, I tried changing my sites title to something like Jason’s BuddyPress and I get Jason\\\’s Buddypress…not that big of a deal as I can avoid it…but still annoying. The forums needs this fix though first, then I’ll start worrying about that other stuff I can control.
May 19th, 2009 at 10:30 pm
PS - None of you are experiencing this problem? Cause if that’s true maybe I just need to reinstall everything.
I am using MySQL charset: UTF-8 Unicode (utf8)
May 20th, 2009 at 5:30 am
[...] Installing BuddyPress was simple, thanks to Ms. Chris EasyButton http://theeasybutton.com/blog/2009/04/30/integrating-buddypress-10-wpmu-and-bbpress/ [...]
May 20th, 2009 at 7:10 am
Jason - I researched this for about 2 hours last night. I was going to ask you about the UTF-8 so am glad to see you already posted that part.
We probably read all the same forum posts… but… did you check your phpinfo and see if magic quotes are on or off?
In case you don’t know how to do this (or for others looking for help) create a php file. anything.php will work. Use the code
phpinfo();Navigate to the page and search for the details on magic quotes.
Mine look like this:
magic_quotes_gpc On
magic_quotes_runtime Off
magic_quotes_sybase Off
May 20th, 2009 at 10:08 am
Wow, thanks so much for helping me out with this! It’s been really troubling; here’s the info on magic quotes…seems to be exactly the same as what you have:
Two columns below, first is Local Value, second is Master Value
magic_quotes_gpc: On, On
magic_quotes_runtime: Off, Off
magic_quotes_sybase Off Off
Also, I’m running PHP 5.2.6.
The way I set up my database is using MAMP on Mac OS X. In PHP MyAdmin I typed in the name of the database in the ‘Create new database’ text-field. MySQL charset is already set to UTF-8 Unicode (utf8) and cannot be changed. I can change, but didn’t, the MySQL connection collation, which is defaulted to utf8_unicode_ci. I can also change collation in a dropdown menu next to the name of the database I’m typing in. I also left this on the default ‘Collation’ as I’ve always done with WordPress installs. Could this be causing the problem?
Here’s another peculiar part: as I mentioned last night, but re-reading it, I didn’t really make it coherent (haha!):
When using BuddyPress groups to create a new topic I can use ANY character I want and it gets shown with no backslashes on the BuddyPress side, but does show with backslashes on the BBPress side. I checked the records in the database and those records did indeed have backslashes in them. That wouldn’t shoot up a red flag for me…but does because of this next bit.
When I save a topic with any characters, similar to the one I did in BuddyPress, and I’m talking specifically about the ‘ apostrophe and ” double-quote, the topic shows WITHOUT backslashes for both BBPress and BuddyPress, so that’s great! I check the records for this new topic, low-and-behold there are NO backslashes within the record in the database!
So, it’s a little inconsistent to me that BuddyPress would LEAVE backslashes in the records and then simply escape them to show it on the client side, whereas BBPress just doesn’t store them at all. Is there a way to tell BuddyPress to just drop them before even storing in the database?
May 20th, 2009 at 10:11 am
Oh geez, sorry about this: I messed up and left out of the paragraph starting with “When I save a topic with any characters [ON THE BBPRESS SIDE]”
I left the ‘on the BBPress side’ out. Oops!
May 20th, 2009 at 10:33 am
Well, the good news is, I just checked the bbPress side of things and realized I have those freakin slashes too!!! Yay!! Bahahaaa That’s good news because now, you KNOW I’ll be trying to find a solution. Plus the fact that I don’t have to try and recreate your problem. LOL
The bad news is… I have those freakin slashes too!!! Bahh…. (It’s a good thing my forums are hidden.)
I have one more carpet to clean and then I’ll be checking this out and finding a solution for us. I’ll post (and maybe email you) as soon as I figure anything out. Feel free to let me know if you fix it before I do. LOL!!
May 20th, 2009 at 1:30 pm
No clue if this will break other things, so, if anyone knows… give us a heads up please.
But, Jason, I fixed the slash problem. I wasn’t able to fix the posts that were already there but my code keeps slashes from being seen in the NEW topic titles that are posted via BuddyPress groups.
File: bbPress/bb-includes/defaults.bb-filters.php
Add:
// Strip slashes from topic titleadd_filter( 'pre_topic_title', 'stripslashes' );
}
Let me know if that works for ya. If not, I’ll keep digging.
May 20th, 2009 at 1:39 pm
Hey Chris!
Thanks, I added this line into this area:
// Strip, trim, kses, special chars for string saves
$filters = array( ‘pre_term_name’, ‘bb_pre_forum_name’, ‘pre_topic_title’ );
foreach ( $filters as $filter ) {
add_filter( $filter, ’strip_tags’ );
add_filter( $filter, ‘trim’ );
add_filter( $filter, ‘bb_filter_kses’ );
add_filter( $filter, ‘wp_specialchars’, 30 );
add_filter( ‘pre_topic_title’, ’stripslashes’ ); //Added it here.
}
Which is where I’m assuming you meant
.
This seems to have changed the problem but hasn’t completely fixed it. Now I’m seeing only a single slash in front of ‘, ” and \ characters instead of three. Again, only on the BBPress side do I see this.
I typed in: “Testing ‘this’ out / \ !
BuddyPress side: “Testing” ‘this’ out /! (it removes the \ character, but I don’t really care about that)
BBPress side: \”Testing\” \’this\’ out /! (now it is only a single slash as opposed to three \\\, which i guess is a step in the right direction!)
May 20th, 2009 at 1:42 pm
Also, I changed add_filter(’pre_topic_title’, ’stripslashes’);
to
add_filter($filter, ’stripslashes’);
to conform to the rest of the lines. It results in the same behavior.
May 20th, 2009 at 1:51 pm
Everything that you just posted as code, overwrite it with this:
// Strip, trim, kses, special chars for string saves$filters = array( 'pre_term_name', 'bb_pre_forum_name');
foreach ( $filters as $filter ) {
add_filter( $filter, 'strip_tags' );
add_filter( $filter, 'trim' );
add_filter( $filter, 'bb_filter_kses' );
add_filter( $filter, 'wp_specialchars', 30 );
}
// Strip slashes from topic title
add_filter( 'pre_topic_title', 'stripslashes' );
Also, did you add some test codes while trying to fix it that you forgot to take out? I added some codes that resulted in the 3 slashes instead of 1.
May 20th, 2009 at 1:51 pm
Sorry for all the separate comments here but I just checked my records in the database and they seem to be devoid of slashes! This is great since now I know that the stripslashes is indeed working at least for the records. It seems that now it’s just an issue of how I’m grabbing it from the database in BBPress.
You’re not seeing single slashes for topic titles created on the BuddyPress side? What is the PHP code you’re using to call the topic titles? I’ll find out what mine are but I’m using the default BuddyPress theme and I haven’t modified it…so whatever they are using.
A note on this also: I noticed that in the WPMU install if I change my Blog Title in Settings -> General to something with a single or double-quote in it I’ll get a backslash at the bottom of the page in the footer like Jason\’s blog but NOT in the main title. The difference is that the footer title name is being called with $current_site->site_name as opposed to the main header being called with
bloginfo(’name’);
This may be a similar issue in the forums…
May 20th, 2009 at 1:56 pm
Hey Chris,
Okay just got your instructions that you posted at 1:51. I did as you said and it’s still producing the same single slash problem as before.
There isn’t any test code in there…hmm. I’m really confused as to why I’m not getting the same output as you. I installed WPMU 2.7.1, BuddyPress 1.0 and the Alpha 6 version of BBPress downloaded from your site. I haven’t added anything else onto it.
May 20th, 2009 at 2:02 pm
This was something I added that made triple slashes:
$filters = array( 'get_forum_name', 'topic_title', 'bb_title', 'bb_option_name' );foreach ( $filters as $filter ) {
add_filter( $filter, 'wp_specialchars' );
add_filter( $filter, 'strip_tags' );
The strip_tags is what I added. It’s in the same filter file.
May 20th, 2009 at 2:12 pm
WHOA I FIXED IT!!
Okay, so you brought up the add_filter ( $filter, ’strip_tags’); in the function you stated above. I didn’t have that line in there so I added it and nothing changed.
Then I modified that line to add_filter( $filter, ’stripslashes’ );
and now when I go to BBPress ALL of the stuff I just made has no slashes, not even the single slash! YAY! Thank you so much for all your help.
Now I’m going to try to attack the issue of \ showing up on the BBPress side only. This character shows up on BBPress when created in a post on the BuddyPress side, doesn’t show in buddypress at all. When created in a post on the BBPress side the \ character doesn’t show in either of them. Strange and probably so small of an issue that it doesn’t make sense to try and fix it…so I might stop if I don’t get anywhere quickly.
May 20th, 2009 at 2:20 pm
Yay for fixing it. I was just getting ready to test that code that you posted. Nice job.
That last paragraph confused me all the way around!! LOL
Do you mean you’re TRYING to use the slash and it won’t show up? Like “you\me” comes out as “youme”??
May 20th, 2009 at 2:21 pm
I’ve also been reading that maybe some other areas of BuddyPress have this problem but I have to check and make sure. Areas like private messaging from user to user. Also, I know that when I change the name of the Base profile group name in BuddyPress General Settings to somethign with a single or double quote in it, it gets the backslash issue. Probably need to stripslash it like the others but I still need to hunt down the filters for this piece of info.
May 20th, 2009 at 2:23 pm
Hey Chris,
Apologies for the confusing paragraph. I’m typing so fast because I feel like this info will leave my head if I don’t get it out fast enough!
Basically what I’m saying is that if I create a topic with this title on BuddyPress: Here \ There
It will become this on
BuddyPress: Here There
BBPress: Here \ There
Now if I create the same title on BBPress side
BuddyPress: Here There
BBPRess: Here There
Not a very big deal, but probably has a similar solution, no?
May 20th, 2009 at 2:26 pm
I think you and I are sharing brainwaves. LOL I was just thinking the same thing. I saw the post about the private messages (I actually posted there - feel free to post your fix on that. LOL)
I was thinking that there are probably a lot of these slash problems that’ll need fixed. The biggest hassle will probably just be finding the code (like pre-title-post) that it’s calling.
Regarding the ‘confusing’ paragraph and the response to my question, I wonder why your install is acting differently than mine. It’s so weird how these scripts run 1 way for 1 person and another for others.
May 20th, 2009 at 2:32 pm
I’m keeping a list of all of the discrepancies I’m noticing here including the one we just solved. I’ll either post it here or email you when I’m done…but if it’s working already for anyone else DONT CHANGE IT. Apparently these install behave differently in different environments…which scares me a little.
May 20th, 2009 at 2:36 pm
LMAO! Good point! Pay attention to Jason! If it aint broke, don’t fix it! LOL
May 21st, 2009 at 1:34 am
Chris, I sent you an e-mail yesterday, did you get chance to have a look? Cheers
May 21st, 2009 at 6:47 am
Chris, I got your e-mail but my two replies to admin@ and chris@ both bounced!
May 24th, 2009 at 2:14 pm
Almost there, I think.
I’m using WPMU 2.7.1, BuddyPress 1.0, and bbPress 1.0-Alpha-6. Followed all install instructions, and voila! Logins are synchronized. Logging in to WPMU automagically logs me in to bbPress, and vice versa.
HOWEVER…
WHen I set up a new group within WPMU/BuddyPress, I *still* get the highly annoying “Attention Site Admin: Group forums require the correct setup and configuration of a bbPress installation.”
I was using my admin user as the KeyMaster, also created another user (forumbridge) and tried setting him as the keymaster. No dice. Can’t get the group forums to grok–which was the entire point of this exercise.
Any suggestions?
May 24th, 2009 at 3:40 pm
Richard — Do you get the annoying message as an error AFTER you try to do something or is it just sitting there mocking you when you get ready to do something in groups? Mine just sits there looking at me, but I’m still able to create new groups & such.
Did you try creating a new group or are you only trying to post in a previously made group? If it was previously made, you have to use the admin part (front end of BP) and disable discussion, then re-enable it.
If you’re just basically fed up, you can send ftp & WPMU details to admin [at] theeasybutton [dot] com and I’ll take a look.
May 24th, 2009 at 3:59 pm
The mocking message occurs when creating a new group; if I do the standard “disable forum/enable forum” trick to get things going, I instead get the attractive crimson “There was an error posting that topic” message.
Will drop you an email in a bit.
r
May 25th, 2009 at 7:56 am
The sad tale concludeth:
After both Chris and I banging around on the code, the integration, and every configuration aspect imaginable, I finally reached the F*** IT! stage last night and completely blew everything away. WPMU, BuddyPress, bbPress, themes, etc. The nuclear option: rm -rf ./html and DROP DATABASE. Started completely over and reinstalled everything, one piece at a time, checking and backing up as I went.
End result: Everything works FINE now. I cannot find any reasonable explanation as to why, except that somehow either (a) the installation of one of the pieces went awry, or (b) I fat-fingered the beejesus out of something.
In any case, it all works now, going from a clean install.
I would advise the be ULTRA-sure you have the right versions–that WILL cause you great painage–and to follow the instructions above to the letter.
(Thanks, Chris!)
r
May 25th, 2009 at 8:44 am
One final bit:
I had the entire html tree where my site resided protected with one o’ these:
AuthUserFile /vhost//htpasswd.users
AuthGroupFile /dev/null
AuthName “Staging Environment”
AuthType Basic
require valid-user
I had added it to the end of the usual WordPress .htaccess. I had bbPress installed in a subdirectory of the website. Apparently, this DOES cause problems along the way. No valid reason why it should, but it did cause some bbPress integration issues.
May 25th, 2009 at 8:47 am
Thanks Richard, for posting an update. Thanks also for the htaccess info. I’m sure it’ll help someone troubleshoot their own problem in the future.
May 26th, 2009 at 2:03 am
Hi I have buddypress installed at the route and uploaded bbpress as you suggested /forums/ And I have changed the dir to 777. And I have reloaded the dir/files three times because I could not get to the “Let’s get started”
Every time I go to http://ilocals.info/forums I get an error page not found.
Any ideas?
Thanks for the write up.
May 26th, 2009 at 6:22 am
Johan — I’m assuming you fixed this before I woke up??? I see no error. Nice looking forums though.
May 28th, 2009 at 10:19 am
Hi all –
I’m just posting this in case someone else has the same problem and not for a fix because my head hurts and I’m taking a break from the computer (sigh).
I installed WP-MU with simplescripts with the buddpress install at bluehost. (BP 1.0, WPMU 2.7.1) and then added bbPress Alpha 6 using these instructions. Have done it three times so far and every time when I get to the part to login to bbPress it won’t let me. I put in my admin/password and hit submit — nothing. Not even a “wrong password” notice (if I put in the wrong password I DO get that notice but not if I put in the right one). So I cannot login. Tried skipping the bbPress admin steps and moving on but still — nada. Also tried getting a new password sent to me but this isn’t working either. Am now digging in the BuddyPress forums and see other people have this problem but they seem to have other issues going on. The only thing I can being the issue is trying to tie the forums together so I’m just going to stop trying that now and go lie down with a cool washcloth on my forehead. Argh.
Still — this is a great tutorial and I think maybe it’s something to do with using a simple script install and just thought I’d let the code masters among you know!!
May 31st, 2009 at 5:16 am
Thank you very much indeed for this tutorial, which has (so far!) kept me from throwing my computer out of the window and taking rotten tomatoes to throw at anyone who mentions bbPress in the Wordpress meet-up in Cardiff in July…;-)
I wanted just to say thank you, and to express my absolute amazement that you found time to write this while you’ve got a six month old - our four month old has left me staggered that anyone ever gets anything done ever again after having children!
And then, just when I thought I’d finally got it working (and boy there was some happy noise when I first logged out of BuddyPress and it logged me out of bbPress too!)…
…I found out that I can’t actually post anything into a forum. On BuddyPress, I get the mocking red box - on bbPress, I get a page full of Warning: cannot yet handle MBCS in html_entity_decode()!seses.
Arghgh. But before I pull it all out and install it all again, taking occasional bites out of my desk, I thought I’d see if this was something you might have come across before. You know, that desperate little hope that it might turn out to have an easy fix…;-)
I’m on wpmu 2.7.1, BuddyPress 1.0 and bbPress 1.0-alpha-6.
I’ve installed wpmu in a subdirectory (because I like keeping index.php available for a redirect, or custom landing pages etc) and put bbPress in a directory underneath the wpmu subdirectory. I’ve tried this a few different ways round - putting in underneath wpmu was my last roll of the dice for this morning, but then during installation I saw that the cookie_domain and cookiepath details had been empty last time round but had live-looking details this time - so that was probably the latest hiccup.
I suppose I should go and reinstall again just for fun.
But if anything strikes you as worth looking into on this, I’d be very grateful indeed for any suggestions!…:-)
And thanks again for already having got me this close to something approaching sanity…;-)
May 31st, 2009 at 9:41 am
Aran - First off, the visual of you standing there with rotten tomatoes set me off laughing!! I love it!!!
As far as that error, I did some searching and it all seems to point to the version of PHP you’re using. Check your phpinfo and see what version it tells you is being used. (How to create this file is in comment #24)
If it’s php4, that would most likely explain the error. Try adding this to your .htaccess file for a fix.
AddHandler x-httpd-php5 .phpAddHandler x-httpd-php .php4
May 31st, 2009 at 9:56 am
So I went and reinstalled again (just bbPress) this time as a first level subdirectory in the root, so on the same level as the subdirectory for wpmu…
And got exactly precisely perfectly the same set of error messages. So I guess I know this isn’t about the subdirectory structure, which will give me a warm, fuzzy feeling tonight. [It'll either be that or the cider I'm going to start on now].
May 31st, 2009 at 9:58 am
Ooh, Chris, you’ve given me new hope (so I guess the horses will get the tomatoes for the time being!). And this on a Sunday, when you ought to be juggling your baby frantically and pointing out that too much screaming makes breathing difficult…;-)
Thank you SO much. I’m pretty sure I’m still on a php4. I’m going to go and try that right now, while the barbecue is still warming up, just so I can say ‘Ha!’ to the friend who told me I really ought to give up on this…;-)
May 31st, 2009 at 10:00 am
LMAO! Don’t give up. Never give up!! If anything, contact me via instant messenger and we’ll get that sucker working.
By the way, I like my burgers well done. Burnt is fine. Lots of cheese please. =D
May 31st, 2009 at 10:07 am
Okay, tried that without doing another install (I’m saving that fun for later).
And both BuddyPress and bbPress gave me:
Method Not Allowed
The requested method GET is not allowed for the URL /start/index.php.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Meanwhile, the link on a page on the root domain to a php file is now responding by starting a download!
And when (in a fit of guilt) I went and uploaded phpinfo.php just to double check, navigating to that also triggered a download.
So I set .htaccess back as was, and phpinfo is telling me we’re on php 4.4.8, and Buddypress and bbPress are (on resends) giving me the familiar original error messages.
I’ve never had occasion to change .htaccess before. Could I have made a foul up there?
May 31st, 2009 at 10:13 am
I’ll not give up! Although I might take a break when I can smell burning…;-)
It would be good if you and your brood could all be here - we’ve got a view down the north coast of the Llyn peninsula, out across the Celtic sea to Ireland, gorgeous late afternoon sun in full flow, and hundreds of Scottish terriers and several horses wanting to know if we’re cooking something for them.
But I guess Illinois is a bit too far, this time!
You’re far too kind, Chris, and I recognise a mug when I see one, because I try and have tendencies in that direction. I couldn’t possibly IM you unless we agree an hourly rate for your troubleshooting time…:-)
May 31st, 2009 at 10:19 am
Well, there’s always the possibility of a foul up, but I’m really not sure if that’s what happened.
Make a backup (or 5) of your htaccess file and then try adding these codes. Add them to the end of the file and add only 1 at a time. Test each of the 3 (one at a time) and I’ll be keeping my fingers crossed.
AddType x-mapp-php5 .phpAddHandler application/x-httpd-php5 .php
AddHandler cgi-php5 .php
May 31st, 2009 at 10:48 am
It exploded!
The house is on fire!
I’ve got to go and save the chicken strips…;-)
No, that was very interesting. First thing I noticed was that I think I was playing with the wrong .htaccess file to start with - I was looking at an entirely empty .htaccess file in the root directory.
This time, I was using a populated one in the wpmu subdirectory (/start - huh, yeah, wish it *would*).
The first line didn’t change anything (red/MBCS errors).
The second one (on its own) lead to the method not allowed GET error in BuddyPress and the MBCS error in bbPress.
The third one (on its own) made BuddyPress want to download multiple files while bbPress still just gave the MBCS error.
Lines 1 and 2 with each other made BuddyPress produce raw php code, while bbPress stuck with MBCS.
Lines 1, 2 and 3 together did the same as 1 and 2 together.
I then went and tried your original two in the .htaccess in the /start/ directory (BuddyPress), and that also lead to raw php code output and MBCS.
Then I took them all out again, and we went back to red error/MBCS.
Unless you can see any obvious sense to that, I’d rather you didn’t spend any more time on this unless we can talk hourly rates - because your time is the most precious thing you have, and it really ought to be spent with your children. If I’m going to drag you away from them, I’ve got to give you money (not as valuable as time) for you to buy them icecream.
That’s how I see it, anyway…:-)
May 31st, 2009 at 10:50 am
And I really must go barbecue for a while now, or I’ll be in all sorts of trouble. But you can see my email address, I presume? Email me, and we can stop cluttering up your blog…:-)
June 1st, 2009 at 6:24 am
Just wanted to say thank you very much indeed once again.
When it became clear that quick fixes weren’t working, Chris offered to log in to my installation herself and have a look. I thought it would be completely wrong to accept that kind of time-consuming help without agreeing an hourly rate, so we did that, and she made some code changes which fixed my site promptly, efficiently, cheerfully and with warm good humour.
I’m not a newbie with Wordpress installations, but getting bbPress to integrate properly was just beyond me, and I couldn’t have done the fix that Chris did.
If anyone else is stuck on this particular nightmare, I’d recommend that you start by following the advice Chris gives in this article (which did actually get the sites integrated for me) and then ask her to help you troubleshoot if you’ve got any further problems.
As far as I’m concerned, she would have been cheap at twice the price, because I now have a properly working site…:-)
June 2nd, 2009 at 6:33 pm
You have just been knighted by an Englishman living in Ireland.
Serious good information sir.
I can go to bed now that it’s sorted (7 hours straight trying to figure it out!).
THANK YOU no end!
June 2nd, 2009 at 6:36 pm
You’re quite welcome, Adam.
Signed,
MS. Chris =D
June 4th, 2009 at 8:17 am
Seldom have I experienced as much anxiety as getting to #45 and #46 in the list. I’d tried the install setup process six times prior and didn’t have any luck. After deleting everything last night and starting fresh this morning, I could feel the tension as I logged out and back in at #45. Okay, that worked. On to #46. Browser was running a bit slow, so I felt the panic creep in. But alas, it worked!! So, out to you go my heartfelt thanks for making such a thorough guide. Keep up the great work!
I’m now slowly backing away from my computer… backing away… backing away…
June 4th, 2009 at 8:20 am
Michael, I’ve SOOO been there. That’s why this tutorial is sitting in front of you. And that slow lag… Oh man!!! Your heart rises into your throat and your stomach drops to your feet and in your head you’re just pleading “oh please please just work!!!”
Yes.. back away… slowly back away. =D
June 4th, 2009 at 8:49 am
I was also using this wiki at UMW Blogs as a guide (I used to work with the folks who wrote it, including Jim Groom). Wasn’t sure if you were aware of it, and perhaps would be interested in contributing to its development along with your guide?
http://umwblogs.org/wiki/index.php/Integrating_WPMu,_BuddyPress,_and_bbPress
June 7th, 2009 at 6:22 pm
Hi easybutton,
I’m having trouble with your walkthrough at step #15.
I do not see a dropdown menu where I can select a username for bbPress.
I’m using Buddypress 1.0.1, bbPress 1.0 RC1, and WPMU 2.7.1.
Any help is appreciated!
June 7th, 2009 at 6:28 pm
Ray, first of all, as far as I know, that version of bbPress won’t work with BuddyPress. Not if you intend to use the BuddyPress groups. So, my suggestion to you would be to download version Alpha 6. You can get it from here
To start the installation over, simply delete the bb-config.php from the forums folder and delete (drop) anything that’s in your database that starts with bb_ (assuming you left that prefix alone during install)
Now, if you’ve simply stopped where you are, at step #15, and you’d like to give that version of bbPress a shot, then pick a NEW name and put it in that box. Don’t use an existing name! Use a new one.
Good luck and let me know how it goes. =D
June 7th, 2009 at 6:31 pm
Also, if you do choose to use the newer version, remember on step 42 that the name will not be admin. It will be the new name you’re choosing on step 15. =D
June 7th, 2009 at 8:19 pm
Hi Chris,
Thanks for those quick replies!
I tried using bbPress 1.0RC1 with your instructions and failed to get the integration working, even when trying to manually create the bbPress keymaster.
So I downgraded to alpha 6, followed your clear instructions and it works flawlessly!
The main problem with RC1 is it doesn’t detect or create the “admin” keymaster as in alpha 6.
I’m guessing a lot of people are going to be using bbPress alpha 6 for awhile until it is to get everything working correctly on bbPress 1.0RC1 and up!
June 7th, 2009 at 8:27 pm
I think the biggest problem with that new version is it doesn’t have that xml rpc thing. (or does it?) That’s what allows the 2 scripts to talk back and forth.
But anyways, I’m glad you were able to get it working. =D And thanks for coming back to let us know.
June 8th, 2009 at 4:45 am
This post is a “gem”. Good job! Everything was straight forward as what we all need.
You even guess I was logged out at step 37!
LOL! Thank you so much!
June 8th, 2009 at 5:38 am
Hi all
Followed all the instructions and just cna’t get the cross login to work.
Only difference from above instructions is that I am using the latest BuddyPress 1.0.1 version instead of 1.0 - would that matter?
Should I install 1 then upgrade this to 1.0.1?
Many thanks
June 8th, 2009 at 7:14 am
Just a follow up to earlier post - all works perfect with the EXACT 1.0 BuddyPress version so thank you very much for the details instructions!
Last question for now - have others updated BuddyPress to 1.01 using the auto updater ok?
Thanks
June 8th, 2009 at 7:54 am
Mike, so glad to hear it worked for you. =D
Andy, sorry but I personally have no idea about the auto upgrade. I did download the 1.0.1 version and install it fresh & everything seemed to work fine.
June 14th, 2009 at 9:27 pm
worked like charm. thanks for putting it together.
June 16th, 2009 at 5:00 pm
As I was working through this, I was thinking about how well-written it was and how I needed to thank you when I got it to work. Then it didn’t. After a few minutes of disappointment, I realized I never re-uploaded the edited config files. Then I did, and it worked perfectly.
So, thanks. It’s rare you find such a literal, comprehensive guide like this, let alone one that works flawlessly. Thanks again.
June 16th, 2009 at 8:44 pm
Pand, thanks for checking it out and leaving a comment for us. =D
Josh, lmao! You don’t know how many times I’ve done that myself. After about the 10th time of doing it, I added the “don’t forget” message at the beginning of the tutorial. And I STILL forget to do it all the time. Thanks for leaving a comment & letting us know the steps worked for you. =D
June 22nd, 2009 at 9:16 am
Hey Chris,
Can you verify something for me with your BP and bbPress setup?
I am using BP 1.0.1 and bbPress 1.0 alpha 6.
When a WPMU site administrator joins a group in BuddyPress and makes a group forum post in BP, in the bbPress admin area, it shows the user as a regular member, instead of a Key Master (or whatever role you setup in bbPress’s user role map to sync with Wordpress).
The only person who seems to be a Key Master is the bbPress user who is integrated with BuddyPress.
Is this the way it is supposed to work currently? Or am I doing something wrong?
June 22nd, 2009 at 9:27 am
Ray, that seems to be right to me but I’m very seriously not sure!! This might be better answered either in the BuddyPress forums or the bbPress forums. All of my sites are offline right now or I’d go check. Sorry I can’t be of more help.
And, though it does seem to be the way I remember it working, now that I think about it, that’s kind’ve stupid isn’t it? LOL
The only thing off the top of my head that I can think to have you check is step #23.
June 23rd, 2009 at 3:02 pm
Step #23 is all defined… I have administrator set up as key master. Editors are set up as moderators. The rest as members.
However, that isn’t reflected in the role map.
Hopefully someone else in this comment area has the same problem as me!
June 29th, 2009 at 8:36 pm
Hi there,
Despite your thorough, complete and detailed tutorial I still cannot access my forums while being logged to BP.
I am using WPMU 2.7.1, BP 1.0.2 and BBP Alpha 6.
At first I realized I messed up the 7 key step, after correcting step 30 and modifying my bb-press.php I access forums after being logged to BP and everything is OK. Problem begins when I want to access any post, that is when I need to login again.
Any hint ? Thanks, regards.
June 29th, 2009 at 8:42 pm
JoSe, Could you enable registration so I can create an account & look at a couple of things? =D
I assume you were just shortening the file name, but just to make sure, you were editing a file called bb-config.php, not bb-press.php, correct?
And, you uploaded all of your edited files, right?
June 29th, 2009 at 8:45 pm
Sorry, I meant bb-config.php instead of bb-press.php
Now I remember that after installation (that went smooth n´easy) and looking for THIS STUFF in step #31,32 I found only three iterations of THIS STUFF define code and not four as you stated. BB_NONCE_KEY had no “THIS STUFF” text, just ‘put your unique phrase here’ text. Am I clear or do I sound too foreign ? ;-P
June 29th, 2009 at 8:48 pm
Did the wp-config have all 7 keys? If it did & you copied over the 3 in the bb-config, then you should be just fine.
As long as the auth codes in wp-config & bb-config match exactly, that part should be okay.
June 29th, 2009 at 8:57 pm
There, can you subscribe ?
June 29th, 2009 at 9:15 pm
JoSe, check your mail via your buddypress setup. =D
July 1st, 2009 at 1:23 pm
Forgot to say: THANKS !!!
July 1st, 2009 at 2:43 pm
[...] うまくいったので、手順を書いておきます。 参考にしたサイトはここ 解説を僕が後でもわかるように書いています。 [...]
July 2nd, 2009 at 5:36 pm
[...] It seems most users of BuddyPress use this. Step by step instruction is provided at Integrating BuddyPress 1.0, WPMU 2.7.1 and bbPress Alpha 6. [...]
July 3rd, 2009 at 9:30 am
Hey Chris,
bbPress 1.0 is officially released!
Looking forward to your updated integration tutorial
July 3rd, 2009 at 9:35 am
Cool beans, Ray. Thanks for the heads-up on a new bbPress stable release. Hopefully some of you are still subscribed to the comments. Does anyone have suggestions on what might make a 2nd tutorial easier to follow? If you do, you can either comment here or email me at admin [at] theeasybutton [dot] com =D Thanks again, Ray.
July 3rd, 2009 at 10:49 pm
I’m still subscribed
I didn’t have a problem with your first tutorial.
It was pretty much flawless! Very detailed!
Maybe include screenshots for those visually-inclined?
July 5th, 2009 at 1:09 pm
Hey Chris,
Just wanted to say I’m up and running on bbPress 1.0!
Here’s what I did:
http://buddypress.org/forums/topic.php?id=3444#post-18910
Let me know if this works for you. Feel free to adapt these steps to an even, easier tutorial
July 12th, 2009 at 5:18 am
I am near the launch of my site and just realised my previously working tight integrationg between BuddyPress and BbPress is suddenly broke
I am seen to be logged in when I head across to the forums when already logged in as admin on WordPress Mu / BuddyPress but then if I click on the Admin link (forums/bb-admin/) I get redirected to the forums page?
If I then log out of the forums and re log in as admin I can get into the Admin area.
The other issue I am facing is the groups and post that are made in BuddyPress are now not showing up automatically within my BBpress forums so I can’t admin these?
Anyone experience something like this?
I am on WordPress MU 2.7.1, BuddyPress 1.01 and BBPress 1.0-alpha-6 as per the instructions here.
Many thanks in advance for any help!
July 12th, 2009 at 10:37 am
Have you made ANY changes to the site since the time that you knew it was working? i.e. updating BuddyPress?
If not, the only thing I can think of is the problem/solution found in the post Why Do My BuddyPress Groups Keep Breaking?
July 12th, 2009 at 11:54 am
Hi Chris
Yep that bascially sums up what happened here - the WordPress MU (BuddyPress) admin account password got changed and I forgot to set it again!!!! Idiot
I am however still getting some issues where I have to log out of the forums and re log in to get into the admin bit and it’s nothing to do with my browser cache as I have tested in Fireofx, IE and Safari - very stange.
I can however just about live with this for now but hopefully when I bite the bullet and update WordPress MU, buddyPress and BBPress it will all play nicely - one can hope anyways!
Thanks for the great tutorial again and the quick reply
July 12th, 2009 at 11:59 am
Don’t call yourself an idiot cuz that makes me an idiot too. LOL
Are you using just the 3 lines from my tutorial in your config file or are you using 5 or 6 that come from the bbPress integration plugin? Sometimes people install that plugin thinking they need it, but for alpha 6 you don’t. And one of those cookie settings (not sure which yet cuz I haven’t had the time to investigate) will make it so you can’t log out from the other script.
July 12th, 2009 at 12:07 pm
lol @ idiot
I am using the following (7) and their equivalent values are identical in both config files:
BB_AUTH_KEY, BB_SECURE_AUTH_KEY, BB_LOGGED_IN_KEY, BB_NONCE_KEY, BB_AUTH_SALT, BB_LOGGED_IN_SALT, BB_SECURE_AUTH_SALT
The log in and out WAS working fine both ways so not sure what has changed…
My only hunch is when I am in the WordPress Integration tab of the BBPress site my WordPress “auth” cookie salt, WordPress “secure auth” cookie salt and WordPress “logged in” cookie salt look like they are now the default values so I might need to genrate some new ones in here and past them into wp-congif.php - might that help?
July 12th, 2009 at 12:13 pm
Actually, for BP 1.0.1 you MIGHT need to go ahead and use the bbPress integration plugin. That’ll give you a bunch more codes that you can try to use to get it working. What I usually do is install it, get the codes it wants me to use and then uninstall it. And sometimes you need the version key.. sometimes not.
As of now, there’s no real “this is exactly how you should do it & exactly how you should configure everything” info out there. It’s sort’ve trial an error. Hopefully that’ll change soon.
And FYI - Don’t upgrade your WPMU to 2.8.1 or everything will crap!!! LOL
July 12th, 2009 at 2:14 pm
I have the BuddyPress Support Plugin 1.0-RC1 enabled within BBPress but am now running BuddyPress 1.01 so maybe the version differences might cause these random issues…
I have not come across the bbPress integration plugin’ so will do some reading now
I am definitely holding back from 2.81 for several weeks until the dust settles and I haven’t even moved up to 1.02 BuddyPress yet due toi worrying all my hard work will get wiped
July 12th, 2009 at 2:36 pm
The plugin is here
And as far as I remember, that 1.0-RC1
July 12th, 2009 at 2:37 pm
Crap… how’d I do that? LOL
Anyways, that plugin isn’t needed with anything higher than BP1.
July 12th, 2009 at 2:53 pm
I should clarify what I just said. The bbPress integration plugin is very useful for getting the cookie settings to add to your config files. It can be found here
The bbpress enable plugin that comes with buddypress is the one that’s not needed above BP1.0
July 25th, 2009 at 9:20 am
Are the steps still the same if i use the latest version of bbpress with wpmu 2.71 and bp 1.01?
July 25th, 2009 at 9:52 am
I’ve written a more updated tutorial that should work for those versions. It’s Here
August 19th, 2009 at 4:05 am
worked “almost”: when logged into wpmu I am also logged into bbpress but not the other way around
any ideas what to check?
btw. not runing buddypress, just bbpress and wpmu
August 19th, 2009 at 4:05 am
oops, adding this step did the trick:
$bb->bb_xmlrpc_allow_user_switching = true;
August 19th, 2009 at 4:06 am
ok, not really.
on the frontend of my main blog it seems I am logged in but if I click on any back end menu, it asks for login
September 3rd, 2009 at 11:53 pm
Hey Chris great tutorial everything was going smooth for a little bit until I realized I had a similar problem to Philip John I try to post to a group forum and it well not let me however it’ll make a forum on the main forum site. Looked all over and still no fix I then was going to try Burts XMLRPC debugger on the buddypress forum that was posted but unfortunately his site is down or something went wrong it just says can not find address. Well I checked philip john’s site and his forum for groups seem to be working did i miss something here or could you fill me in on your solution you guys came up with. Thanks fro any guidance to a solution and for making a easy to follow tutorial, Gotta love em!
Aaron.