2012-07-02, 11:03 PM
I need to integrate the forum with the rest of the site. I did the "define("IN_MYBB", 1);" and required the global.php file which then ran but then throws this error "Fatal error: Call to a member function simple_select() on a non-object in /home/daneslaw/public_html/forums/inc/class_datacache.php on line 80". I checked the class_datacache.php and when I did the code below both $db and $mybb show as null.
The forum runs fine and the site runs the global.php file so I'm not sure what is going one. Any ideas?
Many thanks!
function cache()
{
global $db, $mybb;
if($_SERVER['REMOTE_ADDR'] == '86.31.113.65') {
echo var_dump($mybb);exit;
}
The forum runs fine and the site runs the global.php file so I'm not sure what is going one. Any ideas?
Many thanks!