Jump to:

7940 Posts in 1543 Topics by 946 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: 49555 Views
  • Mad_Clog
    Avatar
    Community Member
    78 Posts

    Re: Bug Reports Link to this post

    Proposed bugfix for bug posted above

    File: ManyManyDataObjectDecorator.php
    Line: 183

    Old code

       public function Sortable()
       {
        return (SortableDataObject::is_sortable_many_many($this->sourceClass())) || (SortableDataObject::is_sortable_class($this->sourceClass()));
       }

    New code

       public function Sortable()
       {
          return (
              $this->IsReadOnly !== true &&
              $this->controller->canEdit(Member::currentUser()) &&
              (
                 SortableDataObject::is_sortable_many_many($this->sourceClass()) ||
                 SortableDataObject::is_sortable_class($this->sourceClass())
              )
           );
       }

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Guys, all you have to do to maintain persistent sessions in PHP is to pass the session id in the request. In SWFUploadField.php, add this line in the constructor, somewhere before the Bootstrap() function.

          SWFUploadConfig::addPostParam('PHPSESSID',session_id());         

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    BTW, I've checked in this fix as well as Mad_Clog's sortable fix.

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: Bug Reports Link to this post

    My environment:
    SS 2.4
    dataobject_manager r403

    My issue:
    Uploads seem to hang after completing the upload process, and just sit there saying "processing" with no error

    Debug log:

    ---SWFUpload Instance Info---
    Version: 2.2.0 Alpha
    Movie Name: SWFUpload_0
    Settings:
       upload_url: http://kopymark.com/staging/juncken/FileDataObjectManager_Controller/handleswfupload
       flash_url: http://kopymark.com/staging/juncken/swfupload/javascript/swfupload.swf?swfuploadrnd=305679923
       use_query_string: false
       file_post_name: swfupload_file
       post_params: [object Object]
       file_types: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;
       file_types_description:
       file_size_limit: 2MB
       file_upload_limit: 20
       file_queue_limit: 20
       debug: true
       prevent_swf_caching: true
       button_placeholder_id: spanButtonPlaceholder
       button_image_url: http://kopymark.com/staging/juncken/swfupload/images/upload_button.png
       button_width: 180
       button_height: 24
       button_text: <span class='button'>Upload Image</span>
       button_text_style: .button { font-family: Helvetica, Arial, sans-serif; font-size: 12px; }
       button_text_top_padding: 6
       button_text_left_padding: 6
       button_action: -110
       button_disabled: false
       custom_settings: [object Object]
    Event Handlers:
       swfupload_loaded_handler assigned: true
       file_dialog_start_handler assigned: true
       file_queued_handler assigned: true
       file_queue_error_handler assigned: true
       upload_start_handler assigned: true
       upload_progress_handler assigned: true
       upload_error_handler assigned: true
       upload_success_handler assigned: true
       upload_complete_handler assigned: true
       debug_handler assigned: true

    SWF DEBUG: SWFUpload Init Complete
    SWF DEBUG:
    SWF DEBUG: ----- SWF DEBUG OUTPUT ----
    SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 Alpha 2008-10-17
    SWF DEBUG: movieName: SWFUpload_0
    SWF DEBUG: Upload URL: http://kopymark.com/staging/juncken/FileDataObjectManager_Controller/handleswfupload
    SWF DEBUG: File Types String: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;
    SWF DEBUG: Parsed File Types: jpg,jpg,jpeg,jpeg,gif,gif,png,png,
    SWF DEBUG: File Types Description: (*.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;)
    SWF DEBUG: File Size Limit: 2097152 bytes
    SWF DEBUG: File Upload Limit: 20
    SWF DEBUG: File Queue Limit: 20
    SWF DEBUG: Post Params:
    SWF DEBUG: parentIDName=PageID
    SWF DEBUG: fileFieldName=myImage
    SWF DEBUG: fileClassName=Juncken_Image
    SWF DEBUG: dataObjectFieldName=Images
    SWF DEBUG: hasDataObject=1
    SWF DEBUG: dataObjectClassName=Gallery
    SWF DEBUG: OverrideUploadFolder=Uploads
    SWF DEBUG: controllerID=1
    SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
    SWF DEBUG:
    SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;
    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: parentIDName=PageID
    SWF DEBUG: Global Post Item: fileFieldName=myImage
    SWF DEBUG: Global Post Item: fileClassName=Juncken_Image
    SWF DEBUG: Global Post Item: dataObjectFieldName=Images
    SWF DEBUG: Global Post Item: hasDataObject=1
    SWF DEBUG: Global Post Item: dataObjectClassName=Gallery
    SWF DEBUG: Global Post Item: OverrideUploadFolder=Uploads
    SWF DEBUG: Global Post Item: controllerID=1
    SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://kopymark.com/staging/juncken/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0
    SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 557056. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 589824. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 622592. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 655360. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 720896. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 753664. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 786432. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 819200. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 851968. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 884736. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 917504. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 950272. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 983040. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1015808. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1048576. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1081344. Total: 1097271
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1097271. Total: 1097271

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    Can I see the code you're using?

  • Mat Weir
    Avatar
    Community Member
    33 Posts

    Re: Bug Reports Link to this post

    @AdamJ, I had this problem last week - it just stops! Upgrading to trunk of swfupload solved it. Hope that helps.

  • AdamJ
    Avatar
    Community Member
    145 Posts

    Re: Bug Reports Link to this post

    @Mat Weir - Just updated to swfupload r401, still doesnt upload.

    @UncleCheese - Here's my code: http://pastie.org/private/9xpyuasojysla4igeoqdg

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    How come Gallery has_one Page, but it's HomePage with the $has_many Gallery?

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