17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1703 Views |
-
Unable to start CMS for the first time...

1 April 2008 at 1:34am Last edited: 1 April 2008 1:35am
Hi,
I just installed (followed the tutorial) SilverStripe, and I'm unable to view my site, not the CMS...
I have Apache and MySql installed before I installed SilverStripe... but it shouldn't affect it...when I open the CMS I get this error:
FATAL ERROR: Invalid argument supplied for foreach()
At line 327 in C:\Program Files\SilverStripe\htdocs\sapphire\core\model\Database.phpDatabase->manipulate()
line 92 of DB.phpDB::manipulate()
line 567 of DataObject.phpDataObject->write(1)
line 50 of PageView.phpPageView->record()
line 171 of Statistics.phpStatistics::collect()
line 75 of ContentController.phpContentController->init()
line 12 of Page.phpPage_Controller->init()
line 244 of Security.phpSecurity->login(Array)
line 210 of Controller.phpController->run(Array)
line 76 of Director.phpDirector::direct(/Security/login)
line 104 of main.phpContext
--------------------------------------------------------------------------------
Debug (Debug::showError() in line 149 of Debug.php)
manipulation =
When I open my site I get this error:
FATAL ERROR: DataObject::buildSQL: Can't find data classes (classes linked to tables) for SiteTree
At line 1334 in C:\Program Files\SilverStripe\htdocs\sapphire\core\model\DataObject.phpuser_error(DataObject::buildSQL: Can't find data classes (classes linked to tables) for SiteTree,256)
line 1334 of DataObject.phpDataObject->buildSQL(HomepageForDomain = 'localhost:3000')
line 1543 of DataObject.phpDataObject->instance_get_one(HomepageForDomain = 'localhost:3000',)
line 1504 of DataObject.phpDataObject::get_one(SiteTree,HomepageForDomain = 'localhost:3000')
line 32 of RootURLController.phpRootURLController::get_homepage_urlsegment()
line 15 of RootURLController.phpRootURLController->run(Array)
line 76 of Director.phpDirector::direct(/)
line 104 of main.phpContext
--------------------------------------------------------------------------------
Debug (Debug::showError() in line 149 of Debug.php)
filter =
HomepageForDomain = 'localhost:3000'
sort =
Sort
limit =join =
restrictClasses =
1
having =tableClasses =
Thanks
Gil Amran -
Re: Unable to start CMS for the first time...

1 April 2008 at 1:46am
It looks like there is a code/<classfile>.php file missing. Your database thinks it should be there but it isn't. If that isn't it, have you have created a DataObject in a tutorial? Maybe there is a spelling mistake on the $obj definition.
-
Re: Unable to start CMS for the first time...

1 April 2008 at 2:42pm
1) Check that mysite/_config.php exists.
2) Visit http://yoursite.com/db/build?flush=1 and see if it returns any errors.If db/build?flush=1 runs without error, try visiting the site or CMS again - that may have fixed it.
| 1703 Views | ||
|
Page:
1
|
Go to Top |



