TinyPortal

Development => Support => Topic started by: ikbenivo on March 23, 2007, 10:40:10 AM

Title: [Solved]Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: ikbenivo on March 23, 2007, 10:40:10 AM
After updating to the latest version of tinyportal (through the package manager) I'm getting the following error:

Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /usr/local/psa/home/vhosts/waaromgod.nl/httpdocs/newforum/SSI.php:187) in /usr/local/psa/home/vhosts/waaromgod.nl/httpdocs/newforum/SSI.php on line 189

Any ideas how to fix this?
I can't enter the forum (and the admin area)

see: http://forum.waaromgod.nl/

Thanks in advance
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: G6Cad on March 23, 2007, 11:02:43 AM
If you can get to your admin panel, edit and dissable the ssi block/s you have activated and see if the error goes away.
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: ikbenivo on March 23, 2007, 11:10:41 AM
I can't get into my admin panel...
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: Lesmond on March 23, 2007, 11:40:53 AM
isn't That something to do with duplicated code? look at your SSI.php file see if any code is in twice
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: ikbenivo on March 23, 2007, 11:48:51 AM
I did check that (because I read that at the SMF forums) but everything seems to be in there once...
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: Resident Geek on March 23, 2007, 12:53:02 PM
Try searching for this:

function ssi_shutdown()

in SSI.php
Is it in the SSI more than once?
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: IchBin on March 23, 2007, 01:01:55 PM
attach your SSI.php file here if you'd like.
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: ikbenivo on March 23, 2007, 01:14:57 PM
thanks for the replies!
Here's my ssi.php file
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: Resident Geek on March 23, 2007, 01:19:23 PM
Doesn't look like its being redeclared.
I notice that you have the error showing up in a block.
Are you using a block code snippet perhaps?
Is so, maybe you could post that up?
I suspect that it's being redeclared from there.
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: IchBin on March 23, 2007, 01:23:21 PM
This is the reason you should turn blocks OFF while IN THE ADMIN section of your forum. If you can't get to your admin section because of this block, open up your index.template.php and search for leftbar.
Find this section of code:

if($context['TPortal']['leftbar'])

Change it to this:
if(empty($context['TPortal']['leftbar']))

This should disable your leftbar so you can go in and turn off your left block that is causing the problem. Remember to set your blocks to OFF in the admin section while you're at it. After you've fixed it just change the code back above.
Title: Re: Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: ikbenivo on March 23, 2007, 02:16:11 PM
thanks!
I've turned them off. I also found out what was causing the error. In my 'who's online' block there was a require ssi line of code. I've deleted that line, now it's working fine again.

Thanks for the support!
Title: Re: [Solved]Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: c2onex on March 27, 2008, 04:55:54 AM
I am having this same problem.

www.chaoticchaos.com

I cant find the code that fixes this.
Title: Re: [Solved]Help: Fatal error: Cannot redeclare ssi_shutdown()
Post by: IchBin on March 27, 2008, 01:08:09 PM
c2onex, there is no need to cross post when you have the same issue. Keep all your posts in your own topic. Then if you find something like this post that is the same as your issue, then reference this topic in your topic. We have a set of guidelines here that you need to follow when posting so that it keeps the forum organized and easy to search. Please follow them. Thank you.