SimplePortal

Support => English Support => Topic started by: Walgermo on August 09, 2009, 09:48:46 AM

Title: Update, error: Unable to load the 'main' template. (Fixed!)
Post 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"`?
Title: Re: Redeclare error updating to 2.2.2
Post by: [SiNaN] on August 09, 2009, 10:25:19 AM
Are you sure you didn't use 2.3 RC1 package?
Title: Re: Redeclare error updating to 2.2.2
Post by: Walgermo on August 09, 2009, 04:18:29 PM
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  :(
Title: Re: Update, error: couldnt load main
Post by: Walgermo on August 09, 2009, 05:47:40 PM
update, bumb.. se above post!
Title: Re: Update, error: couldnt load main
Post by: Walgermo on August 09, 2009, 06:02:09 PM
I think the problems is here somewhere, can somebody check the index file and see if this is the same.. (Bad English)  :(

Quote
   
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.
Title: Re: Update, error: Unable to load the 'main' template. (Fixed!)
Post by: Walgermo on August 09, 2009, 07:53:46 PM
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:
Quote

// Catch the action


the missing code:
Quote
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..  :-[
SimplePortal 2.3.8 © 2008-2024, SimplePortal