Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Please help. Bad error. Details »»
Please help. Bad error.
Version: , by Dark Shogun Dark Shogun is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-18-2002 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-19-2002, 12:10 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 10-19-2002, 12:12 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Dark SHogun
Reply With Quote
  #4  
Old 10-19-2002, 12:14 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 10-19-2002, 12:18 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-19-2002, 12:23 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-19-2002, 12:27 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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******************* 
Reply With Quote
  #8  
Old 10-19-2002, 12:30 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 10-19-2002, 12:33 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 10-19-2002, 12:45 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14709 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete