Jump to:

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

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: 37854 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    SWF DEBUG: dataObjectFieldName=

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Thanks for that. Make sure you're on the latest version. I believe someone put in this patch several weeks ago.

  • Ben Gribaudo
    Avatar
    Community Member
    181 Posts

    Re: Bug Reports Link to this post

    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

  • keeny
    Avatar
    Community Member
    48 Posts

    Re: Bug Reports Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    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.

  • cinek
    Avatar
    Community Member
    17 Posts

    Re: Bug Reports Link to this post

    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?

  • Garrett
    Avatar
    Community Member
    245 Posts

    Re: Bug Reports Link to this post

    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/handleswfupload

    I am certain that my assets directory is writeable.

    Thanks in advance,
    Garrett

  • Andrew Houle
    Avatar
    Community Member
    132 Posts

    Re: Bug Reports Link to this post

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