When I upload images everythings fine. But as soon as I delete an image a red block occours: "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (80 MB) that this server supports."

This happens all the time I delete an image.

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

Per #356009: Large Uploads Cause Form to Disappear, this is likely caused by server configuration. What are your php.ini values for post_max_size, upload_max_size, max_execution_time, and memory_limit? The higher each of these values are set, the less likely you are to experience problems. I have mine set at the following values:

post_max_size 1000M
upload_max_size 1000M
max_execution_time 60
memory_limit 96M

It's also good to check that you can actually upload files with the normal upload.module too. If you're using Safari, see #375914: Safari 5, Chrome and Opera intermittently fails to upload.

nchase’s picture

no it's not safari, using firefox 3.x . It's the php.ini settings. Thanks for pointing this out... .. and thanks a lot for the latest stable release. :)
The only question remains is: Why does the php.ini settings affects the deleting of the image? I mean I'm not getting the error while uploading... I'm getting the error when I'm going to delete an image..

quicksketch’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Active

Which setting made the deletion work? Depending on which setting made it work, that'll affect the answer. It sounds like your post_max_size and upload_max_size were already relatively high (80M) but perhaps the memory_limit was too low. Some servers are setup with a strange plugin called Suhosin, which has the odd effect of cumulatively adding up the post_max_size (apparently) so each consecutive upload counts towards the limit. See http://drupal.org/node/423478#upload-limit-count

Though really, I'm not sure what definitely caused this. I just know that 9/10 "bug reports" are misconfigured servers. :P

Kozzmozz’s picture

I have the same problem.
I created a productnode and added 4 pictures.
Now I want to delete 2 of them but get following error-message:
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (12 MB) that this server supports.
Unfortunately my host One.com doens't allow me the access the php.ini-file.
Already update the .htcaccess-file. Still no results.
Any other workaround???

quicksketch’s picture

Unfortunately if you don't have access to increase your memory limit you won't be able to fix this problem. See http://drupal.org/node/215779 for some further input on One.com and its inability to change these settings.

nchase’s picture

the memory limit was set to 32M. When I raised it just for 8M to 40M it worked.

quicksketch’s picture

Status: Active » Fixed

Thanks snicers! It's great to have people confirming the solution to this (very frequently reported) problem.

tchurch’s picture

Status: Fixed » Closed (won't fix)

Hi,

I still can't get this to work. I've even increased the memory_limit to 128M.

memory_limit=128M
post_max_size 1000M
upload_max_size 1000M
max_execution_time 60

I'm using IE8.

If I use google chrome, it actually works.

I changed the status to won't fix but I'm not sure if I should have (new to this site).

Tony Camara’s picture

Hello,

My PHP memory limit is 256M, I am having the same problems deleting images in the latest releases of Firefox, IE, Opera but not in Safari or Chrome. Anyone have any ideas why?
I am running Drupal 6 and Latest version of Ubercart on a WIMP envoironment.
Thanks.

alanburke’s picture

Status: Closed (won't fix) » Active

Hi all,

This must be some sort of Browser javascript error.
I believe that this particular problem has nothing to do with server settings.
The fact that the file made it there in the first place would seem to indicate that

Testing on IE7, I initially had the error outlined.
So I disabled javascript.
Now I can remove the image without an error message.
I click save, and all was well.
---
During my testing, I may have encountered a separate issue,
but I'll mention it here just for completeness.
On my node type, I have a taxonomy field, multiple select, mandatory.
With javascript disabled, when I remove the image, the form 'forgets' the taxonomy values for the node.
So when I hit save, I got a error message reminding me that this taxonomy field was required.
To isolate the problem, I removed this taxonomy field.

The problem still remained with Javascript enabled, but when javascript is disabled, its fine.
----

I couldn't reproduce this problem on an 'ordinary' content type,
but I could reproduce it if it was an Ubercart product class.
Ubercart provides an imagefield by default to a product class - perhaps it has something to do with that.
Anybody else here using Ubercart that is having this problem?
I see one person above at
#4, Kozzmozz
might be using Ubercart too.

Regards
Alan

gn0rt0n’s picture

We have the same problem using Ubercart Product Classes and IE8. FF 3.5 works just fine.

quicksketch’s picture

Thanks for the reports folks. Can someone confirm that this *doesn't* happen for other Image fields? Set up a new content type, add an image field to it, and test. If it's not occurring anywhere else this should be moved to the Ubercart issue queue.

alanburke’s picture

Project: ImageField » Ubercart
Version: 6.x-3.x-dev » 6.x-2.0-beta6

Hi all
I couldn't replicate this without it being an Ubercart product class.
Moving to Ubercart, perhaps someone there can shed some light in it.
Alan

fenstrat’s picture

Status: Active » Closed (duplicate)
fenstrat’s picture