Integrated WordPress with bbPress. I’ve added the integration plugins. But can’t get logins to work in bbPress.
I pre-registered a few new users in WordPress. Can login fine in WP. But I can’t even seem to login as admin in bbPress even to write/comment on a post – regardless of admin or other users. Can see an admin screen, but not allowed to do anything there without login – which I can’t do.
No error message comes up. I login, checks the database and returns to the screen. Doesn’t matter which login link I’m using in bbPress, I can’t create/edit a thread, nor can I gain admin access.
After you try to login, does it still display the login form or does it instead show you the profile, admin, and logout links?
if you added this in your config.php, you will be able to user the wp tables during the bb login process. However, i dont what to do in order to allow only ONE point of entry to establish the session.
I think I am having the same problem, when i log in to WP and then go to bbpress the user name field is populated with my wp username and the password field is blank. Any leads??
I have the problem described by DawudM (above) – so to answer mdawaffe’s question:
“After you try to login, does it still display the login form or does it instead show you the profile, admin, and logout links?”
it show’s the first page of bbPress with the login info correct in the header (two fields with entered text); the correct account in the body with “first post!” etc but unable to add, delete, initiate etc – anything.
then after hitting a few of the page links (those that don’t allow you to do anything) then bbPress fails to recognize me as admin – or a user in its dbase.
thanks in advance
Are you integrating this with WP, or is it a standalone install?
Having the same difficulties. You can check what I mean by registering on my website and trying to log on:
I set up an integrated bb and wordpress message board, and the integration is definitely working. Sadly, I can’t log in at all. No idea what’s wrong. I log on as the admin, and it just goes back to the index.php as if I never logged in. If I try logging in with false info, then it says: Login failed, this username does not exist. It’s defintely running some sort of script after I press submit, but it isn’t logging me in
Suggestions? Mdawaffe, you seem to have a good undertanding, being the key master and all
Please tell me the following settings:
“Are you integrating this with WP, or is it a standalone install?”
I’m integrating bbpress into a wordpress installation…
“Please tell me the following settings:
(sorry) where would I find this information in bbpress?
They are some of the settings you set up in bbPress’ config.php before you first installed things.
here is the whole config file (partially edited to protect passwords etc)
// ** MySQL settings ** //
define(‘BBDB_NAME’, ‘myDBname’); // The name of the database
define(‘BBDB_USER’, ‘mySQLname’); // Your MySQL username
define(‘BBDB_PASSWORD’, ‘muSOLpass’); // …and password
define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = ‘bb_'; // Only letters, numbers and underscores please!
// If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.
// Adjust the domain and path to suit your actual URL.
// Just the domain name; no directories or path. There should be no trailing slash here.
$bb->domain = ‘http://acd.us/cms/bbpress'; // Example: ‘http://bbpress.example.com’
// There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.
$bb->path = ‘/'; // Example: ‘/forums/’
// What are you going to call me?
$bb->name = ‘Member Forum';
// This must be set before running the install script.
$bb->admin_email = ‘firstname.lastname@example.org';
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = false;
// The number of topics that show on each page.
$bb->page_topics = ’30′;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = ’60′;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = ‘-5′;
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at
$bb->akismet_key = ‘my key #';
// The rest is only useful if you are integrating bbPress with WordPress.
// If you’re not, just leave the rest as it is.
$bb->wp_table_prefix = ‘wp_'; // ‘wp_'; // WordPress table prefix.
$bb->wp_home = ‘acd.us/cms'; // WordPress – Options->General: Blog address (URL) // No trailing slash
$bb->wp_siteurl = ‘acd.us/cms'; // WordPress – Options->General: WordPress address (URL) // No trailing slash
// Use the following line *only* if you will be loading WordPress everytime you load bbPress.
/* Stop editing */
define(‘BBPATH’, dirname(__FILE__) . ‘/’ );
require_once( BBPATH . ‘bb-settings.php’ );
$bb->domain = ‘http://acd.us';
$bb->path = ‘/cms/bbpress/';
$bb->wp_home = ‘http://acd.us/cms';
$bb->wp_siteurl = ‘http://acd.us/cms';
Try those values.
I’ll give it a go. and then come back and report.
Ok. It looks great!
So…after having gone through this a dozen or so tries and then finding (per your excellent direction) that it’s mostly about domain structure in the config file – (and it looks like I’m not the only one) -
a) how can I assist in making this not happen to someone else?
b) when might there be official documentation for this type of install? (aside from the well written but short of the details I needed) article on BlogHelper ?
thanks again – let me know where I need to report to help anyone else…..
i have the same problem , i can login in bbpress but i can’t admin it
this i the config values..
$bb->domain = ‘http://www.addisababba.com';
$bb->path = ‘/blog/forum/';
$bb->wp_home = ‘http://www.addisababba.com/blog';
$bb->wp_siteurl = ‘http://www.addisababba.com/blog';
I have two WordPress blogs (2.0.5) sharing a user database and attempted to get bbPress to share that user db as well. It installed successfully, but I can’t log in either!
I know it’s pulling the info though from my User Database, because the username in the sample post is linked to the same site I’ve set in WordPress. I checked my config.php values, and I know the syntax is correct based on the comments in config.php and the comments above, so I’m a bit confused.
I should note that I’m attempting this on a local test server, so all my config.php values are “localhost” values (such as
$bb->domain = 'http://localhost';), I don’t know if this would throw things off at all.
whitelion, If you’re logged in, but can’t admin, it may be that there are no users with admin capabilities. This can happen if you install bbPress and then later intograte it with WordPress.
To fix this, try setting
$bb->new_keymaster = true;in bbPress config.php and then re-running /bb-admin/install.php.
You should be able to type in your username if there are not any keymasters already. Delete that new line in config.php once you’re done.
cvanp, Is your bbPress URL a “subdirectory” of your WP URL?
Nope, my layout is as follows:
All three share the same database, with the prefixes
bb_. I have the second WordPress (
wp2_) hacked up a bit so it uses
wp1_usermeta, enabling me to have a Gawker Media style Blog Network (multiple blogs, single logins). I was hoping to share that
wp1_table with bbPress, and it appears to have done so, just didn’t let me log in.
Also, I don’t get an error message, I just get directed back to the homepage as if I had done nothing.
cvanp, if it’s not a subdirectory, it isn’t as easy. You’ll have to change WordPress’ cookies and bbPress’.
mine just doesn’t log in, if I use incorrect password it lets me know, so its reading the database kind of… but yet I can’t get in using any user name or password… I tried about every setting I can find in the forums…
If I get it working I will use it on a real site (http://www.trialsoftheswitch.com )
I tried the bb->newkeymaster setting but to no avail unfortunately.
After making the change when i go to bb-admin/install/ it throws back the error “username not found. try again.”
- You must be logged in to reply to this topic.