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
| Go to End | Next > | |
| Author | Topic: | 37652 Views |
-
Re: Bug Reports

30 September 2009 at 7:23am
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
-
Re: Bug Reports

8 October 2009 at 6:04pm
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.
-
Re: Bug Reports

13 October 2009 at 6:55pm
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: 403Happy to provide more info if I can.
Thanks,
HowardOh 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); } } } }); //]]>
-
Re: Bug Reports

14 October 2009 at 1:49pm Last edited: 14 October 2009 2:01pm
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.
-
Re: Bug Reports

14 October 2009 at 1:52pm
Yea you were right it was just a mod_security problem - I shoulda thought about that!
Thanks
-
Re: Bug Reports

14 October 2009 at 3:34pm
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().
-
Re: Bug Reports

14 October 2009 at 3:51pm Last edited: 14 October 2009 3:53pm
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 | ||
| Go to Top | Next > |



