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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Error when running /dev/build/ "Class 'SortableDataObject' not found


Go to End
Reply


14 Posts   5209 Views

Avatar
arthurdent

Community Member, 168 Posts

15 March 2012 at 10:35am

Edited: 15/03/2012 10:36am

10 months down the track and up against the same problem (never fixed it the first time)...

fabilo, thanks for your advice, which almost worked... got DataObjectManager and Gallery module loaded and client end of site still runs OK. However it appears to have screwed the SilverStripe CMS, which now won't load. Instead Firebug reports the following errors:

Class ss.i18n not defined
[Break On This Error] if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
en_US....8047221 (line 2)
Class ss.i18n not defined
[Break On This Error] if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
en_US....8047220 (line 2)
jQuery is not defined
[Break On This Error] })(jQuery);
Silver...8047221 (line 35)
Class is not defined
[Break On This Error] ToolbarForm = Class.create();
tiny_m...8047221 (line 1)
jQuery is not defined
[Break On This Error] })(jQuery);
jquery...8047221 (line 665)
jQuery is not defined
[Break On This Error] })(jQuery);
HtmlEd...8047221 (line 81)
Behaviour is not defined
[Break On This Error] Behaviour.addLoader(hideLoading);
admin (line 552)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 673)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 729)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 785)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 802)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 864)

Can anybody advise me -- be great to have this running!

thanks in advance...

Avatar
arthurdent

Community Member, 168 Posts

15 March 2012 at 3:43pm

Edited: 15/03/2012 3:49pm

OK, re-installed SilverStripe and loaded the Data Object Manager (dataobject_manager) first, then the Gallery Module. Now have the front and back end of the site working...

Apart from when I try to save a gallery page I now get another load of errors:

ERROR [Warning]: rename(/Users/Sites/herbs-tiling-SS/assets/image-gallery/Gallery-2/,/Users/Sites/herbs-tiling-SS/assets/image-gallery/Gallery-3/) [<a href='function.rename'>function.rename</a>]: No such file or directory
IN POST /Worksites/herbs-tiling-SS/admin/EditForm
Line 425 in /Users/Sites/herbs-tiling-SS/sapphire/filesystem/File.php

Source
======
416:             // Only throw a fatal error if *both* before and after paths don't exist.
417:             if(!file_exists($pathBeforeAbs)) throw new Exception("Cannot move $pathBefore to $pathAfter -
$pathBefore doesn't exist");
418:             
419:             // Check that target directory (not the file itself) exists.
420:             // Only check if we're dealing with a file, otherwise the folder will need to be created
421:             if(!file_exists(dirname($pathAfterAbs))) throw new Exception("Cannot move $pathBefore to
$pathAfter - Directory " . dirname($pathAfter) . " doesn't exist");
422:          }
423:          
424:          // Rename file or folder
* 425:          $success = rename($pathBeforeAbs, $pathAfterAbs);
426:          if(!$success) throw new Exception("Cannot move $pathBeforeAbs to $pathAfterAbs");
427:       }
428:       
429:       
430:       // Update any database references
431:       $this->updateLinks($pathBefore, $pathAfter);

Trace
=====
<ul>rename(/Users/Sites/herbs-tiling-SS/assets/image-gallery/Gallery-2/,/Users/Sites/herbs-tiling-SS/assets/image-gallery/Gallery-3/)
line 425 of File.php

File->updateFilesystem()
line 346 of Folder.php

Folder->updateFilesystem()
line 372 of File.php

File->onAfterWrite()
line 1056 of DataObject.php

DataObject->write()
line 91 of ImageGalleryPage.php

ImageGalleryPage->checkFolder()
line 63 of ImageGalleryPage.php

ImageGalleryPage->onAfterWrite()
line 1056 of DataObject.php

DataObject->write()
line 551 of Versioned.php

Versioned->publish(Stage,Live)

call_user_func_array(Array,Array)
line 693 of Object.php

Object->__call(publish,Array)

ImageGalleryPage->publish(Stage,Live)
line 2034 of SiteTree.php

SiteTree->doPublish()
line 776 of LeftAndMain.php

LeftAndMain->save(Array,Form,SS_HTTPRequest)
line 329 of Form.php

Form->httpSubmission(SS_HTTPRequest)
line 143 of RequestHandler.php

RequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.php

RequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.php

Controller->handleRequest(SS_HTTPRequest)
line 282 of Director.php

Director::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.php

Director::direct(/admin/EditForm)
line 127 of main.php

</ul>

Can anybody give me any further insights?

ps. 'The plot sickens...' now I've lost the CMS (again) which is reporting the following error:

Fatal error: Class 'ImageUploadField' not found in /Users/Sites/herbs-tiling-SS/modules-image_gallery-r536/code/ImageGalleryAlbum.php on line 27

Avatar
arthurdent

Community Member, 168 Posts

15 March 2012 at 4:07pm

Edited: 15/03/2012 4:07pm

UncleCheese posted the following solution:

Re: FileUploads and the DOM + SWFUpload Link to this post

30 March 2010 at 4:09am

Interesting.. looks like they finally sunsetted that Image_Uploader class. It's been obsolete ever since form fields became their own controllers. It seems like the fix might be as easy as changing the parent class from Image_Uploader to "FileIFrameField".. can you try that?

Thanks UncleCheese -- that got me one step further. Now it's giving me a choice of two further modules... will check them out!

Avatar
arthurdent

Community Member, 168 Posts

15 March 2012 at 4:13pm

Looks like Uploadify module cracked it -- we have a gallery!

Avatar
arthurdent

Community Member, 168 Posts

20 March 2012 at 5:17pm

Spoke too soon - we DO have a gallery, and we can even edit it in admin (once). But once we've logged out and try to get back in to the backend via admin SilverStripe has a spazz:

Class ss.i18n not defined
en_US.js?m=1328047221()en_US....8047221 (line 2)
[Break On This Error] if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
en_US....8047221 (line 2)
Class ss.i18n not defined
[Break On This Error] if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined');
en_US....8047220 (line 2)
jQuery is not defined
[Break On This Error] })(jQuery);
Silver...8047221 (line 35)
Class is not defined
[Break On This Error] ToolbarForm = Class.create();
tiny_m...8047221 (line 1)
jQuery is not defined
[Break On This Error] })(jQuery);
jquery...8047221 (line 665)
jQuery is not defined
[Break On This Error] })(jQuery);
HtmlEd...8047221 (line 81)
Behaviour is not defined
[Break On This Error] Behaviour.addLoader(hideLoading);
admin (line 556)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 677)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 733)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 789)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 806)
Behaviour is not defined
[Break On This Error] Behaviour.register({
admin (line 868)

Can somebody PLEASE tell me what on earth this all means - love SilverStripe but I'm trained as a designer, not a developer!!

Any and all suggestions appreciated!

Avatar
arthurdent

Community Member, 168 Posts

20 March 2012 at 5:37pm

Sean’s suggestion at the end of this thread cleared all errors:

[url]http://www.silverstripe.org/installing-silverstripe/show/14515[/url]

Thanks Sean!

Go to Top