Info
- 13 posts
- 3 voices
- Started 2 years ago by Jan_d
- Latest reply from KillerSneak
- This topic is not resolved
Cookie Integration only one way
-
- Posted 2 years ago #
Hello bbPress Community,
There is a Problem with the login integration between my WordPress 2.8.4 an bbPress 1.0.1 installs:
Users registring on WordPress exist as users on bbpress.
Users logging in bbPress are logged in in WordPress as well,
BUT Users logging into WordPress don't logg in to bbPress?Everything else works fine, as far as i can tell.
I noticed that the last number from the wordpress_logged_in_ cookie is different from all the other cookies:
wp wordpress_logged_in_b9e4100f9ddb8ade6a4b50cd6a25bf22 Jan%7C1251890826%7Caea7ac79b7c18706a58b93d3d209bad8
bbp/bb-admin wordpress_b9e4100f9ddb8ade6a4b50cd6a25bf22 Jan%7C1251890826%7C6bd72feec0bc4aadc7e561fb3c59798a
bbp/bb-plugins wordpress_b9e4100f9ddb8ade6a4b50cd6a25bf22 Jan%7C1251890826%7C6bd72feec0bc4aadc7e561fb3c59798awp wordpress_b9e4100f9ddb8ade6a4b50cd6a25bf22 Jan%7C1251890826%7C6bd72feec0bc4aadc7e561fb3c59798a
wp wordpress_b9e4100f9ddb8ade6a4b50cd6a25bf22 Jan%7C1251890826%7C6bd72feec0bc4aadc7e561fb3c59798aCould this be the Problem? If so, where can i change this?
Both Logged_in_salt in the backend panels and (BB_)LOGGED_in_KEY in the config-files of bbp and wp are the same.
Any help is appreciated.
thanks, Jan
-
- Posted 2 years ago #
Install this: http://wordpress.org/extend/plugins/bbpress-integration/ get the info
example
define( 'COOKIEHASH', '1111' ); define( 'COOKIE_DOMAIN', '.website.com' ); define( 'SITECOOKIEPATH', '/' ); define( 'COOKIEPATH', '/' );put it in your wp-config.php after
<?then put it in your bb-config.php without the cookiehash line.
define( 'COOKIE_DOMAIN', '.website.com' ); define( 'SITECOOKIEPATH', '/' ); define( 'COOKIEPATH', '/' ); -
- Posted 2 years ago #
Thanks, but that did not work. I allready had bbpress-integration installed.
What did you mean by "get the info"?
I copied your code into the config-files. Nothing changed.
Any other ideas?
-
- Posted 2 years ago #
Don't copy my code copy the code you get from the plugin.
-
- Posted 2 years ago #
The only code i got from the plugin was
'define( 'COOKIEPATH', '/' );'
which i did put in the config file before starting this thread.
-
- Posted 2 years ago #
ah. sorry about that, I keep forgetting I'm using WPMU. Did you... match all the security keys?
-
- Posted 2 years ago #
Did you mean this:
'/*You will also have to manually ensure that the following constants are equivalent in WordPress' and bbPress' respective config files.
WordPress bbPress
AUTH_KEY <=> BB_AUTH_KEY
SECURE_AUTH_KEY <=> BB_SECURE_AUTH_KEY
LOGGED_IN_KEY <=> BB_LOGGED_IN_KEY */'If so, then yes ...
-
- Posted 2 years ago #
The only thing I can think of it might be is just clearing your cache on your browser. It happens on FF. If it's happening to other users then I don't know.
-
- Posted 2 years ago #
I am bumping this since I still have no clue what is wrong and the related threads in the forum have no Answers for me ...
is it because one cookie starts with:
wp wordpress
and another time the same cookie starts with
wordpress
only
???
if so, where can I change this?Please help!
-
- Posted 2 years ago #
if you mind giving me access I'll look at it. Email me at my user name at gmail dot com.
-
- Posted 2 years ago #
I'm not an expert but this is what I noticed
WP-CONFIG
you had..
/** Braucht man für die Cookie-Integration von bbpres laut bbpress-integration */
/*define( 'COOKIEHASH', '1111' );*/
define( 'COOKIE_DOMAIN', '.[gerikgtookout].de' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );when you're using WPMU you need those when you're using WP you just need the cookiepath. It was probably my fault because of my previous posts.
the cookiepath must be at the top for it to work, I don't know why but it does. I added define( 'COOKIEPATH', '/' ); to the top
The keys I took from http://api.wordpress.org/secret-key/1.1/salt not http://api.wordpress.org/secret-key/1.1/ which they recommend. It has 8 keys. I also copied the same keys into the bb-config file but added "BB_" to the beginning.
BB-CONFIG
It looks like you were using an old config file (you must of upgraded?) I took the config file from the new version and just plugged in your information. I added define( 'COOKIEPATH', '/' ); to the top just like WP. I also added if (file_exists('../wp/wp-load.php'))
require_once('../wp/wp-load.php'); for deeper integration (for you to use WP functions in bbPress) which I think you were already, or trying to. I logged into your admin section in bbpress and notice you wrote "http://[gerikgtookout].de" as your wordpress URL but it should of been "http://[gerikgtookout].de/wp" clicked save and everything worked fine. -
- Posted 2 years ago #
Hi gerigk,
I just wanted to say thanks again for your awesome help with my login-problem.
-
- Posted 2 years ago #
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');that was needed in your wp-config.php If you want real deep integartion there will be allot more work. I just fixed a long running problem of using all bb-press plugins in wp, i managed to do it after working on it for 4 days
test2.cell-systems.net .. I'm now able to call plugins from BB in WP (like the BBpm in the header and such)
I'm thinking about posting my fix / work but.
The above isn't (post by gerikg) as you want to integrate bb-press into WordPress and not the other way around. I'm not posting all the work i have done yet btw as i want to run the test site for atleast 2 weeks (to see if any problems appear)
-
You must log in to post.