Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Upload image stuck in "Processing"

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 7028 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Upload image stuck in "Processing" Link to this post

    Ideally, we could do the Session::start() in the upload handler, but I think that will be far too late.

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: Upload image stuck in "Processing" Link to this post

    Yes I have confirmed that this works.

    I tried first in the upload handler by killing the session and then starting a new one with $_POST["PHPSESSID"] but that failed. I then tried with _ss_environment.php which is the first external file that's included in Core.php, however that proved to be too early so that failed too.

    I kept reading in Core.php and realized that the whole manifest kicks in here before the session starts. I tried first in _config.php in mysite and that worked so I moved it to swfuploads _config file and that works as well. If you place die() statements in _config.php in swfupload and one right before Session::start() in main.php you'll get the die() from swfupload on your screen.

    Successive calls to Session::open don't do anything so this seems to be a rather nifty solution

  • nafetsch
    Avatar
    Community Member
    15 Posts

    Re: Upload image stuck in "Processing" Link to this post

    that worked for me: !!! Switching off the session.use_only_cookies !!!

    THX for that!

    But have anyone tried to upload with a contenteditor account? Admin is doing fine but the editor account doesen´t!!

    why is that?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Upload image stuck in "Processing" Link to this post

    Awesome. Thanks for all that R&D, smurkas. You've saved me a ton of time!

  • micahsheets
    Avatar
    Community Member
    164 Posts

    Re: Upload image stuck in "Processing" Link to this post

    There was a bunch of stuff here before but since I finally figured it out I would have looked like an idiot if I left it here so I will thank everyone for the posts that helped me solve my issue.

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: Upload image stuck in "Processing" Link to this post

    Hi there, I'm still suffering from This Bug.

    SS 2.4.1
    DOM Rev 414
    swfupload Rev 401

    both fresh downloaded from "Extensions".

    I have found the CMS_ACCESS_CMSMain Bug inside Dataobject manager and fixed it.
    session.use_only_cookies is off, session.use_cookies is on
    open_basedir has no value
    And I havbe tried the Folder.php and AssetsAdmin.php Fixes (for SS2.4.1) but nothing worked.

    Here is the output of the Debugging:

    SWF DEBUG: File Types String: *.*
    SWF DEBUG: Parsed File Types:
    SWF DEBUG: File Types Description: ()
    SWF DEBUG: File Size Limit: 134217728 bytes
    SWF DEBUG: File Upload Limit: 20
    SWF DEBUG: File Queue Limit: 20
    SWF DEBUG: Post Params:
    SWF DEBUG: PHPSESSID=052109bb9f819af3bde919d13332bb8a
    SWF DEBUG: controllerID=1
    SWF DEBUG: dataObjectFieldName=
    SWF DEBUG: parentIDName=ParentID
    SWF DEBUG: fileClassName=File
    SWF DEBUG: OverrideUploadFolder=assets/Uploads/
    SWF DEBUG: dataObjectClassName=File
    SWF DEBUG: hasDataObject=0
    SWF DEBUG: fileFieldName=Files
    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: PHPSESSID=052109bb9f819af3bde919d13332bb8a
    SWF DEBUG: Global Post Item: controllerID=1
    SWF DEBUG: Global Post Item: dataObjectFieldName=
    SWF DEBUG: Global Post Item: parentIDName=ParentID
    SWF DEBUG: Global Post Item: fileClassName=File
    SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/Uploads/
    SWF DEBUG: Global Post Item: dataObjectClassName=File
    SWF DEBUG: Global Post Item: hasDataObject=0
    SWF DEBUG: Global Post Item: fileFieldName=Files
    SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://test.xxx.xxx/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: 148630. Total: 189881
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 189881. Total: 189881
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 189881. Total: 189881
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 189881. Total: 189881
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 189881. Total: 189881

    Everytime I try to Upload something, the Upload gets stuck at processing and I have to reloging afterwards.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Upload image stuck in "Processing" Link to this post

    I'm not supporting the SWFUpload module any more. You should switch to Uploadify. http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • Andre
    Avatar
    Community Member
    126 Posts

    Re: Upload image stuck in "Processing" Link to this post

    Can I use Uploadify as a replacement for swfupload using dataobjectmanager and image_gallery?

    7028 Views
Page: 1 2 3 4
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.