Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2009 at 10:14 UTC
Updated:
11 Jul 2009 at 02:28 UTC
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
Comment #1
quicksketchPer #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:
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.
Comment #2
nchase commentedno 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..
Comment #3
quicksketchWhich 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
Comment #4
Kozzmozz commentedI 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???
Comment #5
quicksketchUnfortunately 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.
Comment #6
nchase commentedthe memory limit was set to 32M. When I raised it just for 8M to 40M it worked.
Comment #7
quicksketchThanks snicers! It's great to have people confirming the solution to this (very frequently reported) problem.
Comment #8
tchurch commentedHi,
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).
Comment #9
Tony Camara commentedHello,
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.
Comment #10
alanburke commentedHi 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
Comment #11
gn0rt0n commentedWe have the same problem using Ubercart Product Classes and IE8. FF 3.5 works just fine.
Comment #12
quicksketchThanks 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.
Comment #13
alanburke commentedHi 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
Comment #14
fenstratDuplicate of #448314: Unable to remove product images in IE or Opera
Comment #15
fenstratThis issue is solved at #404234: Ajax bug on upload/delete Ubercart images