Jump to:

7911 Posts in 1354 Topics by 930 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., 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: 37652 Views
  • ss23
    Avatar
    Community Member
    5 Posts

    Re: Bug Reports Link to this post

    Thanks a bunch UncleCheese, seems to be working amazingly.
    If I do find any issues, I'll just post again here, but seems to be fine

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: Bug Reports Link to this post

    There seems to be an issue with the Event Calendar in second languages (using translatable) when trying to add an announcement in the second language. After studying the code for a day I think this is DataObjectManager related, and that's why I post it here now.

    Event Calendar works fine with Translatable, except when trying to add announcements to the calendar in the second language. When clicking the "add announcement" button, instead of the form there appears the error message:
    "I can't handle sub-URLs of a CMSMain object."

    When adding announcements manually to the database table CalendarDateTime they are displayed correctly, on the site and in the CMS. However when trying to edit them in the CMS (in the second language) the same "can't handle sub-URLs" error appears.

  • Howard
    Avatar
    Forum Moderator
    215 Posts

    Re: Bug Reports Link to this post

    Hi UncleCheese,

    Having an issue with the SWFUpload. It isn't working to upload any file in either the FDOM and AssetAdmin. If I try to upload the same files into the same folder without using SWF then it works. I have the latest trunk for both DOM and SWFUpload. I turned on Debug and I am getting 403 http errors. I put die("Hello"); into FDOM.php in the 1st line of handlesswfupload but I never get the message - it goes straight to the "An error occurred in the upload. Try again later.". The permissions are all set to 775 with apache as the group but not owner. Using SS 2.3.3.

    The bottom of the debug is here

    SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://www.dcbc.co.nz/ss/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0
    SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
    SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 403.
    SWF DEBUG: Event: uploadComplete : Upload cycle complete.
    Error Code: -200, File name: Newsletter.pdf, File size: 9256, Message: 403

    Happy to provide more info if I can.

    Thanks,
    Howard

    Oh and P.S. this is printing in the top of the CMS - see screenshot http://img203.yfrog.com/img203/3174/screenshot20091013at648.png

    Don't perform instant validation for CalendarDateField fields; it creates usability wierdness. if(this.parentNode.className.indexOf('calendardate') == -1 || this.value) { return $('Form_EditorToolbarLinkForm').validate(this); } else { return true; } } } }, '#Form_EditorToolbarLinkForm select' : { initialise: function() { if(!this.old_onblur) this.old_onblur = function() { return true; } }, onblur : function() { if(this.old_onblur()) { return $('Form_EditorToolbarLinkForm').validate(this); } } } }); //]]>

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Have you confirmed that mod_security is not running?

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: Bug Reports Link to this post

    Hi Uncle, i have a weird problem with ImageDataObjectManager, i cant import images from folders:

    this is my code...

          $Ads = new ImageDataObjectManager(
           $this,
           'InteractionBanners',
           'InteractionBanner',
             'InteractionBtn',
           array(
                'LinkText' => 'LinkText',
                'Link' => 'Link'
           ),
           'getCMSFields_forPopup'
          );
          
          $Ads->setPageSize(100);
          $f->addFieldToTab( 'Root.Content.InteractionBanners', $Ads );

    i dont understand what is missing, but if i upload a new file this file all works ok.

  • Howard
    Avatar
    Forum Moderator
    215 Posts

    Re: Bug Reports Link to this post

    Yea you were right it was just a mod_security problem - I shoulda thought about that!

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    File types that are not in the allowedFileTypes array will get greyed out. In ImageDOM, I believe that defaults to gif, jpg, and png. You can always set it manually with setAllowedFileTypes().

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: Bug Reports Link to this post

    thanks for the quick response

    i have tried this:

          $Ads = new ImageDataObjectManager(
           $this,
           'InteractionBanners',
           'InteractionBanner',
             'InteractionBtn',
           array(
                'LinkText' => 'LinkText',
                'Link' => 'Link'
           ),
           'getCMSFields_forPopup'
          );
          $Ads->setAllowedFileTypes(array('jpg','png','gif'));

    but i think thats not the way it works.. can you provide an example?

    when i have added that i get a blank screen with the following error:

    ImageDataObjectManager::setAllowedFileTypes() -- Only files of type jpg, jpeg are allowed.

    37652 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.