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

Can't upload and delete uploaded images. If remove settings in settings.php, it will be worked again.

Comments

ahb’s picture

I am having the same issue with Cache Router/APC and Imagefield. Turning off Cache Router makes it go away.

andypost’s picture

Which version of imagefield you are using and how to reproduce?

andypost’s picture

Title: Error on imagefield » Errors with cache_form

Same trouble but with eaccelerator #557164: eacc.php mode will cause select box not working
So rename and use as form-cache related issue

TPerkins’s picture

I am having a similar issue. I have a form that uses AHAH, and within the AHAH function the form_get_cache() function is coming back empty. I had cache router set to use APC, and when I disabled it, everything started to work again.

I'm guessing that ANY feature/module utilizing forms AHAH would not have worked.

Exploratus’s picture

Me too. Any solutions?

omerida’s picture

Use the db for cache_form, add this to $conf['cacherouter']:

'cache_form' => array(
'engine' => 'db',
//'prefix' => 'YOUR SITE PREFIX',
),

Exploratus’s picture

if I am using domain access, what goes in the site prefix? Website names: www.whatlauderdale.com, www.whatlasvegas.com, and www.whatmetropolis.com.

Thanks!! I really appreciate it.

omerida’s picture

the site prefix should be unique to the domain, maybe $_SERVER['SERVER_NAME'] or $GLOBALS['base_root']

Exploratus’s picture

an example would be very helpful. sorry, newbie to this..

Exploratus’s picture

If somebody can provide an example that would be great! Thank you so much.

Exploratus’s picture

I still have this problem. Every time more than one user enters the node_edit page, the previous user gets the error -- basically I cannothave more than 1 user at a time editing nodes. Very limiting..

ken hawkins’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Major
Status: Active » Needs review

Just wanted to elevate this and suggest @omerida's fix from #6 be put into the install directions, something along the lines of:

If using Cacherouter with APC or Memcached with CCK file or image fields, be sure to route the cache_form table to the site database otherwise your user's form data may expire and they will receive "This form was missing from the server cache. Try reloading the page and submitting again" errors when using the AHAH form to upload images.

Add this to the default Cacherouter config file in settings.php:

'cache_form' => array(
  'engine' => 'db',
  //'prefix' => 'YOUR SITE PREFIX IF USING ONE IN YOUR DB TABLE',
),

FWIW, this fix has been necessary on all our sites using APC and Imagfields.