Forum Replies Created

Viewing 11 replies - 26 through 36 (of 36 total)
  • Hello Sam,

    yes I thought as much, but I had a database backup ready so it’s all good.

    So is it safe to assume that one is better adviced to wait with deeper integration until 1.0 or a stable beta is released?



    The essence of this is that it screws with the usermeta data in the database once you try and integrate WP functions, up to a point where even your admin account for WP doesn’t work anymore.

    Here’s an example:


    1. Upload bbP to the Server

    2. Change the bb-config.php including the require_once line

    3. Run the Installer

    4. After Installation is finished you can’t log on to your WP admin anymore because the admin user suddenly has insufficient access rights, requiring a database restore.

    Variant 2:

    1. Upload bbP to the Server

    2. Change the bb-config.php excluding the require_once line

    3. Run the Installer

    4. Add the require_once line after installation is finished

    5. Your WP admin account is still working as it should and you can even use it for bbP, but with the Inactive user status.

    Doesn’t make much sense, does it?


    thanks for your reply. You are right, there’s not much general sense in that problem to begin with.

    Unfortunately the issue already starts with the use of a relative vs. an absolute path because the absolute variant isn’t even recognized. The only two options available seem to be either the relative take with


    or something that could be called absolute, but is pretty inconvenient to use:

    define(‘WPPATH’, dirname(dirname(__FILE__)) . ‘/’);

    require_once(WPPATH . ‘wp-blog-header.php’);

    Both of these result in the availability of WP commands like get_header etc. which would be needed to visually integrate bbP with WP, but with the major problem that all my accounts in bbP are Inactive for some weird reason.

    Every other attempt where the path to wp-blog-header.php would really be false would just result in the forum link to not work any longer. Therefore it does seem much more likely that different elements of bbP are more or less able to deal with this way of WP integration or access to that file. I would love to give you more detailed error information about the 500 error but I’m not sure where to aquire it.

    Furthermore, that problem with Inactive accounts doesn’t seem to be entirely new. I did some research via google and it does pop up every now and then, here’s an example even from way back in 2006: http://comox.textdrive.com/pipermail/bbdev/2006-September/000719.html

    > > > There is an issue with posting:
    > > > bbpress shows the users (admin) as Inactive. This lets me login, but
    > > > I cannot post since the post form is hidden.
    > >
    > > You must have integrated an old bbPress install with WP (that is, you
    > > must have run the bbPress install script before integrating the
    > > two). If that's the case, none of your bbPress users exist anymore
    > > (they're not defined in WP's user table), and your admin account is
    > > inactive. To fix your admin account, you'll have to change the usermeta
    > >
    > > bb_capabilities = a:1:{s:8:"inactive";b:1;}
    > >
    > > to
    > >
    > > bb_capabilities = a:1:{s:9:"keymaster";b:1;}
    > >
    > > for your admin account. (Where 'bb_' is your $bb_table_prefix.)

    Unfortunately the usermeta in my database is already set as a:1:{s:9:”keymaster”;b:1;}, but it’s still acting as if users are inactive.

    It really is pretty tiresome and after many many database restores and bbP reinstalls I come to the conclusion that integration of WP Functions is somewhat poorly treated so far.

    For now my best bet seems to be to either try and replicate my WP scheme within bbP which would take a lot of double work and maintenance when I apply changes to my blog or go with a different forum solution altogether. : /

    I’m using the functions get_header and get_footer in my front-page.php etc. and it’s working just fine as you can see on my site.

    To give you an idea of what I’m talking about:


    User: Rauko

    PW: IIlCuxOmYRpn

    This is a test user I just registered. Once you log in with this data, you’ll see that this account is extremely restricted for whatever reason. It’s the same with my own admin account and other user accounts.

    In my case, yes, the relative path works just fine, given that I have access to my WP scheme files after I utilize it.

    However, I just found out that adding:

    if (file_exists(‘../wp-blog-header.php’))


    instead of just


    does the trick, at least to get access to the admin area.

    I’m still stuck with the limitation of my admin account though. Once it’s integrated and I log on the bbP, I can’t write a post nor reply or edit my own profile because the admin user receives the status “Inactive”.

    Seems as if I have the same problem as doyle640. Integrated the Alpha with WP 2.6.2 and after adding “require_once(‘../wp-blog-header.php’);” to bb-config.php I can’t access the bbP Admin section anymore. the “Reply” and “New Topic” area is gone as well, Profile can’t be edited etc. The title under my Admin name (“Key Master” by default) will also change to Invalid.

    The loading error for the admin section is indeed a 500 error. At first I figured it might be related to some class conflicts within the WP and bbP CSS structure but fiddling with that didn’t help either.

    Now it seems more likely that the User Account looses all of it’s user privileges in bbP once it’s integrated with WP for some reason.

    Narrowing down on the problem, I’m now able to log in even with the integration code added (by using the exact same setting for WordPress address and Blog address as used in General Settings), however the account is extremely limited in use.

    It’s basically the same issue described by user doyle640 here (https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101/page/3), the Admin screen is unaccessable (blank page) as well as the Profile edit options, even the form to add a new topic is completely missing.

    This is true for the Admin account as well as any user account.

    Once the line “require_once(‘../wp-blog-header.php’);” is deleted from bb-config.php, everything is accessable as usual.

    The login synchronization now works both ways as it should though.

    Ok I just clean installed the Alpha, even deleted the old Database entries.

    As long as I don’t add the integration “require_once(‘../wp-blog-header.php’);” to my bb-config.php, everything works just fine.

    Once I do, I cant log in to bbP with my admin account, but instead it will log me in on my blog.

    New Registration doesn’t work either.

    Any ideas?

    Alright, I’ll give it a try then. Thanks chris.

Viewing 11 replies - 26 through 36 (of 36 total)