The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Call to Member function on a non-object
I created a class to handle my groups info. But when I try to get the info from the db I get.
Call to a member function query_read() on a non-object Is there a special way to call $db->query_first_slave() or query_read from inside a custom class? |
#2
|
||||
|
||||
It kinda depends. I can't really say since you haven't posted what you wrote. Could be:
PHP Code:
|
#3
|
|||
|
|||
I figured it out, when I created the class I passed the object $vbulletin in, then checked that it was an object and if so assigned it to $this->registry
I was doing exactly what you was showing, but it didn't work |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|