The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Please help. Bad error. Details »» | |||||||||||||||||||||||||
I was told by one of my php coders that this error means that a chunk of code is missing and I didn't delete a chunk of code. Here is the error.
Code:
Fatal error: Call to undefined function: gettemplate() in /web/dark/public_html/testvb/member.php on line 1297 Dark Shogun Ps. I get this error when I click on the name of my newest member on the forum homepage. http://www.thatfinalfantasysite.com/testvb Show Your Support
|
Comments |
#2
|
||||
|
||||
Wow, your PHP coder friend sure was a lot of help with that advice
Anyway, it's too hard to tell exactly what could be the problem with just the information you've provided, but I recommend if your member.php is barely modified with hacks, then just to replace it with the original. If it is modified to an extent you don't feel like replacing, then I would try comparing the unmodified member.php and your version. But first, let's try to help you ....can you post a chunk of the code around line 1297, but NOT the entire member.php (as that's against rules). |
#3
|
|||
|
|||
Ok. I will get the code around that line. I have used beyond compare and could see a chuck of code missing.
Dark SHogun |
#4
|
|||
|
|||
Code:
// ############################### start get info ############################### if ($action=="getinfo") { $templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo"; // +++++++ User Most Active Forum Hack [ g-force2k2 ] +++++++ $templatesused = ",getinfo_forumactive"; // +++++++ User Most Active Forum Hack [ g-force2k2 ] +++++++ // +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ $templatesused = ",warn_getinfo_warning,warn_userinfo"; // +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ eval("\$customfields .= \"".gettemplate ***************line 1297******************* ("getinfo_customfields")."\";"); ***************line 1297******************* } // +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ $userinfo[warnlink] = ""; $warntype = checkwarnlink($bbuserinfo[usergroupid], 0); if($warntype == 1) { eval("\$userinfo[warnlink].= \"".gettemplate('warn_seelink')."\";"); } else { $userinfo[warnlink].= ""; } $warntype2 = checkwarnlink($bbuserinfo[usergroupid], 1); if($warntype2 == 1) { eval("\$userinfo[warnlink].= \"".gettemplate('warn_userinfo')."\";"); } else { $userinfo[warnlink].= ""; |
#5
|
||||
|
||||
Try a quick execution test, to see if the page loads without line 1297. In other words, find:
PHP Code:
|
#6
|
|||
|
|||
When I do that I get this error:
Code:
Parse error: parse error, unexpected $ in /web/dark/public_html/testvb/member.php on line 1690 Code:
eval("\$sendmessage = \"".gettemplate("email_usermessage",1,0)."\";"); mail($destuserinfo[email],$subject,$sendmessage,"From: \"$bbuserinfo[username]\" <$bbuserinfo[email]>"); // parse this next line with eval: $sendtoname=$destuserinfo[username]; eval("standardredirect(\"".gettemplate("redirect_sentemail")."\",\"usercp.php?s=$session[sessionhash]\");"); ----------------------line 1690-------------------------- } ----------------------line 1690-------------------------- ?> |
#7
|
||||
|
||||
My bad, I accidentally told you to remove a neccessary bracket. In this code which I told you to remove:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
Ok doing that I get this error:
Code:
Fatal error: Call to undefined function: checkwarnlink() in /web/dark/public_html/testvb/member.php on line 1302 Code:
} // +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ $userinfo[warnlink] = ""; --------------------------------line 1302--------------------------------- $warntype = checkwarnlink($bbuserinfo[usergroupid], 0); --------------------------------line 1302--------------------------------- if($warntype == 1) { eval("\$userinfo[warnlink].= \"".gettemplate('warn_seelink')."\";"); } else { $userinfo[warnlink].= ""; } |
#9
|
||||
|
||||
Is the hack you are trying to install (or did recently) a hack by g-force2k2? Just curious.
I noticed this a bit above: PHP Code:
So replace the above with: PHP Code:
|
#10
|
|||
|
|||
Now I get this error.
Code:
Fatal error: Call to undefined function: checkwarnlink() in /web/dark/public_html/testvb/member.php on line 1300 Code:
} // +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++ $userinfo[warnlink] = ""; --------------------------------line 1300------------------------------ $warntype = checkwarnlink($bbuserinfo[usergroupid], 0); -------------------------------line 1300------------------------------- if($warntype == 1) { eval("\$userinfo[warnlink].= \"".gettemplate('warn_seelink')."\";"); } else { $userinfo[warnlink].= ""; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|