Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 44430 Views
  • ss23
    Avatar
    Community Member
    5 Posts

    Re: Bug Reports Link to this post

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

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

  • WillSkeggs
    Avatar
    Community Member
    3 Posts

    Re: Bug Reports Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

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

  • Tjofras
    Avatar
    Community Member
    2 Posts

    Re: Bug Reports Link to this post

    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
    Avatar
    Community Member
    132 Posts

    Re: Bug Reports Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts
  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Bug Reports Link to this post

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

    44430 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.