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

Upload image stuck in "Processing"


Reply


31 Posts   7437 Views

Avatar
UncleCheese

Forum Moderator, 4096 Posts

6 August 2010 at 1:21am

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

Avatar
MarcusDalgren

Community Member, 288 Posts

6 August 2010 at 2:09am

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 :)

Avatar
nafetsch

Community Member, 15 Posts

6 August 2010 at 2:17am

Edited: 06/08/2010 2:18am

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?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

6 August 2010 at 2:41am

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

Avatar
micahsheets

Community Member, 165 Posts

10 August 2010 at 6:23am

Edited: 10/08/2010 7:00am

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.

Avatar
Andre

Community Member, 126 Posts

15 September 2010 at 9:07am

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.

Avatar
UncleCheese

Forum Moderator, 4096 Posts

15 September 2010 at 9:31am

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

Avatar
Andre

Community Member, 126 Posts

15 September 2010 at 10:02pm

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