Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: malfunkshun on May 03, 2008, 02:22:10 PM

Title: SSI_shutdown problem?
Post by: malfunkshun on May 03, 2008, 02:22:10 PM
hello folks
I have been putting a site together, all the forum mods appear to work nicely. However for the rest of the webpages I have used some SSI calls to display forum data, as you do. Now, the initial page I was making was working fine ( I only put the CSS layout and the includes on it to test them) but now when I open the page, or the ssi examples page i received the following

QuoteFatal error: Cannot redeclare ssi_shutdown() (previously declared in /home/fhlinux173/f/forums.god-clan.co.uk/user/htdocs/smf_1-1-4_install/SSI.php:186) in /home/fhlinux173/f/forums.god-clan.co.uk/user/htdocs/smf_1-1-4_install/SSI.php on line 188

Any ideas?
Title: Re: SSI_shutdown problem?
Post by: malfunkshun on May 04, 2008, 05:31:21 AM
fixed!
Title: Re: SSI_shutdown problem?
Post by: metallica48423 on May 05, 2008, 03:50:51 AM
For those wondering, quite often this error is caused by SSI.php being included more than once.

I reccommend using require_once() or include_once() rather than include