Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba & 2.3.3 & Fatal error: Class 'Debug' not found

Go to End



Community Member, 30 Posts

19 November 2009 at 3:23am


According to this post and other forum posts default silverstripe installation doesn't work on (polish hosting). One of messages is "Fatal error: Class 'Debug' not found.....".

Solution (for version 2.3.3) is to make this changes:

1. Controller.php->redirect()


if (substr($url, 0, 1) == '/') {
$url = 'http://' . $_SERVER['HTTP_HOST'] . $url;


$this->response->redirect($url, $code);

2. Core.php

change constant (by adding ."/.."):

define('BASE_PATH', rtrim(dirname(dirname($_SERVER['SCRIPT_FILENAME']))."/..", DIRECTORY_SEPARATOR));

3. Director.php->direct()

Comment last parameter - for POST calls (on function @file_get_contents('php://input') doesn't work

$req = new HTTPRequest(
(isset($_SERVER['X-HTTP-Method-Override'])) ? $_SERVER['X-HTTP-Method-Override'] : $_SERVER['REQUEST_METHOD'],
array_merge((array)$_POST, (array)$_FILES),
'' /*@file_get_contents('php://input')*/

Last change modifies function by setting last parameter to null. Does anybody know it can cause any problems with page?