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

See attached screenshot.

CommentFileSizeAuthor
servererror.png9.44 KBFlying Drupalist

Comments

dayre’s picture

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

skilip’s picture

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

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

to this:

  $settings['swfupload_settings'][$element['#id']] = array(
    'debug' => TRUE,
    'module_path' => $path,
skilip’s picture

Any updates on this?

yaoweizhen’s picture

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.

Starminder’s picture

Subscribe, same issue

Starminder’s picture

Priority: Normal » Critical

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

shaneonabike’s picture

shaneonabike’s picture

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

http://drupal.org/node/591142

quinns’s picture

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.

naim shaikh’s picture

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.

dilari’s picture

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.

skilip’s picture

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!

skilip’s picture

Status: Closed (won't fix) » Fixed

Status: Fixed » Closed (fixed)

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

qmhao99’s picture

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.

core44’s picture

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.

cresh’s picture

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

Status: Fixed » Closed (fixed)

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