7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Error when running /dev/build/ "Class 'SortableDataObject' not found
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 4098 Views |
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

15 March 2012 at 10:35am Last edited: 15 March 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...
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

15 March 2012 at 3:43pm Last edited: 15 March 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.phpSource
======
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.phpFile->updateFilesystem()
line 346 of Folder.phpFolder->updateFilesystem()
line 372 of File.phpFile->onAfterWrite()
line 1056 of DataObject.phpDataObject->write()
line 91 of ImageGalleryPage.phpImageGalleryPage->checkFolder()
line 63 of ImageGalleryPage.phpImageGalleryPage->onAfterWrite()
line 1056 of DataObject.phpDataObject->write()
line 551 of Versioned.phpVersioned->publish(Stage,Live)
call_user_func_array(Array,Array)
line 693 of Object.phpObject->__call(publish,Array)
ImageGalleryPage->publish(Stage,Live)
line 2034 of SiteTree.phpSiteTree->doPublish()
line 776 of LeftAndMain.phpLeftAndMain->save(Array,Form,SS_HTTPRequest)
line 329 of Form.phpForm->httpSubmission(SS_HTTPRequest)
line 143 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 161 of RequestHandler.phpRequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.phpController->handleRequest(SS_HTTPRequest)
line 282 of Director.phpDirector::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.phpDirector::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
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

15 March 2012 at 4:07pm Last edited: 15 March 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!
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

15 March 2012 at 4:13pm
Looks like Uploadify module cracked it -- we have a gallery!
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

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!
-
Re: Error when running /dev/build/ "Class 'SortableDataObject' not found

20 March 2012 at 5:37pm
Sean’s suggestion at the end of this thread cleared all errors:
http://www.silverstripe.org/installing-silverstripe/show/14515
Thanks Sean!
| 4098 Views | ||
| Go to Top |

