 | [Solved] Fatal Error |  |
Posted: 03/26/2007 9:57 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
|

|
|
|
|
 |
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 /> • <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.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Fatal Error |  |
Posted: 03/26/2007 4:38 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Fatal Error |  |
Posted: 03/26/2007 5:02 PM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
|

|
|
|
|
 |
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.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Fatal Error |  |
Posted: 03/26/2007 5:13 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Fatal Error |  |
Posted: 03/26/2007 5:21 PM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
|

|
|
|
|
 |
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.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Fatal Error |  |
Posted: 03/26/2007 5:33 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Fatal Error |  |
Posted: 03/26/2007 5:39 PM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
|

|
|
|
|
 |
| 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 |
|
|
 | Re: Fatal Error |  |
Posted: 03/26/2007 5:45 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Fatal Error |  |
Posted: 03/26/2007 6:28 PM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 6:01 PM
Location: Denver, PA
|

|
|
|
|
 |
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!
It's all good learning experiences  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Fatal Error |  |
Posted: 03/26/2007 10:16 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:01 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|