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

Issue with Transferring Website from Online to Localhost

Go to End

2 Posts   1624 Views

Samba Sam

Community Member, 85 Posts

14 October 2009 at 2:07pm

Edited: 14/10/2009 2:11pm

I wish to make a functioning copy of live site on a XAMPP localhost.

This is what I did.
1) In PhpMyadmin, I created a new database on localhost and imported an exported copy of the live site database.
2) I then installed Silverstripe locally, entering the name of new database
3) I copied the "assets" folder, the "code" folder from "mysite" and the specific theme folder
from the live site into their respective folders in the locally installed SilverStripe folder.
4) I then refreshed the database "localhost/ss-connie/db/build?flush=1"
5) Realizing that I had imported an older version of the live site's database,
I deleted the database locally, created a new one and re-imported an up-to-date version.

Everything works fine, except I get the below error in CMS in the left tab area where I have the option of adding an image.

Any ideas?

GET /ss-connie/images/iframe/HomePage/4/LeftPhoto

Line 79 in C:\wamp\www\ss-connie\sapphire\core\ClassInfo.php

70 * @todo Move this into data object
71 * @return array
72 */
73 static function dataClassesFor($class) {
74 global $_ALL_CLASSES;
75 if (is_object($class)) $class = get_class($class);
77 $dataClasses = array();
79 if(!$_ALL_CLASSES['parents'][$class]) user_error("ClassInfo::dataClassesFor() no parents for $class", E_USER_WARNING);
80 foreach($_ALL_CLASSES['parents'][$class] as $subclass) {
81 if(DataObject::has_own_table($subclass)) $dataClasses[] = $subclass;
82 }
84 if(DataObject::has_own_table($class)) $dataClasses[] = $class;


* ClassInfo::dataClassesFor(image)
Line 2557 of DataObject.php
* DataObject::get_by_id(image,22)
Line 1041 of DataObject.php
* DataObject->getComponent(LeftPhoto)
* call_user_func_array(Array,Array)
Line 540 of Object.php
* Object->__call(LeftPhoto,Array)
* HomePage->LeftPhoto()
* call_user_func_array(Array,Array)
Line 318 of ViewableData.php
* ViewableData->obj(LeftPhoto)
Line 549 of Image.php
* Image_Uploader->Image()
Line 562 of Image.php
* Image_Uploader->IsImage()
Line 597 of Image.php
* Image_Uploader->EditImageForm()
* call_user_func_array(Array,Array)
Line 408 of ViewableData.php
* ViewableData->XML_val(EditImageForm,,1)
Line 983 of ViewableData.php
* ViewableData_Customised->XML_val(EditImageForm,,1)
Line 38 of
* include(C:\WINDOWS\Temp\silverstripe-cacheC--wamp-www-ss-connie\
Line 354 of SSViewer.php
* SSViewer->process(ViewableData_Customised)
Line 166 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/images/iframe/HomePage/4/LeftPhoto)
Line 118 of main.php

Samba Sam

Community Member, 85 Posts

14 October 2009 at 2:47pm

I found the source of the error.
It was in Page.php,
I hade somehow missed capitalizing the "Image" class as in:
static $has_one = array(
'LeftPhoto' => 'Image',
It was "=> 'image'"

Bye for now,