An unrecoverable error occurred

cbuetas - June 24, 2009 - 09:12
Project:ImageField
Version:6.x-3.0
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Hi. (sorry by my poor english)
I have a content type with a imagefield 6.x-3.0 with cck 6.x-2.4 in drupal 6.12
When i try to upload a image file appear this error:
"An unrecoverable error occurred. This form was missing from the server cache. Try reloading the page and submitting again." and the form dissapear.

Thanks for your help

AttachmentSize
aaa2009-06-24_111034.jpg77.35 KB

#1

quicksketch - June 30, 2009 - 03:32

This problem does not exist on a fresh install of FileField. You'll need to provide a list of steps to reproduce this problem starting with a fresh install so that I can reproduce. You might also try disabling other modules until uploading works properly.

#2

quicksketch - June 30, 2009 - 03:32
Status:active» postponed (maintainer needs more info)

#3

desunit - July 3, 2009 - 07:17

It's not a problem with ImageField, see this:
http://drupal.org/node/331941

All that you need to do is create hook_form_alter and set there for a form:

$form['#cache'] = TRUE;

#4

manuelBS - July 8, 2009 - 21:27

i added the $form['#cache] = TRUE in hook_form_alter but the error is still the same. I have now disabled cacherouter an so it works....But I would like to have cachrouter enabled...is there another problem eventually?

#5

morningtime - August 10, 2009 - 18:26

For me, the error mostly occurs when I open multiple browser windows with a node/edit page (different nodes). The image upload ajax form is then often "lost" on the server. Any ideas? The cache hook solution above also did not work for me.

#6

Heart Driven - August 13, 2009 - 07:36

I just had the exact same error. This error occured after installing the Node Clone module. Fixed this error after adding these lines under imagefield_form_content_overview_form_alter in imagefield.module. This fix worked instantly. Let me know if it fixed yours!

<?php
function imagefield_form_alter(&$form, $form_state)
{
 
$form['#cache'] = TRUE;
}
?>

#7

TC44 - August 22, 2009 - 16:52

I'm getting the same error now when trying to upload an image. It seemed to start happening after a certain number of images were uploaded. That was really the only change. There were no modules installed between it working, and the error message starting. In my case it happens everytime, once you select an image and hit "upload"

#6 did not work for me.

#8

TC44 - August 22, 2009 - 17:36

#9

asb - August 24, 2009 - 23:52

Same issue here.

I'd like to try the hack suggested in #3, but can't locate imagefield_form_content_overview_form_alter in imagefield.module.

related (in proper syntax): #539476: "Unrecoverable error" is giving *me* a headache, too! and #500220: Wrong conditions for cache flush in memcache.inc? (in my case, the error appeared directly after enabling memcache-module).

Any suggestings?

Thanks & greetings, -asb

#10

beetbe.com - August 25, 2009 - 14:25

Having the same problem and still has no solution. Any ideas, link to resolve it ?

#11

beetbe.com - August 25, 2009 - 17:03

@Heart Driven
I can't find "imagefield_form_content_overview_form_alter in imagefield.module" as you say
Is there anyone here fixed this ?

#12

asb - August 25, 2009 - 23:18

> Is there anyone here fixed this ?

I can't fix this issue, but I know what it caused it in my case: enabling the memcache.module directly triggers the "unrecoverable error" (cf. #500220: Wrong conditions for cache flush in memcache.inc?). However, this issue seems to be far more complex and needs to be solved by it's root since lots of this fancy CCK stuff went into the D7 code...

Greetings, -asb

#13

ckng - September 2, 2009 - 08:32
Status:postponed (maintainer needs more info)» active

Having the same problem when memcached is enabled (using memcache.inc). See #500220: Wrong conditions for cache flush in memcache.inc?

For me, it is not an issue of upload file size, post max size or suhosin, as they are high enough for my need (on VPS). The $form['#cache'] = TRUE; into form_alter also does not solve the problem.

#14

ronn abueg - September 15, 2009 - 19:21

We are seeing the same error too in a similar installation: cck, imagefield, multiple memcache severs (one for each web server accessed via cache router)

The problem for us is that when the form is sent back, it may end up in a different webserver that did not originally generate the form, hence not having any of the additional form data cached in its memory (memcache).

We get around this (for now) by accessing one of the webservers directly to do the admin stuff.

We are trying out each of the following as a more permanent fix:

  • change load balancer settings so that a user sticks to one webserver
  • patch memcache to do replication: http://repcached.lab.klab.org/
  • centralize a memcache bin for cache_form, or simply just have one dedicated memcache server
  • keep form cache data from hitting memcache, and just store it in DB (cache_form table) as it did originally w/o memcache

UPDATE:
We did the simplest change for now - changed settings.php so that cache_form bin points to one of the webservers, and it works.

#15

den2penguin - September 23, 2009 - 04:44

Hi!! I have the same problem. But i already fixed it.
The problem occurred to me when i hide/disabled this code in my template.php file
$vars['whole_form'] = drupal_render($vars['form']);

Then, after in enable it again in my template.php and hide it in my *.tpl.php file.
The error is gone.

btw, Thanks for all the instructions/way how to solve this kind of problem. This might be useful in the future.

#16

flavor - September 23, 2009 - 18:42

I solved this problem by going into my Performance settings and disabling all the cache settings. I set the min lifetime to none and it fixed it.

#17

hedac - October 2, 2009 - 00:35

I have the same error with filefield for mp3 files... not an issue of imagefield.
I think I started to have this error since I enabled APC RFC1867 as described in the status report: admin/reports/status

#18

jthaxton - October 19, 2009 - 03:54

I have this same problem and solved it, temporarily, updating any content types that had BOTH an imagefield and embedded media field so the image field loaded AFTER the embedded media field. Weird, but it solves my problem. Not a true solution but clearly these two modules are having at it.

#19

justinlevi - November 7, 2009 - 21:39

I just got this bug as well.

Modifying imagefield.module, by adding the imagefield_form_alter function, worked for me the first time I tried to re-upload a large video. However, I'm still seeing this issue on every large image upload now.

Justin


function imagefield_form_alter(&$form, $form_state)
{
  $form['#cache'] = TRUE;
}

*UPDATE - I have continued to run into this issue on different Drupal installs and only seem to be able to fix the situation if I disable all cache settings.

#20

marcus178 - November 18, 2009 - 13:28

I'm having the same result too. Although I'm sure it worked yesterday and can't work out why.

#21

dicreat - November 29, 2009 - 20:33

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.