DT-Spirit
08-16-2004, 05:50 PM
I need some help in my website...
http://www.gamerzplanet.net
I am using vbulletin, and does anyone knows whats the error on top of the site? I try to fix it, but I can't.. Anyone can help me out?
I see this error in this index
Warning: Missing argument 2 for iif() in /home/gamerzpl/domains/gamerzplanet.net/public_html/forums/includes/functions.php on line 318
and lin 318 is
function iif($expression, $returntrue, $returnfalse = '')
and the sub forum are not workin
http://www.gamerzplanet.net/forums/forumdisplay.php?f=102
Thanks.
m_gersitz
08-16-2004, 09:13 PM
Did you just install vbulletin? Or have you been trying to add hacks?
DT-Spirit
08-17-2004, 12:07 AM
well after the server was down, this whole thing happened.
function iif($expression, $returntrue, $returnfalse = '')
not a php expert, but does if have two "I"'s or one? It says function iif, instead of function if
Charter
08-17-2004, 01:46 AM
Looks like the second argument to the function is not passed. Just a guess, but perhaps try changing:
function iif($expression, $returntrue, $returnfalse = '')
to the following:
function iif($expression, $returntrue = '', $returnfalse = '')
Maybe an added hack forgot to keep that part?
CreativeLogic
08-17-2004, 04:56 AM
function iif($expression, $returntrue, $returnfalse = '')
Is correct. The line you have needs to have at least 2 variables and the third variable is optional. Where ever the funciton is being called it needs to have those two/three variables. If you would like me to look into this more send me a pm with admin access so I can actually view the forums. Once you send me admin access I will let you know which file needs to be fixed or you can send me FTP access and I will just fix it. I wont be able to help out for about 4 or 5 hours.
DT-Spirit
08-17-2004, 05:20 AM
well thanks everyone..
but I decided to upgrade the vbulletin and use vbadvanced instead of vbindex..
cuz after I install vbindex, this error comes out..
but after I use vbadvanced, this error is gone...
and seem everything back to normal..
Thanks everyone.
CreativeLogic
08-17-2004, 05:24 AM
So it was the hack. Yea it was nothing on your part. It was most likely the hack's error. Good luck!
techmonkey
08-17-2004, 11:37 PM
You won't be disappointed, vbadvanced is a great script.