Info
- 17 posts
- 6 voices
- Started 2 years ago by KICKERMAN360
- Latest reply from Ashfame
- This topic is not resolved
WordPress login makes bbPress dashboard not accessable - many affected
-
- Posted 2 years ago #
Hi,
So far from browsing the forums, there is a somewhat minor issue regarding WordPress and bbPress when it comes to shared cookies and logins. Here is what happens:WordPress Login = WordPress Dashboard
bbPress Login = WordPress Dashboard
Wordpress Login != bbPress Dashboard <-- Problem
bbPress Login = bbPress DashboardSo basically whenever I login via WordPress (there is a main site login form in the header), I can access the forums and it even shows I am logged in however when I click "Admin", I am redirected to the forum index.
Other forum posts which didn't have a solution (in my case atleast):
http://bbpress.org/forums/topic/cant-access-admin-dashboard
http://bbpress.org/forums/topic/forumbb-admin-redirects-me-to-forum
http://bbpress.org/forums/topic/forumsbb-admin-just-redirects-me-to-forums
http://bbpress.org/forums/topic/admin-link-redirects-to-front-page
http://bbpress.org/forums/topic/admin-link-doesnt-take-me-to-dashboardThings I've tried:
Going directly to the mysite.com/forums/bb-admin/index.php
Checked all hash keys and other wp/bb-config.php stuff
Updated to the latest WordPress and bbPress
Deactivated all plugins (I only had Akismet and reCAPTCHA bbPress anyway)
Clearing cache (Firefox)
Trying in another browser (Internet Explorer)Does anyone have a clear cut solution? Most people are happy with just using bbPress to get to the admin panel but it would be nice if it worked.
-
- Posted 2 years ago #
So far, I think this is the best advice:
http://bbpress.org/forums/topic/wp-integration-coockie-does-not-work#post-61969 -
- Posted 2 years ago #
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.phpdefine('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. -
- Posted 2 years ago #
A few months ago I had problem with reCaptcha activated on both "software" try deactivating bbpress' one then try it after chrishajer's link.
-
- Posted 2 years ago #
KICKERMAN360 were you able to find a solution to your problem?
-
- Posted 2 years ago #
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 -
- Posted 2 years ago #
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 :)
-
- Posted 2 years ago #
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 likehttp://needaproject.com/wp-login.phporhttp://needaproject.com/wp-login.php?redirect_to=http%3A%2F%2Fneedaproject.com%2Fwp-admin%2FI 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.
-
- Posted 2 years ago #
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 -
- Posted 2 years ago #
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-65111I'm guessing because of all the links. You're not a bozo, but the posts were being caught by Akismet.
-
- Posted 2 years ago #
Thanks Chris! Back to the topic now.
-
- Posted 2 years ago #
yay ashfame!
-
- Posted 2 years ago #
@kevin
I would try redirecting everything to WordPress and then come back! -
- Posted 2 years ago #
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. -
- Posted 2 years ago #
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?
-
- Posted 2 years ago #
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 :) -
- Posted 2 years ago #
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. -
You must log in to post.