I’ve checked and double checked all the steps to coodinating wp-config.php with bb-config.php but no-go. I can only log into bbpress if I’ve already logged into wp, but even then it doesn’t let me into the admin.
One possible area of confusion, I couldn’t figure out how to get the .zip file that would display cookies to work. How is it supposed to be implemented?
I got the bookmark cookie check to work, but it gave a number of different sets of numbers.
/r__utmc=162181740
__utma=162181740.1942902695.1222437978.1224615332.1224620799.21
__utmz=162181740.1222437978.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
__utmb=162181740
wordpress_test_cookie=WP+Cookie+check
Which string is relevant?
Ooops – please see my conversation with Donncha in the ticket above.
The short story: defining COOOKIEHASH as md5(get_option(‘site_url’)) will work for the main blog but not any other blogs if you are using VHOST (subdomains).
There is a fix/hack: calculate the md5 hash of your domain, and use that value to define COOKIEHASH.
define('COOKIEHASH', md5('http://yourdomain.com');
No subdomains, no trailing slashes, will work fine.
You can also get this value from bbPress speedup settings, found at Settings, WordPress Integration, and the bottom of the page.
$bb->authcookie = 'wordpress_biglonghashvalue';
$bb->secure_auth_cookie = 'wordpress_sec_biglonghashvalue';
$bb->logged_in_cookie = 'wordpress_logged_in_biglonghashvalue';
In your wp-settings.php,
define('COOKIEHASH', 'biglonghashvalue');
I’m about this close to making my new forums live. I’ve got WP 2.6 and bbPress alpha tied in together pretty well, but they recently announced the lockdown on 2.7, which means that may come out by years end.
Has anyone started testing with 2.7 yet? I’m not asking if I should not go forward and get my forums started, just wanted to know what kettle of worms I was opening
musnake –
I think this must be a big source of the problem for MU and getting it to work with bbPress. And why some get integration to work (standalone) and other can’t (wpmu).
In the WP standalone install, it does indeed appear to be there (is that where you got the code above?).
In WPMU 2.6.2 (https://mu.wordpress.org/latest.zip) wp-settings.php, line 317:
// Used to guarantee unique hash cookies
$cookiehash = '';
/**
* Used to guarantee unique hash cookies
* @since 1.5
*/
define('COOKIEHASH', '' );
$wpdb->hide_errors();
if( defined( 'MUPLUGINDIR' ) == false )
define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );
if( is_dir( ABSPATH . MUPLUGINDIR ) ) {
if( $dh = opendir( ABSPATH . MUPLUGINDIR ) ) {
while( ( $plugin = readdir( $dh ) ) !== false ) {
if( substr( $plugin, -4 ) == '.php' ) {
include_once( ABSPATH . MUPLUGINDIR . '/' . $plugin );
}
}
}
}
Want to know the funny part? I actually debugged it instead of going to the source in WP standalone. At least I came to the same conclusion. This should probably be reported as an MU bug – I’ll let Donncha know.
Ok, I just reinstalled using seperate db’s this time (+WP integration). The installation process is very, very smooth with good feedback at every stage.
Again, I believe the install was successful.
Cache cleared etc. but numb ‘Add Forum’ button issue persists.
I am using the same filebase (with no PHP errors in logs) though.
The only blank spot I have in the install is:
>>>>>> WordPress "secure auth" cookie salt not set. which appears to be an acceptable state based on the doc’s.
The 6 session cookies are all suffixed with COOKIEHASH.
I am unable to create new fora as keymaster or Admin.
Can I provide any useful data?
Caught wearing my underwear on the outside. It doesn’t make me immune to cosmic cookie rays?
This was a cherry install so I didn’t have any experience with bbPress and its issues etc. The ‘add forum’ button issue existed before I added the quick fix…I found it on my first pass through the support forums trying to see how other WP2.6 success stories started out…
Did I mention that I have the bbPress files located in a subdomain called ‘forum’ i.e. mydomain.org/forum/ ?
I’ve just gone through the phpbbb vs SMF review again, just so I can get something going while these small things get cooked off, but I think I’ll stry bbPress as a stand-alone in its own db and integrate later…Do you see any drama with that path?
I just noticed that I didn’t add the SECRET_KEY value from wp-config.php (sic) to wp-settings.php as per a comment in that file…but it turns out that’s an artifact. Strike that.
These are some of the cookies that FireBug reports:
wordpress_logged_in_f004625b18565e7c579076261d01b3a5
myDomain.org 105 B /forum/ Session
wordpress_f004625b18565e7c579076261d01b3a5
myDomain.org 95 B /wp-content/plugins Session
wordpress_f004625b18565e7c579076261d01b3a5
myDomain.org 95 B /wp-admin Session
wordpress_f004625b18565e7c579076261d01b3a5
myDomain.org 95 B /forum/my-plugins Session
wordpress_f004625b18565e7c579076261d01b3a5
myDomain.org 95 B /forum/bb-plugins Session
wordpress_f004625b18565e7c579076261d01b3a5
myDomain.org 95 B /forum/bb-admin Session
wordpress_test_cookie
myDomain.org 36 B / Session
I’m checking…
Have you read this?
https://bbpress.org/documentation/integration-with-wordpress/#func
That allows you to use WordPress functions (like get_sidebar, get_header) inside bbPress.
There’s no way I know of to load bbPress in a WordPress page, or anything like that. It’s not a WordPress plugin.
Hey,
Is it possible to load bbpress inside wordpress ?
I am using bbpress (latest from trunk) + wp2.6.2
I have designed a theme for wp2.6.2. And my wp2.6.2 has a lot of plugins. I wish to load bbpress into wordpress. Is it possible ?
Nice layout, but isn’t it possible to change the URL structure? It would look a lot cleaner if it was rewritten.
Nice concept.
I’m away from WoW for 2 years now but it’s interesting to see that people still raid Naxxramas.
I’m using WP 2.5.1 and bbPress 0.9. I wasn’t able to get the logins to sync either, and so decided to revert to the more stable versions until that bug is worked out.
If you’re not trying to integrate then the WordPress version does not matter.
I installed 0.9.0.2 a while back and did not have that problem. Glad you got 1.0-Alpha working.
I’m not trying to have integrated users & logins between wordpress & bbpress.
Following my approach from above, I have been able to get bbpress 1.0-Alpha working without doing anything different than I did with 0.9.0.2
WordPress 2.6.2 and bbPress 0.9.0.2 are not compatible with cookies and logins. But I don’t think that would create this problem. Are you trying to have integrated users and logins between WordPress and bbPress?
Also, re: bb-config-sample.php, the web installer can take care of modifying the sample file and creating a bb-config.php. It didn’t used to do that, but it can take care of it now.
Hi,
Newbie setting up bbpress with integration to wordpress but coming across a problem.
Inatalled latest version of WordPress on Wednesday and BBpress yesterday but BBpress gives the following error when starting:
Parse error: syntax error, unexpected T_STRING in /websites/LinuxPackage03/xp/er/ie/xperiences.co.uk/public_html/xperiencesforum/bb-config.php on line 28
Line 28 of my bb-config.php file is:
$bb_table_prefix = ‘bb_xpe’; // Only letters, numbers and underscores please!
My forum site is:
http://www.xperiences.co.uk/xperiencesforum/
Any help resolving this would be welcome.
Many thanks
Catequil
Thanks Chris.
I’m really not too fussed whtehe or not there are spaces as they work.
The spaces probably activated my raticular activating system and impulsed me to write this topic
I’ve followed the installation instructions, including saving bb-config-sample.php as bb-config.php with the correct values (although it doesn’t say to do this in the bbpress installation instructions). When I go to the intended URL of the bbpress site I get the following error:
Fatal error: Call to undefined function: wp_kses_no_null() in /homepages/45/d144276697/htdocs/mysite.net/news/forum/bb-includes/pluggable.php on line 240
I have a wordpress installation in /news/ of the domain, and attempting to put bbpress into /news/forum/
WordPress: 2.6.2
bbPress: 0.9.0.2
Any thoughts?
I say “why restrict the characters in the login?” I would vote to leave them in. Most people won’t use them, especially if they’ve been around for a while and are used to no spaces in usernames. But why arbitrarily limit the characters in the username?
Just for information and perhaps integrity debates, I would like to tell you all that I currently only allow registration from WordPress.
I noticed a few messages about usernames with spaces and have found that WordPress allows registration with usernames with spaces, and bbPress does allow login with the same.
However, I have found that the general normal condition on the Net is that usernames do not have spaces.
This could be seen as a great advantage of WordPress and bbPress or it could disturb the status quo.
Everyone’s feedback would be appreciated.
I haven’t attempted this alpha 2 install yet, but I will sometime this weekend hopefully, however, in regards to the issue that bharatk was seeing in alpha 1… I was seeing the same thing. When integrating with WordPress 2.6.2, from the looks of it, you are only able to be logged in AND access the admin page of either WordPress or bbPress at one time. It seemed to work fine as a normal user to log into both entities at the same time and retain function, but I can double check that again before I upgrade. It just seems like the Admin functionality is limited to being logged in to either WordPress or bbPress at one time. If you log into one and then want to go to the other, you have to log out of the original one you logged in to. Let me know if you want any additional information before I upgrade and I can get it for you.
Looks great. What versions WP and BB are you using. If the most recent of each, how did you get the cookies to integrate? Right now, I and most other people it seems, can’t get it all working correctly. Logging in on one side results in only partial access and functionality in the other, it seems.
Here’s my recently launched WordPress/bbPress site.
http://nightsed.com/
http://nightsed.com/forums
The custom design is integrated between the two sites. I’m using several bbPress and WordPress mods, but there is also some custom php work.
Cheers!
To benefit fully from intergrating bbPress with my WordPress, I downgraded and went to WordPress 2.5.1 and bbPress 0.9.2. Now I know a plugin that allows you to display the last topics/discussion on your blog exists for bbPress 1.0, but I was wondering if something like this has been made for bbPress 0.9.2?
Thanks,
James
I have found a problem with the login between WordPress and bbpress. Alpha 1 didn’t have this issue.
It’s the same as @bharatk reported.