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, Ed, biapar, Willr, Ingo, swaiba

Bug Reports

Go to End

297 Posts   73330 Views


Community Member, 48 Posts

3 November 2009 at 10:20am

Hi Uncle,

> There's your null value. Make sure you're defining everything correctly in your constructor.

But that's just it - I'm not constructing anything - this is happening in 'Files & Images' in the cms. Would you be willing to provide paid support for this? You can contact me on



Forum Moderator, 4102 Posts

10 November 2009 at 6:09am

I've been tracking down the SecurityID issue for the last 4 hours. Finally got to the bottom of it, but I don't have a fix right now. It boils down to what appears to be faulty coding by Silverstripe, but I'm not entirely sure.

When the loadDataFrom() method is executed, it tries to get the value of each field name. The first check it runs is whether the object has the method "FieldName". SecurityID passes this test, because ViewableData contains the function SecurityID() -- probably patchwork to make it work with the form class.

But then, instead of just invoking $object->SecurityID(), it calls $object->__get('SecurityID'), which looks not for a method named "SecurityID", but rather one named "getSecurityID()". This is a huge hole in the code, and i'm really surprised that other stuff is not breaking.

I have a support call scheduled with SS. Hopefully, they're willing to support the trunk version, or at the very least, tell me this will be cleared up by RC1, because I'm at a loss.


Community Member, 17 Posts

13 November 2009 at 10:28am

Bulk import dropdown field doesn't show files nor directories until they are viewed in the "Files & Images" panel.

It looks like the FileDataObjectManager::getimportFolderHierarchy fetches information on the folders and files from database, not the filesystem (can this be right?).

BTW: is there a better way to report a bug than this long topic?


Community Member, 245 Posts

3 December 2009 at 10:57am


I'm getting that classic "An error occurred in your upload. The server did not accept it." error when attempting to upload on the Files & Images tab. I was advised to follow the Troubleshooting guide on SWFUploadField in order to debug it, but the VERY first step already fails. The guide [] says to place


In the first line of the function handleswfupload(), which I did. Then it says when I run an upload, I'm supposed to get an alert message that says “Server said hello". Buuuut I don't! I just get the same alert message as above. So even the debugging isn't working. The tail of my SWFUploadConfig::debug() log is below:

SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: dataObjectClassName=File
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: fileFieldName=Files
SWF DEBUG: Global Post Item: controllerID=1
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038: File I/O Error. URL: http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -220, File name: LookSmartLtd.corporategovernanceguidelines.pdf, File size: 249312, Message: Error #2038: File I/O Error. URL: http://localhost:88/looksmart-prod/FileDataObjectManager_Controller/handleswfupload

I am certain that my assets directory is writeable.

Thanks in advance,

Andrew Houle

Community Member, 140 Posts

5 December 2009 at 3:57am

The popup for the Dataobject manager doesn't work properly in IE 8. It opens as a full page. Also the tinymce WYSIWYG doesn't populate the buttons, it just shows as a textarea field with the HTML showing. Is there a fix for this? Has anyone else experienced these issues?

Thanks in advance,


Forum Moderator, 4102 Posts

5 December 2009 at 3:59am

Facebox isn't IE8 compatible. :( I'm working on finding a new modal window solution.


Community Member, 545 Posts

5 December 2009 at 4:06am

I've switched to colorbox, doesn't seem to have any issues in the front end on IE8


Community Member, 271 Posts

5 December 2009 at 4:27am

I don't know if you can add extra metatags in admin and I'm not shure it helps, but you can try to add this to let ie8 render as ie7:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Go to Top