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 forum.silverstripe.org 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   3204 Views

Avatar
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


<?php
global $project;
$project = 'mysite';

global $databaseConfig;

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


// Set the site locale
i18n::set_locale('en_GB');

// Set character type
MySQLDatabase::set_connection_charset('utf8');

// Set development mode //
Director::set_environment_type("dev");

// Set the current theme. 
SSViewer::set_theme('ss-bootstrap');

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

//Disable Boostrap items
BootstrapForm::set_bootstrap_included(true);
BootstrapForm::set_jquery_included(false);

Avatar
Devlin

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.

https://docs.silverstripe.org/en/3.2/changelogs/3.2.0/#major-changes

Avatar
Optic Blaze

Community Member, 190 Posts

9 December 2015 at 5:03am

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