Project:SWFUpload
Version:6.x-2.0-beta8
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi, I'm getting a server error when trying to upload anything.

See attached screenshot.

AttachmentSize
servererror.png9.44 KB

Comments

#1

Check your php.ini settings to ensure the size of the file you are uploading isn't going over the upload/post limits (post_max_size, upload_max_filesize).

#2

The SWFUpload has some debug tools. Change this (line 486 of swfupload.module):

<?php
  $settings
['swfupload_settings'][$element['#id']] = array(
   
'module_path' => $path,
?>

to this:
<?php
  $settings
['swfupload_settings'][$element['#id']] = array(
   
'debug' => TRUE,
   
'module_path' => $path,
?>

#3

Any updates on this?

#4

I have some problem? This is my debug message:

SWF DEBUG: Global Post Item: node_settings={ "filepath": "%file_directory_path", "max_img_resolution": "800x600", "list": 1, "file_extensions": "jpg jpeg gif png txt", "max_file_size": 8388608, "upload_usersize": 8388608, "node_max_file_size": 8388608, "max_files": "50" }
SWF DEBUG: Global Post Item: sid=312a6434316438636439386630306232303465393830303939386563663834323765
SWF DEBUG: Global Post Item: max_img_resolution=800x600
SWF DEBUG: Global Post Item: filepath=sites/default/files/
SWF DEBUG: Global Post Item: op=move_uploaded_file
SWF DEBUG: Global Post Item: instance={ "name": "upload" }
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /acquia-drupal-1.2.1/swfupload 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: 64752. Total: 64752
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 403.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: StartUpload(): No files found in the queue.

I also have found http://www.example.com/swfupload 'access denied' warning in watchdog. But the module is worked successfully on my another local drupal site.

#5

Subscribe, same issue

#6

Priority:normal» critical

I'm still unable to get past this problem, does anyone know what would cause this? Thanks

#7

Maybe check out the thread here

http://swfupload.org/forum/generaldiscussion/1125

#8

We are also having this problem and I wonder if it's related to the bug here...

http://drupal.org/node/591142

#9

We are finding the same problem when the site is password-protected via .htaccess. The SWFupload module reports status code 401 and the UI says "Server Error". Removing .htaccess authentication makes it work. Anyone know of a way around this? I've applied the patch in http://drupal.org/node/591142 and also have the swfupload.cookies.js file in our swfupload module directory but are still getting 401 errors when .htaccess password auth is enabled.

#10

I just faced the same problem with SWFupload module where it was working properly on one server and doing exactly opposite on other one. I was getting 403 error as 'server error'.
I searched on google and I found this code to put in .HTACCESS file.
Here is the code:

########## Attempt to solve 'Global Configuration' save issue, FTP layer issue, Media Upload issue
SecFilterEngine Off
SecFilterScanPOST Off
########## End - Attempt to solve 'Global Configuration' save issue, FTP layer issue, Media Upload issue

I got this code from this url:
http://forum.joomla.org/viewtopic.php?f=431&t=265427&p=1216787

After updating my .HTACCESS file with the above code , My problem resolved.

#11

Just for information:

swfupload failed when trying to use it in maintenance mode. '503 Service unavailable'
Switching back to online solved it. Just so you know.

#12

Status:active» closed (won't fix)

A lot of server issues/questions can be answered here: http://swfupload.org/forum/generaldiscussion.

#10 is included in README.txt. Thanks for reporting!

#13

Status:closed (won't fix)» fixed

#14

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#15

I had the same problem. However, after I added the lines per #10, I could not even connect to my site. When I tried to connect, I got the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

#16

I think the lines in #10 turn off mod_security, and if your hosting company doesnt allow you to do this via .htaccess you'll get a internal server error I think. You might have to ask them to disable it for you.

#17

Version:6.x-1.x-dev» 6.x-2.0-beta8
Status:closed (fixed)» fixed

I had the same problem. When i'am upload files swfupload print "server error". The site was offline. Once I did it online problem has been fixed.

p.s. sorry for my english

#18

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here