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

Help with troublehsooting 'The server did not accept it' error


Reply

2 Posts   1354 Views

Avatar
marblegravy

6 September 2010 at 1:35am Community Member, 19 Posts

I'm at a loss to figure out what's wrong with my site that is stopping it from allowing any files to be uploaded. My local version works fine. The hosted version (on a shared, cheap server so not much scope for changing php settings and things) however doesn't want to play.

I can get to the Assets area in admin, click on add files, select a local file and it queues OK, but press upload and I get the two dialog boxes a few others have been having on here of:
"An error occurred in the upload. Try again later." and then "There was a problem with the upload. The server did not accept it."

I am running SS 2.4.1, DOM r414 and swfupload r401.

I can use the same dialog to copy a file from another folder, just no uploading and only on the live site locally it's fine.

I've tried going through the troubleshooting steps here:
http://doc.silverstripe.org/modules:swfuploadfield?s=swfupload#troubleshooting

but I never see the alert - my code in FileDataObjectManager.php looks like:

class FileDataObjectManager_Controller extends Controller
{
   public function handleswfupload()
   {

die('please say hello');

      if(!Permission::check("CMSAccess_CMSMain"))
         return;
...
...

So I suppose I would like some help trying to figure out why
a) my debugging isn't working (if I can fix that I can get more info!); and
b) the bigger question of why my upload isn't working online.

For reference, after trying to upload a file, This is what the debugger spits out:

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://www.brindabellawomensgroup.org/FileDataObjectManager_Controller/handleswfupload
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: File Types Description: ()
SWF DEBUG: File Size Limit: 33554432 bytes
SWF DEBUG: File Upload Limit: 20
SWF DEBUG: File Queue Limit: 20
SWF DEBUG: Post Params:
SWF DEBUG: fileFieldName=Files
SWF DEBUG: fileClassName=File
SWF DEBUG: parentIDName=ParentID
SWF DEBUG: hasDataObject=0
SWF DEBUG: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: dataObjectFieldName=
SWF DEBUG: controllerID=4
SWF DEBUG: PHPSESSID=9629cb1c71ff5832b29e1421ce6f8b84
SWF DEBUG: dataObjectClassName=File
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: fileFieldName=Files
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: controllerID=4
SWF DEBUG: Global Post Item: PHPSESSID=9629cb1c71ff5832b29e1421ce6f8b84
SWF DEBUG: Global Post Item: dataObjectClassName=File

SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://www.brindabellawomensgroup.org/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0

SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -200, File name: one.gif, File size: 3257, Message: 404

Just a thought, but the part I bolded above - that's not a path in my installation - is that where it's going wrong, or is that a path that's generated during the upload process?

Avatar
marblegravy

6 September 2010 at 1:39am Community Member, 19 Posts

also following some of these other posts about the same issue, I can tell you that my htaccess is pretty much empty. It just has:

# Use PHP5 as default
AddHandler application/x-httpd-php5 .php