When trying to add or remove a file from filefield I get the following error message:

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

Disabling memcache and reloading the form allows me to remove and add files.

Has anyone seen this before? Using:

Drupal 6.20
CCK 2.9
Filefield 3.9
Memcache - 1.8

Comments

heine’s picture

cache_form should go to the db. It's not an actual cache, entries should NOT be subjected to eviction based on size or space constraints.

mikebell_’s picture

Thanks for the quick reply.

I've looked over the documentation and added the following to settings.php:

$conf['memcache_bins'] = array(
  'cache' => 'default',
// Any bin that goes to 'none' will fall through to database caching.
  'cache_form' => 'none',
);

The error still occurs when excluding the cache_form from memcache.

mikebell_’s picture

Status: Active » Closed (won't fix)

I was using the wrong documentation to setup the $conf array. RTFM.

timl’s picture

and when you RTFM you will see the following, hope this helps someone. Just make sure you change '10.0.0.1' to whatever the ip is or loopback 127.0.0.1

Here is an example configuration where the 'cache_form' bin is set to bypass
memcache and use the standard table-based Drupal cache by assigning it to a
cluster called 'database'.

$conf = array(
  ...
  'memcache_servers' => array('10.0.0.1:11211' => 'default'),
  'memcache_bins' => array('cache' => 'default',
                           'cache_form' => 'database'),
);