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

Bug Reports


297 Posts   49717 Views


11 September 2009 at 5:54pm Community Member, 8 Posts

Would it be possible to estimate a time frame for a release of a bug fix of the above mentioned bug?


12 September 2009 at 1:08am 4085 Posts

The image path bug? That was fixed right after it was posted.


15 September 2009 at 6:29pm (Last edited: 15 September 2009 6:30pm), Community Member, 3 Posts

Hi UncleCheese

I get a error with 2.3.3 when accessing my gallery page from the frontend.

Fatal error: Argument 1 passed to ImageGalleryUI::updateItems() must not be null, called in /httpdocs/dev/image_gallery/code/ImageGalleryPage.php on line 268 and defined in /httpdocs/dev/image_gallery/gallery_ui/ImageGalleryUI.php on line 18.

I am using the latest trunk as of this point.


16 September 2009 at 12:20am 4085 Posts

I'm not seeing it. Can you replicate the issue on the demo site?


16 September 2009 at 1:51am (Last edited: 16 September 2009 2:00am), Community Member, 2 Posts

I found a bug in the FileDataObjectManager when used on a multilanguage site.
When trying to upload a file the iframe popup is empty.
After some digging i found that the href on the upload link was "admin/EditForm/field/Resources?locale=sv_SE/upload". Witch obviously is wrong. There was also a problem with the import button that was related.

This was very easy to fix and here is the patch for it:

Index: FileDataObjectManager.php
--- FileDataObjectManager.php   (revision 274)
+++ FileDataObjectManager.php   (working copy)
@@ -123,7 +123,7 @@
   protected function importLinkFor($file)
-      return $this->BaseLink()."/import/$file->ID";
+      return Controller::join_links($this->BaseLink(), "/import/$file->ID");
   protected function getImportFolderHierarchy($parentID, $level = 0)
@@ -233,7 +233,7 @@
   public function UploadLink()
-      return $this->BaseLink().'/upload';
+      return Controller::join_links($this->BaseLink(), '/upload');
   protected function getUploadFields()

Andrew Houle

17 September 2009 at 3:53am Community Member, 132 Posts

Hi Uncle Cheese,

I've just uploaded a fresh install of SS 2.3.3 and the newest versions of dataobject_manager and swf_upload. Then to test things out I used the sample resource code. When I go to add a dataobject the upload field does not show and the error console in Firefox shows...
Error: jQuery is not defined
Source File:
Line: 8

Any ideas about what could be wrong?



17 September 2009 at 4:48am 4085 Posts

Did you try this solution?

Andrew Houle

17 September 2009 at 4:59am Community Member, 132 Posts

Strange. Well that fix cleared the js error, but the upload button is still non-existent when using the FileDataObjectManager