Info
- 3 posts
- 2 voices
- Started 4 years ago by bavardage
- Latest reply from fel64
- This topic is not resolved
Integration Problem - Including WP Functions
-
- Posted 4 years ago #
<?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 4 years ago #
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 4 years ago #
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!
-
You must log in to post.