7913 Posts in 1355 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: | 37854 Views |
-
Re: Bug Reports

3 November 2009 at 2:33am
SWF DEBUG: dataObjectFieldName=
There's your null value. Make sure you're defining everything correctly in your constructor.
-
Re: Bug Reports

3 November 2009 at 2:41am
Thanks for that. Make sure you're on the latest version. I believe someone put in this patch several weeks ago.
-
Re: Bug Reports

3 November 2009 at 4:08am Last edited: 3 November 2009 4:13am
Re my "SecurityID doesn't match, possible CRSF attack" posts of 10/28 and 10/31:
More on what's going on:
When the DataObjectManager_popup window is initialized for the first time, class Form's loadDataFrom method is called. The form knows it should have a SecurityID field (from the call to $this->fields->dataFields() on http://open.silverstripe.org/browser/modules/sapphire/trunk/forms/Form.php?rev=90075#L919). However, when loadDataFrom() iterates through $data, setting field values, it sets that SecurityID field's value to NULL because $data doesn't contain a SecurityID value (see http://open.silverstripe.org/browser/modules/sapphire/trunk/forms/Form.php?rev=90075#L950).Can someone help me resolve this?
Ben
-
Re: Bug Reports

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 barry@web1.co.nz
Thanks!
-
Re: Bug Reports

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.
-
Re: Bug Reports

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?
-
Re: Bug Reports

3 December 2009 at 10:57am
Hi,
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 [http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield&s=swfuploadfield] says to place
die('hello');
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: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
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/handleswfuploadI am certain that my assets directory is writeable.
Thanks in advance,
Garrett -
Re: Bug Reports

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,
Andy
| 37854 Views | ||
| Go to Top | Next > |




