Skip to:
Content
Pages
Categories
Search
Top
Bottom

Integration Problem – Including WP Functions

  • <?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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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!

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