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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Bug Reports


Go to End


297 Posts   102002 Views

Avatar
ss23

Community Member, 9 Posts

11 September 2009 at 5:54pm

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

Avatar
UncleCheese

Forum Moderator, 4102 Posts

12 September 2009 at 1:08am

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

Avatar
WillSkeggs

Community Member, 3 Posts

15 September 2009 at 6:29pm

Edited: 15/09/2009 6:30pm

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

16 September 2009 at 12:20am

I'm not seeing it. Can you replicate the issue on the demo site? http://dataobjectmanager.carlinowebdesign.com

Avatar
Tjofras

Community Member, 2 Posts

16 September 2009 at 1:51am

Edited: 16/09/2009 2:00am

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()

Avatar
Andrew Houle

Community Member, 140 Posts

17 September 2009 at 3:53am

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: http://64.30.240.50/dataobject_manager/javascript/dataobjectmanager_popup.js?m=1253116031
Line: 8

Any ideas about what could be wrong?

Thanks

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 September 2009 at 4:48am

Avatar
Andrew Houle

Community Member, 140 Posts

17 September 2009 at 4:59am

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

Go to Top