SimplePortal
Support => English Support => Topic started by: Walgermo on August 09, 2009, 09:48:46 AM
-
Fatal error: Cannot redeclare sportal_init() (previously declared in /customers/**********.com/*********.com/httpd.www/Sources/Subs-Portal.php:89) in /customers/**********.com/**********.com/httpd.www/Sources/SPortal2.php on line 304
cant fint sportal_init more then once in this file :(
is there anywhere else this could be "redeclared"`?
-
Are you sure you didn't use 2.3 RC1 package?
-
Are you sure you didn't use 2.3 RC1 package?
correct, was in a hurry, error updating from 2.2.2 to the RC
my site is still down.. :'(
bad move!?
Update* followed the manual install on smf, now got the following message on the forum/mainpage couldtn load main template?
not even the admin page :(
-
update, bumb.. se above post!
-
I think the problems is here somewhere, can somebody check the index file and see if this is the same.. (Bad English) :(
elseif (empty($_REQUEST['action']))
{
// Go catch it boy! Catch it!
$sp_action = sportal_catch_action();
if ($sp_action)
return $sp_action;
// Action and board are both empty... BoardIndex!
elseif (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . '/Display.php');
return 'Display';
}
}
the frontpage works now, but not the forum, admin, still got the "Unable to load the 'main' template." message.
-
Found the "error" looked over the local backup of my site and discover some missing code at the end of the index file !! omg lol.. must have hit delete sometime and marked the lines whitout noticing that. :(
yeey, finally i can start testing the 2.3 RC1 :nervous-happy:
End of the index file before fix:
// Catch the action
the missing code:
if (!empty($settings['catch_action']))
{
require_once($sourcedir . '/Themes.php');
return 'WrapAction';
}
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}
?>
SP team u are doing a great job, sorry for the spam.. :-[