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

Bug Reports


Go to End
Reply


297 Posts   52402 Views

Avatar
Mad_Clog

Community Member, 78 Posts

17 June 2010 at 9:45pm

Edited: 17/06/2010 9:51pm

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())
          )
       );
   }

Avatar
UncleCheese

Forum Moderator, 4096 Posts

19 June 2010 at 2:44am

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());         

Avatar
UncleCheese

Forum Moderator, 4096 Posts

19 June 2010 at 2:54am

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

Avatar
AdamJ

Community Member, 145 Posts

2 July 2010 at 1:44am

Edited: 02/07/2010 2:21am

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

2 July 2010 at 3:48am

Can I see the code you're using?

Avatar
Mat Weir

Community Member, 33 Posts

2 July 2010 at 7:48am

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

Avatar
AdamJ

Community Member, 145 Posts

2 July 2010 at 5:28pm

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

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

3 July 2010 at 2:03am

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

Go to Top