Log in

View Full Version : global.php include problem


Hammon
04-30-2006, 02:46 PM
I'm tryng to build a portal based on a cms that integrates with Vbulletin. On this purpose I include global.php of vbulletin in my cms pages as suggested in alot of threads.

It fails: Fatal error: Call to a member function on a non-object in /forum/includes/functions.php on line 1041
which is a call to the db function:

$user = $vbulletin->db->query_first("
SELECT " ....

I suppose the problem is that either cms and vbulletin uses a class named $db so when I try to use code from the vbulletin framework it doesn't work.
Is there any solution in order to use both cms and vbulletin framework thogether (db class) ?
THanks in advance for your help: being not a good coder myself need help :P

Munnday
06-15-2006, 09:58 AM
Consider this a bump, I too am having a similar problem, using wordpress and trying to display vbulletin related information returns the same error.

Jafo232
02-23-2012, 09:09 PM
The only reason I am bumping this up is because I have always had this problem and whenever I google a solution, this comes up first or second; so I figure this will help someone else who is experiencing the exact same issue:

http://www.lampwrights.com/showthread.php?p=1069#post1069