>Zeroさん
レスありがとうございます :)
SSI.phpのソースですが、
// We're going to want a few globals... these are all set later.
global $time_start, $maintenance, $msubject, $mmessage, $mbname, $language;
global $boardurl, $boarddir, $sourcedir, $webmaster_email, $cookiename;
global $db_server, $db_name, $db_user, $db_prefix, $db_persist, $db_error_send, $db_la
st_error;
global $db_connection, $modSettings, $context, $sc, $user_info, $topic, $board, $txt;
// Remember the current configuration so it can be set back.
$ssi_magic_quotes_runtime = get_magic_quotes_runtime();
@set_magic_quotes_runtime(0);
$time_start = microtime();
// Get the forum's settings for database and file paths.
require_once(dirname(__FILE__) . '/Settings.php');
$ssi_error_reporting = error_reporting(E_ALL);
// Don't do john didley if the forum's been shut down competely.
if ($maintenance == 2 && (!isset($ssi_maintenance_off) || $ssi_maintenance_off !== tru
e))
die($mmessage);
// Fix for using the current directory as a path.
if (substr($sourcedir, 0, 1) == '.' && substr($sourcedir, 1, 1) != '.')
$sourcedir = dirname(__FILE__) . substr($sourcedir, 1);
// Load the important includes.
require_once($sourcedir . '/QueryString.php');
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Security.php');
となっています。
実は先ほど、$sourcedirやその他のデータベースの設定値をSetting.phpから読み出している部分の
require_once(dirname(__FILE__) . ’/Settings.php’);
を
require(dirname(__FILE__) . ’/Settings.php’);
としましたら、とりあえずエラーが消えてしまいました

phpをキチンと理解していないのですが、require_onceは既にコードが読み込まれていれば実行しないということですよね。
SSI.phpを読み出している、スニペットSMFssi側では、Setting.phpを読み出していないので、SSI.phpを実行した時に、初めて Setting.phpが読み込まれていると思うので、なぜこうなるのか不思議です。
リダイレクト(というか同じページに飛ぶのでリフレッシュ)でごく短時間に繰り返し実行されて、おかしくなるということってないでしょうか・・・・