SMF Support > SMF 2.0.x Support
SSI integration changed
Owdy:
I use custom pages. How this is changed?
--- Code: ---<?php
$ssi_gzip = true;
$ssi_ban = true;
$ssi_layers = array('main');
$context['page_title'] = 'ytutu.Net - haun tulokset';
ob_start();
$ssi = include('/var/www/fs5671/0/567567/public_html/foorumi/SSI.php');
if (!$ssi)
{
echo 'Serverillä näyttää olevan ongelmia. Ole hyvä ja yritä myöhemmin uudelleen.';
die;
}
?>
--- End code ---
codenaught:
Well for starters, there is no longer a layer called 'main'. It has been split into 'body' and 'html' layers.
So you would probably want to change the $ssi_layers part of code to:
--- Code: ---$ssi_layers = array('html', 'body');
--- End code ---
Owdy:
Okay, now i get
--- Code: ---Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /var/www/fs1/0/public_html/foorumi/SSI.php:182) in /var/www/fs1/0/public_html/tetst/SSI.php on line 184
--- End code ---
edit: wait a minute. That second path is wrong. Hmmm, wonder why.
codenaught:
You don't happen to have ssi_shutdown() declared a second time anywhere do you?
It seems from the error message you may be loading SSI from both /foorumi/SSI.php and tetst/SSI.php at the same time?
metallica48423:
try using require_once() or include_once on SSI.php instead of include or require.
For some strange reason i found that i had this happen for some reason in my script.
Navigation
[0] Message Index
[#] Next page
Go to full version