Skip to:

Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a

  • I’m trying to get the wordpress functions inside of bbPress and vice versa, and therefore get the buddypress functions into bbPress as well. I tried the method described here: but to no avail. In short, it involves adding this code to the bottom of my bb-config.php file:

    // Include WordPress functionality
    $currDir = dirname(getcwd());
    // Make sure this isn't install or admin (go up if it is)
    $currDir = dirname($currDir);

    die("Cannot find WordPress integration files.");


    The only clues I have from my error logs are a 404 error and a white screen of death when I try to access my forum root, which is at /community. Also, my rewrite log is here:

    Please note that im using an external install of bbPress intentionally because I need the forums to be centrally located and somewhat separate from my blog. Any insight or help would be greatly appreciated!

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

  • chrishajer


    One thing I question but suspect is not related to this problem is: shouldn’t you be including wp-load.php instead of wp-blog-header.php?

    First pass at a fix for “deep” integration in trunk

    You can search these forums for both wp-load.php and wp-blog-header.php to see which one should be included.

    But, you’re only getting a 404 in the Apache error logs? What page is being logged as a 404?

    Do you have access to PHP error logs? The blank screen is probably a 500 error, so looking at PHP errors will allow you to see what’s causing that.

    Ok, so I was mistaken – its a 200 response with either wp-load or wp-blog-header and the fatal error from the logs is:

    Fatal error: Cannot redeclare class BPDB in /Users/mrh/Sites/ on line 39

    So, upon closer inspection its a buddypress + backpress compatibilty issue – they both use $bpdb as their database abstraction class… hmmm…

    So what I did to patch this was comment out the BPDB function on line 140 of /html-root/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress.php

    Not ideal, I know – but it allowed me to keep working. Here’s the paste.

    I’m open to suggestions :)

    Sweet, John James Jacoby posted this patch that should fix the issue!



    @chrishajer I believe I found originally that including only wp-load.php did not register the actions and filters in WordPress and I wanted to keep those for our specific installation. But generally speaking, it would carry quite a bit less load :)

    @AphelionZ I am very glad you solved the problem, congratulations!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar