TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,245
  • Total Topics: 21,354
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 166
  • Total: 167
  • @rjen

[Solved]Help: Fatal error: Cannot redeclare ssi_shutdown()

Started by ikbenivo, March 23, 2007, 10:40:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ikbenivo

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

G6Cad

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.

ikbenivo


Lesmond

isn't That something to do with duplicated code? look at your SSI.php file see if any code is in twice

ikbenivo

I did check that (because I read that at the SMF forums) but everything seems to be in there once...

Resident Geek

Try searching for this:

function ssi_shutdown()

in SSI.php
Is it in the SSI more than once?

IchBin


ikbenivo


Resident Geek

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.

IchBin

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.