The imagefield is set to unlimited images. The first image upload went fine. Whenever I click the "add another item" button the entire field including the image I uploaded before just disappears. I'm using latest imagefield and filefield dev.

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

It sounds like your server configuration is not properly set up. This is the exact same symptom as #356009: Large Uploads Cause Form to Disappear.

PeteS’s picture

I am having this issue right now as well, and am uploading a very small image. I upgraded to 6.x-3.x and instead of the html disappearing, I now get the "An unrecoverable error occurred. This form was missing from the server cache. Try reloading the page and submitting again" message inside of the filefield module.

When I turn Javascript off, I am able to upload and delete images fine in both versions. I have no clue where to begin looking for where imagefield/filefield are messing up.

Needless to say, it's kind of frustrating that either module can enter such a mysterious failure state without providing any Javascript/watchdog/PHP error information.

davidwhthomas’s picture

I had the same

"An unrecoverable error occurred. This form was missing from the server cache. Try reloading the page and submitting again"

error.

I found it was caused by the APC php opcode cache. Disabling APC in settings.php fixed the issue until I find a proper fix.

DT

adam1’s picture

hello davidwhthomas,

could you describe, how to disable apc in settings.php?
im a rookie and i could not find any line in settings.php containing "apc" - if you could post the whole line, i would be happy!
thanks, adam

wayfarer_boy’s picture

I was also having the same problem, and although I added the following line to my settings.php:

ini_set('apc.enabled', 0);

...I didn't see a change in the problem. I then added:

apc.enabled = 0

...to my php.ini, restarted apache, and once again no change. I then enabled apc in my settings.php, forgetting that I had it disabled in php.ini, emptied my browser's cache and restarted, and I was able to remove images from the node. So, rather unhelpfully, I have no solution to hand, but there's obviously a solution in there somewhere.

raystin’s picture

I had the same problem!!! I can't fix it, here is my issue =>http://drupal.org/node/486880

raystin’s picture

I had the same problem!!! I can't fix it, here is my issue =>http://drupal.org/node/486880

desunit’s picture