7912 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Upload image stuck in "Processing"
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 5605 Views |
-
Re: Upload image stuck in "Processing"

6 August 2010 at 1:20am
Smurkas, have you confirmed that you can start a session that way? If that's the case, then, yes, we may have solved this problem.
-
Re: Upload image stuck in "Processing"

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.
-
Re: Upload image stuck in "Processing"

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
-
Re: Upload image stuck in "Processing"

6 August 2010 at 2:17am Last edited: 6 August 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?
-
Re: Upload image stuck in "Processing"

6 August 2010 at 2:41am
Awesome. Thanks for all that R&D, smurkas. You've saved me a ton of time!
-
Re: Upload image stuck in "Processing"

10 August 2010 at 6:23am Last edited: 10 August 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.
-
Re: Upload image stuck in "Processing"

15 September 2010 at 9:07am
Hi there, I'm still suffering from This Bug.
SS 2.4.1
DOM Rev 414
swfupload Rev 401both 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: 189881Everytime I try to Upload something, the Upload gets stuck at processing and I have to reloging afterwards.
-
Re: Upload image stuck in "Processing"

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
| 5605 Views | ||
| Go to Top | Next > |



