Info
- 48 posts
- 24 voices
- Started 2 years ago by alpacino85
- Latest reply from Skip Savage
- This topic is not resolved
wp integration cookie does not work
-
- Posted 2 years ago #
gerikg, thanks so much for clearing things.
there is 1 problem though, when you login/logout with bbpress everything works, you automatically logged in/logged out to wordpress too.
but when you login or loggout from wordpress it does no effect on bbpress.
Do you have any idea with this issue? -
- Posted 2 years ago #
OK, I've followed the steps quite a bit, and no integration. Oddly enough, when one is signed in, the other is automatically signed out - you can't be signed into WPMU and bbP at the same time. Step by step, this is what I did:
1 When installing wordpress/bbpress do NOT use "www." Example: use bbpress.org not http://www.bbpress.org and use the same database. You do not need to change the prefix, I prefer you don't because you'll run into problem later.Done.
2 Make sure bbpress is in a folder in wordpress. example: wordpress/bbpress/ not on the same level.Done. WP is in root folder, bbP is in \forums
3 The folder does not have to be named bbpress, most people make it forum or forums. *After successfully installing both programs open wp-config.php (in the wordpress folder) file. Around line # 45-# 48 you'll see define('AUTH_KEY'.... go to this URL (https://api.wordpress.org/secret-key/1.1/salt) and get the EIGHT keys and REPLACE the FOUR keys that are there. Save. Keep the file open for now. 4 Open bb-config.php (in the bbpress folder) do the same thing here. With the SAME keys you put in the wordpress file put in the bb-config file around line # 41-45. You have to add BB_ to the front of the names. Example: BB_AUTH_KEY to all eight. Save. Keep the file open for now.Done.
5 Clear your cache on your browser. Log into your bbpress dashboard and go to Settings->WordPress Integration-> WordPress Administrator should be keymaster. Every other option should be member for now. WordPress address (URL) should be the URL again NO www. Blog address (URL) the same as before. The last 3 should be LOCKED if not repeat the steps 3&4.Done. Address is http://analyticspros.com.s70609.gridserver.com/
6 Login to your wordpress dashboard. Go to Plugins->Add New-> search for "bbPress Integration" it should be the first one. Install it and activate. 7 Go to Settings-> bbPress Integration. Enter the bbPress URL without the www. Your plugins URL leave blank. Click on Save Changes. On the bottom box you'll see some text copy it. Most likely it will say "define( 'COOKIEPATH', '/' );"Done. This is the code:
define( 'COOKIEHASH', 'c89fdd6b36f463ff1f02811d64f2f597' );
define( 'COOKIE_DOMAIN', '.analyticspros.com.s70609.gridserver.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );8 Paste the line in wp-config.php file around line # 16 (MUST be on top. Don't know why) and paste it in bb-config.php in line # 13 (Must be on top). Save. You can delete the plugin, it's no longer needed. 9 Clear your cache on your browser and you're done. Known Problems *Two different database, one for WP and one for BBP, does not always work. *Changing the database prefix. There are tutorials out there that tell you to do it, just don't. *Hosting companies that offer free databases, have buggy databases. *BBpress not being in WordPress folder. I don't think the plugin takes that into account. *When you upgrade from an older version (wordpress/bbpress) the XX-config.php files are different than what you already have. Check wp-config.php against wp-config-sample.php & bb-config.php against bb-config-sample.php should be fairly simple.None of the above problems apply to me. Any ideas?
-
- Posted 2 years ago #
I am having the same problem as Brevica with WPMU 2.9.1 and bbPress. Integration just isn't working properly. The cookies being generated are fine, but nothing in bbPress works as it should. Specifically though anyone on the WPMU site can login, their roles do not map. The result is that no one has "keymaster" access to administer bbPress. All of this is being done with a fresh install of both WPMU and bbPress.
-
- Posted 2 years ago #
Using WP 2.9.1 and bbPress 1.02 and I also cannot get integration.
Followed the steps in this thread, but I am getting the same symptom as most:
Login WP -> knocks me out of bbPress
Login bbPress -> knocks me out of WP...user access/roles share across both fine, however.
-
- Posted 2 years ago #
WPMU is a little different
Try these steps.
http://bbpress.org/forums/topic/login-integration-issues-bbpress-and-wordpress-mu#post-62274Someone I was helping said that php5 must be used.
-
- Posted 2 years ago #
Works! Had the same problem of WP & bbPress login knocking each other out but followed the steps of gerikg in this post and somehow overlooked (or wasn't clear enough to me) these:
1. (re. step 4) make sure you prefix the KEY variables with "BB_" when copying to bb_config.php (AUTH_KEY => BB_AUTH_KEY, SECURE_AUTH_KEY => BB_SECURE_AUTH_KEY, LOGGED_IN_KEY=> BB_LOGGED_IN_KEY ...)
2. in bbPress WordPress Integration (under bbPress Settings) copy in the values into 3 fields of Cookies directly from the keys that were generated for you (WordPress "auth" cookie salt = AUTH_SALT, WordPress "secure auth" cookie salt = SECURE_AUTH_SALT, WordPress "logged in" cookie salt = LOGGED_IN_SALT) (do not get the values from clicking on the link WordPress admin page, where I couldn't find all the values anyway) -
- Posted 2 years ago #
Eureka!
I upgraded my hosting to PHP 5 and everything works, now! For those hold outs who have done everything and still cant get integration.. ensure you're running php5.
-
- Posted 2 years ago #
This all works fine for me. However, I don't get any emails from bbpress or wordpress, including new user passwords, password resets, comments, etc. I've checked out past forum posts about that topic, and the latest I could find was a year ago, including a topic in which Sam Bauer says that the problem has been solved by adding a solution to the core package in the latest version of bbpress. any reason why integration would interfere with emailing? (i didn't test email anything pre-integration).
-
- Posted 2 years ago #
LizFilardi, doesn't sound like it has to do with integration. Reinstall bbpress and test it out first before integrating.
-
- Posted 2 years ago #
External Install...almost there.....
Login to WP as admin, click on forums (bbpress) tab and see that I am logged in to BBpress as roger|Admin|Log Out. (I am roger)
But it is only a "partial" login. If I click "roger", I go to profile page. If I click Admin, nothing happens!
But, there is a workaround.
If I logout and login at bbpress, then Admin takes me to dashboard.
Whoa, there is another problem. If I try to logout from bbpress dashboard, buddypress says page not found.
Workaround is to "visit site" and then I can logout of bbpress.
All of this is very weird behavior. Any ideas about what is going wrong?
-
- Posted 2 years ago #
Thanks gerikg!
I've been struggling with this aspect since I lost my WordPress virginity 3 weeks ago.
Wp 2.9.2
bb 1.0.2
PHP 5
all www's removedI had tried everything I could find in the forum and new I was getting close when I could log on to Wp but not BB and vice versa. Then I found this thread followed gerikg's instructions and could then log on to Wp and go into Dashboard, but when I visited the site, it showed me as logged off Wp and logged on to BB.
I then moved define( 'COOKIEPATH', '/blog/' ); from BELOW define cookies to LINE 16 and still the same. Finally I changed cookie path to define( 'COOKIEPATH', '/' ); and now I can log in or out of either Wp or BB and it logs me in/out of the other so I am very happy to have resolved finally but will proceed with caution when the next upgrade comes along.
It should be noted that bbPress Integration suggested define( 'COOKIEPATH', '/blog/' );
Also note that I couldn't get the keys to lock as described in gerikg's notes but all keys definately the same in both xx-config.php's
Finally, it was a nightmare and almost gave up but as someone already said I did learn a lot. Thanks
-
- Posted 2 years ago #
gerikg;
I've followed your instructions to the T - I'm getting the issue where logging into one system logs you out of the other.
I am using WP 2.9.2 (not MU) and bbPress 1.0.2.
Some noted things:
- in the wp-admin/options.php page, there is no secret_auth_salt variable
- the bbPress integration plugin only generated one line of code ( define('COOKIEAUTH', '/'); ) rather than Brevica's 4 statementsEverything else looks normal as per your instructions.
Other possibly useful info:
forum - http://monucs.aicsa.org.au/forums/
blog - http://monucs.aicsa.org.au/running PHP 4.4.8/MySQL 5.0.77 - these can't be changed
-
- Posted 2 years ago #
I'm struggling with this as well. The difference is I installed a vanilla WordPress 2.9.2 and bbPress 1.02 as a test and got the integration working easily. However I have a blog I just upgraded from WordPress 2.8 to 2.9.2 and from bbPress 1.0 to 1.02 and nothing I do will make it work. I can't see any particular difference and I'm just about to die of frustration here.
-
- Posted 2 years ago #
hi guys,
thanks gerikg's instrucition,very helpful!
i followed gerikg's instruction,but meet a problem.
on task 7 after i clicked on save changes,
i should get the code below:define( 'COOKIEHASH', '9ff1a614da865684d07223b202d18708' );
define( 'COOKIE_DOMAIN', '.10.10.1.20' );
define( 'SITECOOKIEPATH', '/wordpressmu/' );
define( 'ADMIN_COOKIE_PATH', '/wordpressmu' );
define( 'COOKIEPATH', '/wordpressmu/' );but actually i lost
define( 'ADMIN_COOKIE_PATH', '/wordpressmu' );so when i log into bbpress then
i can log into wordpressmu automatically
but i cant log into wordpressmu admin automaticallydoes anybody have an idea what i have missed?
your help will be much appreciated.thanks guys
-
- Posted 2 years ago #
Buddypress is a little tricky. What do you mean `but actually i lost
define( 'ADMIN_COOKIE_PATH', '/wordpressmu' );`? -
- Posted 2 years ago #
hi gerikg,
thanks for your reply.by saying `but actually i lost
define( 'ADMIN_COOKIE_PATH', '/wordpressmu' );`?
i mean:
on task 7 after i clicked on save changes,
i got four lines (notfive as i wrote above)
define( 'COOKIEHASH', '9ff1a614da865684d07223b202d18708' );
define( 'COOKIE_DOMAIN', '.10.10.1.20' );
define( 'SITECOOKIEPATH', '/wordpressmu/' );
define( 'COOKIEPATH', '/wordpressmu/' );i think this is the resean that
when i log into bbpress then
i can log into wordpressmu automatically
but i cant log into wordpressmu admin automaticallyi think it has nothing to do with buddypress.
what do you think?
by the way
you can check this out ,it seems that some guy have met the same problem:
http://wordpress.org/support/topic/298537/page/2?replies=47
scroll down to the middle of the page (mjjinvincible's post)thanks
-
- Posted 2 years ago #
Okay what I noticed is the only time you get ADMIN_COOKIE_PATH line is when your WP is in a folder:
site.com/folder/ wordpress and site.com/folder/forums bbpress.
then the result will be ADMIN_COOKIE_PATH is /folder as for an answer I still haven't been able to try it to tell you. -
- Posted 2 years ago #
Thanks Coffee4cr and kingkong954!
Changing from PHP4 to PHP5 worked for me.
I then deleted these lines from both wp- and bb-config.php files (earlier "fixes")
define( 'COOKIEHASH', 'dsfasdfasdfasdfas' ); define( 'SITECOOKIEPATH', '/' )and it still works.
-
You must log in to post.