Skip to:
Content
Pages
Categories
Search
Top
Bottom

WordPress login makes bbPress dashboard not accessable – many affected

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

  • chrishajer
    Participant

    @chrishajer

    I have done a good few wordpress/bbpress cookie/log in integrations at this stage.

    The easiest way I find to get it to work as expected is place the following in my bb-config.php

    define('BB_AUTH_KEY',        'YOUR_AUTH_KEY');
    define('BB_SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('BB_LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('BB_NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));
    define('BB_COOKIEHASH', md5('Domain Name'));
    $cookiehash = md5('Domain Name');
    define('BB_HASH', md5('Domain Name'));

    and the following in your wp-config.php

    define('AUTH_KEY',        'YOUR_AUTH_KEY');
    define('SECURE_AUTH_KEY', 'YOUR_SECURE_AUTH_KEY');
    define('LOGGED_IN_KEY', 'YOUR_LOGGED_IN_KEY');
    define('NONCE_KEY', 'YOUR_NONCE_KEY');
    define('COOKIEHASH', md5('Domain Name'));

    Replace the KEY values with those generated here: http://api.wordpress.org/secret-key/1.1/

    Also i’m not sure which of the bbPress cookie bits is needed, I presume it’s only one of them.

    Hope this helps.

    A few months ago I had problem with reCaptcha activated on both “software” try deactivating bbpress’ one then try it after chrishajer’s link.

    KICKERMAN360 were you able to find a solution to your problem?


    kevinjohngallagher
    Member

    @kevinjohngallagher

    Morning lads and lasses,

    I can’t replicate this problem with an existing/live website, but i may have some suggestions. From the time of the 0.9 to diffrent versions of WP (and SuperAnn and _ck_’s plugins), i’ve found i end up putting in a huge amount of data into my bb-config.php file, and then force everyone to login via wordpress (that way i know i’ve only got 1 point of failure).

    If you can’t access the bb-admin admin area when being logged via wordpress try making sure these values are in your bb-config.php file.

    define(‘BB_SECRET_KEY’, ‘bb_secret_key’); // Change this to a unique phrase.

    define(‘AUTH_KEY’, ‘auth_key’);

    define(‘LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘BB_AUTH_KEY’, ‘authkey’);

    define(‘BB_SECURE_AUTH_KEY’, ‘secureauthkey’);

    define(‘BB_SECURE_AUTH_SALT’, ‘secureauthsalt’);

    define(‘BB_LOGGED_IN_KEY’, ‘loggedinkey’);

    define(‘BB_SECRET_KEY’, ‘secretkey’);

    define(‘BB_SECRET_SALT’, ‘secretsalt’);

    define(‘BB_LOGGED_IN_SALT’, ‘loggedinsalt’);

    $bb->wp_siteurl = ‘http://www.**********.com/’;

    $bb->wp_home = ‘http://www.**********.com/’;

    $bb->wp_table_prefix = ‘wordpress_’;

    $bb->user_bbdb_name = ‘**********’;

    $bb->user_bbdb_user = ‘**********’;

    $bb->user_bbdb_password = ‘**********’;

    $bb->user_bbdb_host = ‘localhost’;

    $bb->custom_user_table = ”;

    $bb->custom_user_meta_table = ”;

    $bb->authcookie = ‘wordpress_’;

    $bb->cookiedomain = ”;

    $bb->cookiepath = ‘/’;

    $bb->sitecookiepath = ”;

    $bb->wp_table_prefix = ‘wordpress_’;

    $bb->WP_BB = true;

    /* Stop editing */

    I know this may sound daft, and i can’t pin point the technical reason for it, but with the combination of WP moving to a different security routine in WP2.7/2.8 and bbPress moving to BackPress i find that having that extra data in and predefined has solved 99% of my login issues.

    I think, and those of you more technical than i am may debunk the idea, that bbPress does a “double dip” where it tests you as having a cookie on the front end and that the name is associated with a key master or admin, but then on the backend it actually checks your admin credentials against the WP database and cookie has and thats what fails (who do we thank for backPress??).

    Sadly bbPress admin area (or any admin function) doesn’t give error messages, so the exact issue we won’t know unless you can run a profiler.

    Give my additional code a try, and we’ll see if that makes a difference.

    Kev


    kevinjohngallagher
    Member

    @kevinjohngallagher

    oooh i forgot somethings:

    I also have this in my WP-config:

    // This is meant to help BBpress

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    Again, not totally sure these are neccessary, but once you have something that works you stick with it :)


    Ashfame
    Participant

    @ashfame

    I tried! Had no luck!

    I commented out everything that I added and I am getting some interesting results. Its integrated now. I can access everything except a small behavior.

    When I login from bbPress side, if I try to access http://needaproject.com/wp-admin/ I can get to the dashboard but if I try to access the URL like http://needaproject.com/wp-login.php or http://needaproject.com/wp-login.php?redirect_to=http%3A%2F%2Fneedaproject.com%2Fwp-admin%2F I get the login screen. It doesn’t recognize that I am logged in.

    OMG!! bbPress is so much screwed up when it comes to issues.


    kevinjohngallagher
    Member

    @kevinjohngallagher

    It definately appears to be an issue between BackPress and WP about how the cookies are set.

    One of the things i’d suggest would be to edit your bbPress login form to point to your wordpress login form but with the re-direct you want. That way no matter where someone logs in, it’s always from the same place. At least this loses the unknown factor.

    Mental that we have to do this…

    Easy integration with your blog

    - http://bbpress.org/about/features/

    the most important thing we need to figure out is how to integrate bbPress better with WP

    Matt – http://bbpress.org/forums/topic/future-of-bbpress


    chrishajer
    Participant

    @chrishajer

    Ashfame, this is the post that got you caught by Akismet:

    http://bbpress.org/forums/topic/wordpress-login-makes-bbpress-dashboard-not-accessable-many-affected#post-65111

    I’m guessing because of all the links. You’re not a bozo, but the posts were being caught by Akismet.


    Ashfame
    Participant

    @ashfame

    Thanks Chris! Back to the topic now.


    chrishajer
    Participant

    @chrishajer

    yay ashfame!


    Ashfame
    Participant

    @ashfame

    @kevin

    I would try redirecting everything to WordPress and then come back!


    kevinjohngallagher
    Member

    @kevinjohngallagher

    Welcome back mate.

    I still can’t replicate sadly. Shout me if you find if adding my lines of code work or not. I’m off to pick up the kids but will be back on later.


    Ashfame
    Participant

    @ashfame

    Why would we want to redirect everything to WordPress, its bbPress’s dashboard which becomes unaccessible when we login from WordPress side?

    If we would want to redirect everything to bbPress, then it could be avoided else the small glitch will continue.

    Any thoughts?


    kevinjohngallagher
    Member

    @kevinjohngallagher

    Either way, don’t think it really matters.

    Personally i’ve found that pointing my post form towards WP is better because if something is going to change/break in a future version it will happen in WordPress long before bbPress. People are patching/plugins/writing-guides on how ot make bbPress work with WordPress not the other way around, so i stick with the strongest/most stable software as my login base. But really, thats just me being careful; i shouldn’t matter :)


    Ashfame
    Participant

    @ashfame

    I agree but it doesn’t happen to serve out that small glitch of dashboard access.

    Will get back on the subject after this weekend vacation.

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

You must be logged in to reply to this topic.