News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Help!

Started by littleone, October 07, 2005, 02:33:03 PM

Previous topic - Next topic

littleone

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);

Oldiesmann

Upload a fresh copy of index.template.php
Michael Eshom
Christian Metal Fans

littleone

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?

Oldiesmann

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.
Michael Eshom
Christian Metal Fans

Advertisement: