Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Fatal Error
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] Fatal Error
PostPosted: 03/26/2007 9:57 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
usaCa.gif
Hi Nightrider!

Problem located at www.divinemommies.com

When user clicks on Profile they get the following Fatal Error

Code:
Fatal error: Call to undefined method Template::birthday_interface() in /home/friend12/public_html/divinemommies/forum/includes/usercp_registe r.php on line 1205



Last night I installed the Extreme Styles mod, then I installed the following.



Code:
##############################################################
## MOD Title: Simple Image Upload
## MOD Author: Sium < > (N/A) http://www.postimage.org
## MOD Description:
##      This mod integrates image hosting with phpBB eXtreme Styles mod
##      It makes image upload very simple. All images are
##      hosted on remote image hosting service, not on
##      your forum. When user uploads image, script
##      creates a thumbnail for image and appends bbcode
##      to post user is typing. User doesn't need to
##      know anything about bbcode. And this mod is very
##      simple to install.
## MOD Version: 1.0.4
##
## Installation Level:  Easy
## Installation Time:   ~1 Minutes
## Files To Edit:       ./includes/template.php
## Included Files:      addform.html
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
## If you run into any problems or have any questions feel free to email me at .
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#

copy addform.html to ./addform.html

#
#-----[ OPEN ]---------------------------------------------
#

./includes/template.php

#
#-----[ FIND ]---------------------------------------------
# around line 1163

      $str = implode('', @file($filename));
      if (empty($str))
      {
         die("Template->loadfile(): File $filename for handle $handle is empty");
      }

#
#-----[ AFTER, ADD ]---------------------------------------------
#

      if(basename($filename) === 'posting_body.tpl')
      {
         $str = str_replace('</textarea>', '</textarea><br />&nbsp;&bull;&nbsp;<span class="genmed"><a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=phpbb&l ang=english&tpl=.&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">Add image to post</a></span>', $str);
      }

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Any idea's on where to start looking for the problem?

Thank you Nightrider.  flower
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Fatal Error
PostPosted: 03/26/2007 4:38 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
peace.gif
This sounds unrelated to either the eXtreme Styles or Simple Image Upload MODs.  The error says that it can't find a function named birthday_interface, so I imagine that you recently installed a Birthday MOD which hasn't been fully installed.  I just looked and TerraFrost's Birthday MOD adds a new function named birthday_interface to the includes/templates.php file, so check to make sure that MOD is installed properly...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Fatal Error
PostPosted: 03/26/2007 5:02 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
usaCa.gif
ok, thanks Nightrider. I will check into the birthday mod edits. I actually installed that within days of starting the forum a few months ago, but this error only started last night after the other changes. Isn't that enough to confuse someone or what. No wonder the error wasn't making any sense to me and I didn't know where to start. Or rather I guess the error is saying something I just wasn't listening.  hysterical2
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Fatal Error
PostPosted: 03/26/2007 5:13 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
peace.gif
It's working correctly now.  I suspect what happened is that the Birthday MOD had been installed correctly, but you might have had to make a manual modification to the template.php file for some reason but failed to get a current copy before making the modifications.  So the copy that you modified didn't contain the Birthday MOD code and was lost when you overwrote the file.  If that didn't happen, I can't even begin to guess why the Birthday code was missing...

It's back to normal now though...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Fatal Error
PostPosted: 03/26/2007 5:21 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
usaCa.gif
Oh, thank you! I see....that is probably what happened since it didn't start till last night, and the template.php was one of the only files edited that would make perfect sense.

I appreciate your help.  banana
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Fatal Error
PostPosted: 03/26/2007 5:33 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
peace.gif
I get in the habit of always downloading a copy of the file that I'm going to manually modify, plus a backup, so that I can be guaranteed to always be looking at the most current code.  If you get into that habit, you will never accidentally overwrite a newer file with an older one that is missing previously installed MOD code.  Then if something goes wrong with the file that you modify, you always have a good backup that you can quickly restore...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Fatal Error
PostPosted: 03/26/2007 5:39 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
usaCa.gif
I did have a backup of the template.php file both on the server (renamed to template_old.php since the ES mod replaces it altogether) and I also had a backup on my hard drive but when I realized this morning there was an error, I put the backup template.php back on and it didn't fix it, at least I thought it didn't but maybe I messed something up in the mean time. It almost seems like the last few mods I have done have given me issue's and the backup's don't work. I should get back in the habit of using easyMOD again.
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Fatal Error
PostPosted: 03/26/2007 5:45 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
peace.gif
Yes, you should use EM to install every MOD.  Every MOD installed here in RCF was installed using EM.  Since EM doesn't make human mistakes, it is much more reliable than you could be on your best day.  And since we don't all have best days every day, it isn't a good risk to do things manually when you don't have to...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Fatal Error
PostPosted: 03/26/2007 6:28 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
usaCa.gif
I have been installing so many mods that weren't written for EM and I got lazy and was doing them by hand rather than trying to make them EM compliant. I can sometimes alter the install file to get it through but other times I have problems. I will be sure to ask for your help next time a mod isn't written for EM.

Also, after thinking about it for awhile I think I understand what happened (although I am still not sure why my backup didn't work)

I first installed the XS and it calls for replacing the whole template.php file. So I renamed current file and uploaded new. Right there is what went wrong, I didn't even think about whether there had been any previous edits to that file, ie: birthday mod. Now I feel silly!  Embarassed

It's all good learning experiences   hysterical2
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Fatal Error
PostPosted: 03/26/2007 10:16 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
peace.gif
I have converted a lot of MODs to be EM Friendly, so if you find one that isn't, there is a chance that I have already created a corrected version.  So it never hurts to ask.  Most of these non EM Friendly MODs are fairly easy to fix too...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0915s (PHP: 61% - SQL: 39%) - SQL queries: 58 - GZIP disabled - Debug on