Forums

Join
bbPress Support ForumsTroubleshootingDeep Integration with bbPress 1.0.2 and WPMU 2.8.4a

Info

Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a

  1. 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: http://labs.b5media.com/blog/creating-the-anypress-solution/ 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)
    if(!file_exists("$currDir/wp-blog-header.php"))
            $currDir = dirname($currDir);
    
    if(!file_exists("$currDir/wp-blog-header.php"))
            die("Cannot find WordPress integration files.");
    
    error_reporting(E_ALL);
    require_once("$currDir/wp-blog-header.php");

    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: http://pastebin.ca/1572291

    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!

  2. 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?

    http://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk#post-55717

    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.

  3. 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/irrational.dev/community/bb-includes/backpress/class.bpdb.php on line 39

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

  5. 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. http://pastebin.ca/1574452

    I'm open to suggestions :)

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

    http://trac.buddypress.org/attachment/ticket/1057/dance-around-the-deep.patch

  7. @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!

  8. You must log in to post.