I've taken on managing this site http://foxtrotters.co.nz/ that has recently thrown up the white screen of death. I've turned on error reporting and these are the errors:
Notice: Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' in /home/foxtrotter/domains/foxtrotters.co.nz/public_html/foxtrotters/_config.php on line 4
Notice: Use of undefined constant HTTP_HOST - assumed 'HTTP_HOST' in /home/foxtrotter/domains/foxtrotters.co.nz/public_html/foxtrotters/_config.php on line 8
_config file:
<?
error_reporting(E_ALL);
if($_SERVER[HTTP_HOST] == "test") {
header("Location: http://test.totallydigital.co.nz$_SERVER[REQUEST_URI]");
die();
}
if($_SERVER[HTTP_HOST] == "dev") {
header("Location: http://dev.totallydigital.co.nz$_SERVER[REQUEST_URI]");
die();
}
global $project;
$project = "foxtrotters";
$databaseConfig = array(
"type" => "MySQLDatabase",
"server" => "localhost",
"username" => "xxxxxxx",
"password" => "xxxxxxx",
"database" => "xxxxxxx",
);
Director::addRules(100, array(
));
Debug::sendLiveErrorsTo("support@silverstripe.com");
Security::setDefaultAdmin("", "");
?>
Have a look for yourself.
Any ideas?