I'm running an ubercart 2.1 and there is an imagefield on product content type
imagefield is version 3.0

i found that when I tried to remove an uploaded image under IE6,7 it will show me an error message
"An unrecoverable error occured. The uploaded file likely exceeded the maximum file size( 20MB) that this server supports"

This will not happen under firefox 3.x and even though the very beta version of google Chrome web browser

My server php upload file size and http post size and imagefield settings are configured for 20MB file upload
and the uploaded image is just a few tens KB actually.

Comments

adrianmak’s picture

I just found a old issue http://drupal.org/node/435312 related to delete image problem
But I ensure that mine is not server setting problem. Mine problem only occur on IE6, and IE7.

my php setting is
post max size 25M
upload max size 20M
memory_limit 128MB

and actually, the uploaded image are jsut few tens KB in size.

gordon’s picture

I am having a problem when there is only 1 image I can't remove it at all?

Ideas?

adrianmak’s picture

nobody following up this issue ?

pspdrupal’s picture

I am experiencing the same issue. I get the error message when I try to remove an image on Internet Explorer but it works fine in Firefox. Anyone have any ideas?

3rnst’s picture

Same error occurs when using Opera 9.64. My server is setup to accept uploads of 20Mb; the error however only occurs when trying to remove a said image. When using Firefox, the error does not show.

A follow-up on how to solve this issue would be appreciated.

quicksketch’s picture

Title: removing an uploaded image cause an error under IE7 and even though IE6 » Removing an uploaded image cause an error under IE7 and even though IE6

I can't reproduce this on my local installation when using any of the affected browsers (Opera, IE6/7), though I'm curious why it would affect some browsers but not others. Does this happen consistently or is it a "sometimes it happens" problem? Exact steps to reproduce would be appreciated.

adrianmak’s picture

problem happend consistently。。。。。。。。。。

update:
I found that the problem may occur only on ubercart product content type with imagefield.

I created a new content type with a imagefield, no error on removing image under IE browsers.

riflecn’s picture

Very same question happens here with me.
Error only with ubercart product content type under IE.
I tried google's Chrome,no error on removing images.

fenstrat’s picture

Same sittuation here.

Only happens on ubercart product types and only on Windows IE (6, 7 and 8) and Opera.
Firefox, Safari and Chrome all work fine.

Only happens when js is enabled, disable js and the remove works fine.

Source of the error is in filefield.module in the AHAH menu callback function filefield_js. Oddly enough in IE and Opera $_POST only contains the click Remove button (e.g. "field_image_cache_2_filefield_remove" => "Remove") whereas in other browsers is the fully populated form post data which includes form_build_id. So this is why the error is occuring, in IE and Opera $_POST data is not fully populated., i.e. empty($_POST['form_build_id']) === TRUE).

No time at the moment to trace this further, but will report back when I can.

epop’s picture

I can confirm this is happening with my fresh install of ubercart, imagefield and imagecache. Images remove ok in firefox but errors in ie 6,7,8. Would be great if there was a fix. IE is still the most used browser amoung business users.

quicksketch’s picture

Title: Removing an uploaded image cause an error under IE7 and even though IE6 » Unable to remove product images in IE
Project: ImageField » Ubercart
Version: 6.x-3.0 » 6.x-2.x-dev

Moving to Ubercart, since this problem does not exist in any other content types.

fenstrat’s picture

Title: Unable to remove product images in IE » Unable to remove product images in IE or Opera
fenstrat’s picture

Status: Active » Closed (duplicate)