Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

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

Ok just to let you know this happens everytime I try to view a persons profile.

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

Even after the fix you continue to recieve the errors, hmm.

Well, I'm not sure what to say, since the line references aren't helping.

If I were you I'd replace my member.php with the original. Either that, or work back from the last hacks you installed and figure out what's missing.

Try backing up your member.php, then replacing it with the original unmodified. See if the page will load without errors, and if it does then you know it's an error in member.php. If it doesn't, then it could be external like in functions.php. But if it does load, then you'll have to figure it out somehow.

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

Ok I just check when I replace it with the original it works BUT when I check both the hacked and original side by side in Beyond compare I don't see any code missing at all. Then I add the hacks to the member.php file and it goes back to the orginal error:

PHP Code:
Fatal errorCall to undefined function: gettemplate() in /web/dark/public_html/testvb/member.php on line 1282 
Please help If I don't finish hacking my forum tomorrow I will not beable to do so for 6-months to 1 year.

Dark Shogun
Reply With Quote
  #15  
Old 10-21-2002, 02:57 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your member.php, this line is incomplete:


PHP Code:

eval("\$customfields .= \"".gettemplate 
This is why you get this error:

Quote:

Fatal error: Call to undefined function: gettemplate() in /web/dark/public_html/testvb/member.php on line 1297
Reinstall g2force's warning hack again, making sure you complete that line of PHP code.
Reply With Quote
  #16  
Old 10-21-2002, 02:59 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
    eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";");
  } 
Thats not the full line?

Dark Shogun
Reply With Quote
  #17  
Old 10-21-2002, 03:04 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was referring to your post here:

https://vborg.vbsupport.ru/showthrea...330#post311330

12th line in the code you posted.
Reply With Quote
  #18  
Old 10-21-2002, 03:06 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I am sorry. For some reason when I posted it, it didn't come out on one line like it was supposed to.

Dark Shogun

PS. Post number 15 is the right line.

http://www.thatfinalfantasysite.com/...tinfo&userid=6
Reply With Quote
  #19  
Old 10-21-2002, 03:17 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

Change this:

PHP Code:

eval("\$customfields .= \"".gettemplate("getinfo_customfields")."\";"); 
to this:

PHP Code:

eval("\$customfields .= \"".gettemplate('getinfo_customfields')."\";"); 
Reply With Quote
  #20  
Old 10-21-2002, 03:19 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Didn't work. I tried that.

Dark Shogun
Reply With Quote
  #21  
Old 10-21-2002, 03:24 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure? The error is telling you that what is between the gettemplate() brackets are in error - make sure that template exists, and you use ' instead of " because using " confuses the code with the other " in that line.
Reply With Quote
Reply


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 05:08 AM.


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.04506 seconds
  • Memory Usage 2,307KB
  • 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
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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