I am getting the following error on a website that previously worked perfect, when uploading an image:

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

When I don't upload an image but just try to save the node form, I get an access denied and I am logged out. This does not occur everywhere but only on some node forms. However I think these errors are related and might have something to do with the caching. I remembered enabling caching for this site a while ago and the problems might have started then (caching is disabled now).

I found similar issues on drupal.org, but none of the solutions seem to work.

I tried the following things, but nothing helped:

  • Cleaning cache
  • Disabling/enabling cache
  • Resetting cache to defaults
  • Emptying, optimizing and repairing cache_form table in database
  • Emptying, optimizing and repairing all other "caching" tabled in database
  • Downgrading imagefield and filefield down to version 3.7, so I don't think it has anything to do with those modules. The versions I am using are 3.10 on D6.22
  • $form['#cache'] = TRUE; in hook_form_alter() that was proposed as a solution in some of the related issues

I am not using any other caching modules like memcache/cacherouter. memory_limit, post_max_size and upload_max_filesize are all set to 256M.

I am kind of stuck here, so any help would be appreciated.