Skip to:
Content
Pages
Categories
Search
Top
Bottom

1.0 aphpa 2: WordPress & bbPress integration logins not being passed to each

  • I put this on the release topic but thought it would be easier for all to give it a new topic:

    With 1.0 alpha 2 I have found that the logins work independently for WordPress and bbPress when they have been integrated.

    So I can login into WordPress but also have to login to bbPress – the login isn’t remembered, and the same the other way aorund. When I login into bbPress, I have to then login into WordPress.

    But hey, at least the logins are being shared and this seems good enough for me to make the bbPress forums live.

    However there seems to be some partial login working between WordPress and bbPress as you will see as follows with respect to some analysis I did.

    I hope this is of some use to the team.

    LOGIN AS ADMIN:

    LOGIN ON WORDPRESS:

    Login OK and admin features OK on WordPress

    Not logged into bbPress (e.g. register link and login boxes appear)

    When trying to access /bbpress/bb-admin – redirected back to /bbpress

    Log out of WordPress and..

    LOGIN ON BBPRESS:

    Login OK and admin features OK on bbPress

    Not Logged into WordPress properly (e.g. comments section says login/register and no comments text area, register/login links appear in meta section)

    However, when trying to access /wordpress/wp-admin – appears as logged in as admin OK with all admin features in admin area only.

    LOGIN AS USER:

    LOGIN ON WORDPRESS:

    SAME AS FOR ADMIN:Login OK and admin features OK on WordPress

    SAME AS FOR ADMIN:Not logged into bbPress (e.g. register link and login boxes appear)

    When trying to access /bbpress/bb-admin – redirected back to /bbpress

    Log out of WordPress and..

    LOGIN ON BBPRESS:

    Login OK and profile features OK on bbPress

    Not logged into WordPress

    However, trying to access /wordpress/wp-admin – appears as logged in (obviously with no admin features).

