The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
SQL query problem.
i have some problems
i have this script: PHP Code:
PHP Code:
Code:
Fatal error: Call to a member function on a non-object in c:\file-x.php on line 31 Thanks for any help you can give me, FlyingDutchman P.S. originalforumid is from type smallint(5) unsigned if that possibly matters (guess not, but ok) |
#2
|
||||
|
||||
Try adding before that line:
PHP Code:
|
#3
|
||||
|
||||
i've tried already... didn't work?!?!?
|
#4
|
||||
|
||||
Did you insure that global.php is being included in the file file-x.php?
Chances are the non-member object it's referring to is $DB_site. If it is included at the top of the file, then try this instead: Replace: PHP Code:
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
it's for my (upcoming) recycle bin hack, it will get a listing of all threads that are in the recycle bin and it will also show the original forum title (which -the id- is saved in the row 'originalforumid' in the table 'thread'
this piece of code is for the admin CP... i can't really move it out of the while loop, b/c the forumid variable ($thread_info[originalforumid]) is defined in the while loop... of course i've required global.php and i've changed query to query_first also, but no luck P.S. This code isn't really really needed for the hack, but i'd like to get it running this way, and just printing the forumid is kinda lame i think, the title suits better... |
#6
|
||||
|
||||
w00t, I guess all you guys are as stupid as me
the fix is: change $DB_Site to $DB_site, d0h i'm happy that i found out this typo myself |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|