Quote:
Originally Posted by dionsis
Ok can anyone including the developers out there suggest a method for solving
PHP Fatal error: Call to a member function query_first_slave() on a non-object in /path/to/my/forum/includes/functions.php on line 1194
from doing a bit of research it seems this error comes up mostly when a file X.php included file Y.PHP and Y.PHP would include the code for adding a user and in turn would include the globals.php, class_dm.php and class_dm_user.php
|
Make sure you include
global.php (not global
s.php) at the very top of your script, the advised method of doing so is with a chdir().
PHP Code:
// Start of script
$cwd = getcwd();
chdir('path/to/your/forums');
require_once('global.php');
// Place any other vBulletin files you need to include here.
// datamanger_init....possibly?
chdir($cwd);
// Include your extra files here
Try it out.