Viewing 23 replies - 1 through 23 (of 23 total)
  • Sounds like a cookie problem.

    Have you made sure that your wp-config and bb-config have both defined the special keys like:

    AUTH_KEY

    SECURE_AUTH_KEY etc

    And of course the secret cookie key?

    I’ve chedked them about 5 times but with the hope that your suggestion and good energy might find an issue, I just checked them again but they are the same apart from the fact the the bbPress ones have BB_ before the variable names.

    WORDPRESS:

    define(‘AUTH_KEY’, ‘phrase 1′); //

    Change this to a unique phrase.

    define(‘SECURE_AUTH_KEY’, ‘phrase 2′); // Change this to a unique phrase.

    define(‘LOGGED_IN_KEY’, ‘phrase 3′); // Change this to a unique phrase.

    BBPRESS:

    define(‘BB_AUTH_KEY’, ‘phrase 1′);

    // Change this to a unique phrase.

    define(‘BB_SECURE_AUTH_KEY’, ‘phrase 2′); // Change this to a unique phrase.

    define(‘BB_LOGGED_IN_KEY’, ‘phrase 3′); // Change this to a unique phrase.

    Yeah the bb-config has to have BB_ defined, no need to change.

    Have you checked in your bbPress admin panel:

    Settings > WordPress Intergration

    That all the stuff it wants if filled in with correct information

    Yes…

    I’ve mapped the roles.

    I’ve set the wordpress and blog addresses which are the same.

    I’ve put in “auth” cookie salt.

    I have NOT put in “secure auth” as my WordPress admin options page did not have one

    I have put in “logged in” cookie salt.

    I’ve copied the foolowing to my wp-config.pgp file

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ”);

    and added the “Manual bbPress config file settings” to the bb-config.php file, however in this section it says “Afterwards, the settings in this form will reflect the hard coded values, but you will not be able to edit them here.”

    What is hard coded where? I didn’t see any difference to this page after adding these speedup settings to the bb-config.php file.


    Edward
    Member

    @edwardright

    Same issue here…

    Slightly off topic, but im not sure if having a space in your keys is a good idea. Might want to remove the space in them. If you do make sure your wp-config and bb-config match after the changes

    Radium,

    Are you suggesting we go back to alpha 1?

    Well, the issue has not been resolved and it is a problem with Alpha 2. For now I myself am going to stick with Alpha 2 until an update (or plugin for wordpress as the keymaster mentioned in the linked topic above) is released. This problem would probably require some code modification, but I don’t have time to carouse the php at the moment. At least they forewarned us by calling it alpha :)

    That’s good,

    I first sounded as if we should take a step backwards.

    Sorry for my misinterpretation!


    smi1ey
    Member

    @smi1ey

    So was this issue supposed to have been resolved in the 1.0 final release? I just installed it and am having the exact issue. When I login to bbPress, it logs me out of WordPress. I have searched several posts, and ensured that the cookie AUTH keys are all the same in WP and bbPress config files. The home site URL is the same as well. I even installed the WP bbPress Integration plugin as recommended, and added their extra code to the wp-config file.

    Anyone else still experiencing thing? I hate to bring up an old topic, so if it’s been resolved somehow, lemme know! :)


    Marcomail
    Member

    @marcomail

    What cookie plugin of wordpress do you have installed ? You could use only one login form like me, i’m using only the wordpress login form.


    smi1ey
    Member

    @smi1ey

    Thanks for the reply! I resolved it! I had taken the AUTH keys from the options page of WordPress and entered them in the bbpress config file. I had assumed that by them already being listed in WordPress, that they were already in the WP config file. Apparently I was wrong. Once I ensured the AUTH keys were in both config files, it instantly started working. Woot!


    toosalty
    Member

    @toosalty

    Hi smi1ey,

    Could you elaborate on how you resolved the problem? I’m facing the same problem that you have but I don’t really understand your solution.

    Thanks!


    Navjot Singh
    Participant

    @navjotjsingh

    I also can’t login to both installs simultaneously. I am using WordPress 2.9 rare and BBPress 1.0.1 version. Please help.


    Ashfame
    Participant

    @ashfame

    @toosalty & @navjotjsingh

    WordPress 2.8 integrates easily with bbPress 1.0

    I just wrote a post today : http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/

    I will also be writing a post on how to upgrade existing integrated installations (most probably tomorrow morning). Let me know if you are facing any issue, I will try to help.

    P.S. – No plugin is now needed for integration. ;)


    Driftless
    Member

    @driftless1

    @Ashfame – You keep insisting that no plugin is needed – however, I could not make the integration work until I installed the plugin –

    http://wordpress.org/extend/plugins/bbpress-integration/

    I have WP installed in a subdirectory, and BBPress installed in a sub-domain. The plugin helped me to discover how to a) make the cookies register in the same root domain, and b) define the cookie hash that was missing.

    In short, although it may not be needed – it is useful. In my humble opinion.


    Kids Toys
    Member

    @kids-toys

    I have the same problem… any solutions?


    smi1ey
    Member

    @smi1ey

    ashfame’s guide is pretty clear on the steps. For me, the key was going to http://YOURSITE/wp-admin/options, grabbing the AUTH keys there, then pasting them in the correlating section of the bbPress config.php file in the install. Once they both had the exact same cookie codes in their config files, it worked like a charm.


    NiceBlogger
    Member

    @niceblogger

    I used smi1ey method worked nice,thanks for explanation buddy


    Rohan Kapoor
    Member

    @rohan_kapoor

    You could also upgrade to 1.0.1 which is much easier to integrate and install.


    Ashfame
    Participant

    @ashfame

    @driftless1

    I keep saying that because I have done it without the plugin. I don’t get the point of using anything else when they support integration natively.


    Gravitydk
    Member

    @gravitydk

    Ashfame, if you check the purpose of that plugin, it’s for cookies to work both ways seamlessly; so it’s “native” for database but I don’t think it’s native yet for all cookies.

Viewing 23 replies - 1 through 23 (of 23 total)

You must be logged in to reply to this topic.