Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: littleone on October 07, 2005, 02:33:03 PM

Title: Help!
Post by: littleone on October 07, 2005, 02:33:03 PM
Fatal error: Cannot redeclare template_init() (previously declared in /home/pogoaddi/public_html/pogoaddictionforum/Sources/Load.php(1056) : eval()'d code:32) in /home/pogoaddi/public_html/pogoaddictionforum/Sources/Load.php(1056) : eval()'d code on line 30

I am getting that message when I try to log into my forum.  All I did before this error was run the upgrade.php.  Yes, I did delete it afterwards.  I had to run that because I upgraded my shop and it told me that there was a problem with the security still at 1.0.2 so I did the upgrade.php and it fixed that problem.  No I got the above problem.  Here is my code, with line 30 being the first line:

function reloadSettings()
{
global $modSettings, $db_prefix, $txt;

// Clear it out first.
$modSettings = array();

$request = db_query("
SELECT variable, value
FROM {$db_prefix}settings", __FILE__, __LINE__);
while ($row = mysql_fetch_row($request))
$modSettings[$row[0]] = $row[1];
mysql_free_result($request);
Title: Re: Help!
Post by: Oldiesmann on October 07, 2005, 02:53:25 PM
Upload a fresh copy of index.template.php
Title: Re: Help!
Post by: littleone on October 07, 2005, 02:56:43 PM
If I have mods and so a theme template, will those be affected?  Also where do I put this index.template.php?  which folder?  or is it the main forum folder?
Title: Re: Help!
Post by: Oldiesmann on October 07, 2005, 03:24:34 PM
If any of the mods changed index.template.php then yes, they would be affected.

You put index.template.php in Themes/{yourtheme}, where {yourtheme} is the name of the theme you're using.