How to: Fix “Cookie check failure”, or “Cookie nonce is invalid”

This article is imperfect and will be enhanced over time, based on your issues and experiences. Don’t hesitate to leave comments at the article to let me know how you fixed your issue exactly, or the other issues you might have. Thanks 🙂

If you are using a plugin that is performing asynchronous queries (ajax requests), it needs to use cookies to authenticate those, in order to make sure it’s you, and not someone nasty ill-minded.

If you are using a caching plugin, those cookies are often cached. They have a lifetime of 12 hours, but depending on how the caching plugin works, it might be used right before expiration, or after, which will end in an cookie-related error. With a plugin that runs a process for a long time with many asynchronous requests (such as Media Cleaner, for instance), the chance of getting an error is also much higher.

How to fix this? Simple! Disable the caching plugin for the time of the process! If you would like to keep the caching plugin enabled, you can check the FAQ related to it, the answer should be there.

Here are links to the FAQ of a few caching plugins: