Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, 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: 44667 Views
  • 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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

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

  • zenmonkey
    Avatar
    Community Member
    524 Posts

    Re: Bug Reports Link to this post

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

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Bug Reports Link to this post

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

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