I am having the same problem and I do have the <?php if ( is_bb_profile() ) profile_menu(); ?> in the header, it just resets, if i remove the require_once(‘../wp-blog-header.php’); it will log me in, other wise it just refreshes as if im not logged in.
I have wordpress 2.6 and bbpress 1.0 alpha. The bbpres is installed in a subfolder of wordpress instalation. All works very fine. But when I try get access to wordpress funcions I add the following code in the first line of bb-confing: require_once(dirname(__FILE__) . ‘/../wp-blog-header.php’);
After this, when I try to login in the forum, I see a “Page not found” page. If I refresh the page, it appears as if I’m not logged in, but when I am in the blog, I’m logged in.
Looks like the key I posted in the beginning there is not properly escaped within code blocks either. You can see the original key here, and how I posted it. If you check the source of that post, you can see how bbPress parsed it.
More info here, in the original format:
http://www.chrishajer.com/bbpress/wp-key.txt
d\EtHv;aK&V9;)L@rZ7-{P~u}~C~”N4O]=Cnw1pl=c2 !6-~b6!VHt9n;>&Tj-
That was my AUTH_KEY for WordPress 2.6.2 which was working fine. When I tried to integrate bbPress, it apparently read that key, but on step three of the installer, I saw this error:
http://www.chrishajer.com/bbpress/installer-step-3.png
As you can see, part of that key is displayed there (&Tj-) and I suspect it shouldn’t be, and was not being used properly in this case.
I wonder if this is why so many people are having log in/log out issues with WordPress integration. I am going to try a plain vanilla key (alphanumeric only) and see how that works.
It’s not a secret, it’s just not bbPress specific, it’s PHP. You need to loop through the array that is returned by that function. If you’re not comfortable learning enough PHP to accomplish that with the function, maybe you’d be better off the the widget. That’s why WordPress created widgets in the first place. It’s for people who don’t want to mess with PHP code. It’s drag and drop. Maybe enabling widgets in your theme would be easier than learning the proper way to loop through this array.
Since I am the only one that will be posting on wordpress I decided not to use integration, i am using wordpress 2.6.2 with the alpha downloaded yesterday. If I do not use the require once in the config to use wordpress functions in my header, sidebar, footer, it works just fine.
What version of bbPress are you using, and are you integrated with WordPress?
Follow the instructions in the last section of this page:
https://bbpress.org/documentation/integration-with-wordpress/#func
You want access to the WordPress functions get_footer() and get_header() so you need to include WordPress in your bbPress.
There is a problem with cookie sharing mainly in that WordPress fails to (because it doesn’t know it has to) set a cookie required for access to the bbPress admin area.
But wordpress seems to set a cookie that both bbpress and wordpress recognize (other than not being able to log out via bbpress), and bbpress sets a cookie that only bbpress recogizes. Does bbpress delete/overwrite the wordpress cookie, thus causing wordpress to be logged out after logging in with bbpress?
There is a problem with cookie sharing mainly in that WordPress fails to (because it doesn’t know it has to) set a cookie required for access to the bbPress admin area.
I’m pretty sure that the only way to fix this is with a plugin for WordPress. I’ll have to work one up. When I do I’ll post it to the WordPress plugin repository and announce it on the forum here.
I would like to implement my current header.php from wordpress at http://www.mypricesavings.com and footer.php as well to my forums http://www.mypricesavings.com/forums however I am not sure, I would also like to keep the current styling of the stuff sandwiched in between the header and footer that is currently there, im ignorant to this stuff however, I am good at following babysteps that are step by step if anyone has way to do this and keep the styling of the two merged to one
Same here for the logout issue…
Well, at least I’m not alone in this issue.
I haven’t made a version of the theme available anywhere yet. I modified the Kakumei theme just for this site. Maybe when BBPress 1.0 comes out I will make a neutral version of the theme for everyone. I could do the same for the WordPress theme as well.
Same issue here. Btw, is this theme of yours available anywhere?
Hello, I have a little issue with logging in between wordpress and bbpress at my website http://www.ridelegend.com/ & http://www.ridelegend.com/community/
1. When I log in at BBpress it logs me out of WordPress. I can access the BBpress admin page.
2. When I log in at WordPress it logs me in at both WordPress and BBpress, but I cannot log out at BBpress. I can access both the bbpress and WordPress admin panels fine though, and logging out at WordPress works.
I have no plugins active other than akismet. My custom theme is based on the alpha 1 theme, but I modified to match the alpha 2 theme via the list of changes in the tracker. Is this just a glitch with alpha 2 or is there something I can do?
Thank you!
Hi.
I recently installed bbPress on my WordPress site here at http://agitainment.com/ics/forum/.
I’ve built a theme based on 1col_fixed 1.1 (I believe it’s kakumei with most of the CSS stripped out). In any case, when I go to my forums I can see my Gravatars and default avatars in kakumei, but when I switch on my theme they disappear.
Is there a php file I’m missing or a block of code somewhere I need to copy over from the kakumei theme to get these to work? If so, where should I put the code?
Thanks!
WordPress 2.6.2 + bbPress 1.0 Alpha 2. I have done the cookies config, auth_salt, logged_in_salt, etc.
When I log in WordPress, I am also log-in in bbPress, but cannot open bbpress’ control panel, and also cannot log out in bbPress; When I log in bbPress, it seems normal, I can open bbPress’ CP, but not log-in in WordPress.Only when I log out WordPress, I can also log out bbPress.
How to resolve?
@doyle640
If you mean basic user database and cookie sharing then yes (and it should have worked in 1.0-alpha-1 as well). If you mean loading WordPress inside bbPress, then no – that is still partially broken.
@beernews
I hope not, although it’s getting closer, it’s not production ready yet.
Did you put the additional authorization keys and such that are in 1.0’s config into your wp-config? As far as I can tell, that stuff is new and is the only change I’ve noticed.
I just recently installed and integrated WP 2.5 w/ a fresh install of bbPress 0.9.0.2. I followed the directions here, http://bbpress.org/documentation/integration-with-wordpress/ except bbPress isn’t picking up the WP cookie and vice versa. You can see by going to my site and registering:
http://sienasaintsblog.com/
and the forum is here:
http://sienasaintsblog.com/wordpress/bbpress/
Can anyone assist? Thanks!
I have been ruuuning wordpress 2.6.2 and just installed bbpress 1.0 aplha 2 in about 10 minutes and it seems to work OK.
Yes it does – I installed aplha 2 in about 10 minutes and the login works. I need to test the registration but I’m sure that this will be OK.
You add all your wordpress settings when you install alpha 2 (it’s all form based).
Yes.
I tried upgrading to Alpha 2 and that didn’t fix the issue. I also made sure that the new secret keys and other login items in the bbpress config are set — and tried pasting them into wp-config.php, too. None of this seemed to address the problem.