The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook : Fatal error. Is it a bug ???
Hi All,
I placed a very simple code as hook in location userdata_postsave PHP Code:
HTML Code:
Fatal error: Call to a member function query_write() on a non-object in C:\wamp\www\etnoselect\forums\includes\class_dm_user.php(1938) : eval()'d code on line 50 http://www.vbulletin.com/forum/showthread.php?t=290637 But I check files and no DB instead of db was found. I am using vBulletin 3.8.0 Thanks for your help. |
#2
|
|||
|
|||
You have to use
PHP Code:
That means: PHP Code:
|
#3
|
||||
|
||||
Did you have a look inside class_dm_user.php, where the hook is located? You wouldh ave found how the DB object is called.
|
#4
|
|||
|
|||
Thanks a lot. I will go deeper into vB code next time
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|