Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: ktk070 - toukokuu 12, 2006, 04:29:57 AP

Otsikko: Cannot redeclare ssi_shutdown() - Error
Kirjoitti: ktk070 - toukokuu 12, 2006, 04:29:57 AP
Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/wilvers/public_html/forum/SSI.php:180) in /home/wilvers/public_html/forum/SSI.php on line 182

Does anyone have any ideas why this is happening. We searched through all the files and ssi_shutdown() is not redeclared anywhere as far as we can see.

Thanks,

Andrew
Otsikko: Re: Cannot redeclare ssi_shutdown() - Error
Kirjoitti: kegobeer - toukokuu 12, 2006, 06:38:28 AP
If you get that message, that function is declared at least twice.  If you include or require SSI.php more than once, you can get that type of error.

Look at the file that calls SSI.php and examine every other file that's included/required along the way.  Unfortunately, you'll just have to look thru every single file that you are using in your page and figure out where this is happening.
Otsikko: Re: Cannot redeclare ssi_shutdown() - Error
Kirjoitti: Oldiesmann - toukokuu 12, 2006, 11:23:02 AP
The error message seems to indicate that the function somehow got declared twice in the same file. Open up SSI.php and make sure that function is only in there once.
Otsikko: Re: Cannot redeclare ssi_shutdown() - Error
Kirjoitti: Harzem - toukokuu 13, 2006, 07:57:13 IP
What was the last action you have done on your forum? Like installing a portal or something?