vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Please help. Bad error. (https://vborg.vbsupport.ru/showthread.php?t=44736)

Dark Shogun 10-18-2002 10:58 PM

Please help. Bad error.
 
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
PLEASE help. I have to leave for job corp on tuesday and will not be back for 6 months to 1 year and I need to finish this forum before I go.

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

Velocd 10-18-2002 11:10 PM

Wow, your PHP coder friend sure was a lot of help with that advice :p

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). ;)

Dark Shogun 10-18-2002 11:12 PM

Ok. I will get the code around that line. I have used beyond compare and could see a chuck of code missing.

Dark SHogun

Dark Shogun 10-18-2002 11:14 PM

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].= "";

Dark Shogun

Velocd 10-18-2002 11:18 PM

Try a quick execution test, to see if the page loads without line 1297. In other words, find:

PHP Code:

eval("\$customfields .= \"".gettemplate
***************line 1297*******************
(
"getinfo_customfields")."\";");
***************
line 1297*******************
  } 

And remove it, then save and run to see if it loads. This will zero in if that particular area is the problem.

Dark Shogun 10-18-2002 11:23 PM

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
and this is the code around 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--------------------------
?>

Dark Shogun

Velocd 10-18-2002 11:27 PM

My bad, I accidentally told you to remove a neccessary bracket. In this code which I told you to remove:

PHP Code:

eval("\$customfields .= \"".gettemplate
***************line 1297*******************
(
"getinfo_customfields")."\";");
***************
line 1297*******************
  } 

You should have only removed this:
PHP Code:

eval("\$customfields .= \"".gettemplate
***************line 1297*******************
(
"getinfo_customfields")."\";");
***************
line 1297******************* 


Dark Shogun 10-18-2002 11:30 PM

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
This is the lines.

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].= "";
  }

Dark Shogun

Velocd 10-18-2002 11:33 PM

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:

$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 ] +++++++ 

For some reason there is no added . notation before the equal sign to keep adding onto the $templateused variable.

So replace the above with:
PHP Code:

$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 ] +++++++ 

And see if that does anything.

Dark Shogun 10-18-2002 11:45 PM

Now I get this error.

Code:

Fatal error: Call to undefined function: checkwarnlink() in /web/dark/public_html/testvb/member.php on line 1300
This is 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].= "";

Dark Shogun


All times are GMT. The time now is 07:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01597 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete