bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Integration Problem - Including WP Functions

(3 posts)
  • Started 1 year ago by bavardage
  • Latest reply from fel64
  • This topic is not resolved
  1. bavardage
    Member

    <?php
    require_once( '../wp-blog-header.php' );
    $bb->WP_BB = true;
    define('WP_BB', true);

    Start of config is as per above, but get the following error:

    Fatal error: Call to a member function on a non-object in /home/jefferss/public_html/blog/forum/bb-includes/functions.php on line 503

    Any ideas?

    Posted 1 year ago #
  2. I have a different version of functions.php to you, so I can't track it down precisely, but my guess is that that line makes a call to $bbdb and that doesn't exist. Could you check this? You can go to a certain line in Notepad by pressing Ctrl + G and typing in whatever line you want.

    If the problem is with $bbdb, it'll be interesting. I have the same problem (only when trying to load bb from inside wp).

    Have you tried putting those lines at the end of config.php by the way? That could circumvent the problem.

    Posted 1 year ago #
  3. Hey, if that worked for you can you do me a big favour? (If it didn't work, this is worth a try!) Put it back at the top like you had it and then underneath it add

    global $bbdb;

    and see if that works. Thank you very much!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.