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've moved the forum!

Please use for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Fatal error: Class 'SiteConfig' not found

Go to End

3 Posts   3763 Views

Optic Blaze

Community Member, 190 Posts

8 December 2015 at 10:52am

Hi there,

I am upgrading a site from SS3.1.2 to 3.2.1 and i get the following error code: Fatal error: Class 'SiteConfig' not found in ... /cms/code/model/SiteTree.php on line 1152.

Anybody have a clue where to start looking for a solution to this. I could not find anything obvious. This is what my config file looks like

global $project;
$project = 'mysite';

global $databaseConfig;

$databaseConfig = array(
	"type" => 'MySQLDatabase',
	"server" => 'xxxxxx',
	"username" => 'xxxxx',
	"password" => 'xxxxx',
	"database" => 'xxxxx',
	"path" => '',

// Set the site locale

// Set character type

// Set development mode //

// Set the current theme. 

// Enable nested URLs for this site (e.g. page/sub-page/)
if(class_exists('SiteTree')) SiteTree::enable_nested_urls();

//Disable Boostrap items


Community Member, 344 Posts

9 December 2015 at 4:53am

SiteConfig (and Reports) got moved to their own seperate modules and are not part of the framework anymore.

Optic Blaze

Community Member, 190 Posts

9 December 2015 at 5:03am

ahhhh. that makes a lot of sense. thanks. will check it out.