SMF Support > SMF 1.1.x Support

SSI.php error: "Cannot redeclare ssi_shutdown()"

(1/2) > >>

Flat-Jack:
I am including the SSI.php file to get some information about the user and to display a welcome message, when outside the board, on an "normal" php-site, for example. (why i want to do this, i have described in this thread: http://www.simplemachines.org/community/index.php?topic=29797.0)

Afer switching from the older test server to the "live server", i now always get this message:

Fatal error: Cannot redeclare ssi_shutdown() in /srv/www/htdocs/user/html/forum/SSI.php on line 150

It is not a cookie problem (as found here in another shutdown_ssi problem), and it only appears in my theme, that means when using the standard theme, there is no error. but, after spending days and days making the theme look more like my old yabb board, i will not give this up anymore :-)

Perhaps i made a mistake with installing the theme, when i first started with the smf, i could not install or copy a theme because of missing writing permissions. I then made my changes to the "simple machines theme" and renamed it, it works pretty well on the old test server, but not on the other one andymore...  

thanks for your help!!!

[Unknown]:
Sounds like it's being included twice.  Try using "require_once" to include it.

-[Unknown]

Flat-Jack:
thanks for the quick reply!

require_once('SSI.php') instead of include()...? Sounds good, i'`ll try! But, what makes this so strange is that my complete theme works well on the "testing server" (using suse linux and a standard PHP), but not on the live-server with an self-compiled PHP - perhaps we forgot some extensions or mods to compile with, but i havent found anything about these requirements?

Flat-Jack:
actually, it seeams to work fine with require once!
thanks!

asa:
Where do you put require_once('SSI.php')?

Navigation

[0] Message Index

[#] Next page

Go to full version