Log in

View Full Version : Getting Error, why?


Kungfu
08-02-2006, 03:41 PM
Fatal error: Call to a member function query_first() on a non-object in /public_html/forum/includes/functions.php on line 1002

Last night i was integerating vbulletin with another script of mine, it was working perfectly too. Then i commented it out because i wasnt done with it yet and thought i would finish today. Well when i went to go include my script that gathers the persons info i got this.

i use another script to get all that junk which calls on
require_once('/public_html/forum/includes/init.php');

and when that happens it loads everything up in vbulletin so we can read the sessions and all that. Well it gets to that functions line which is
$user = $vbulletin->db->query_first("

and it bugs out, anyone know why this is.

Last night it was working fine and not giving that error.

Kungfu
08-03-2006, 03:55 PM
no one has any ideas?

kkibak
08-04-2006, 06:37 AM
any luck on this? im having the same thing i think... www.allmetalforums.com/forums/

Surviver
08-04-2006, 07:07 AM
Modified you the functions.php file ?

Try to Reupload it, or try to disable the Pluginsystem ;)

mf Surviver

kkibak
08-04-2006, 07:24 AM
Thanks, I managed to find the fix on another forum. It has to do with plugins I believe. Here is the fix:

http://www.vbulletin.com/forum/showthread.php?t=194147

Kungfu
08-04-2006, 10:08 PM
well this isnt a plugin system, im just calling the init.php script in the forums and when it gets to that part the vbulletin->db is not defined and i have no clue why.