What Does The Caldera Forms Error: Submission rejected, token invalid Mean?

Caldera Forms Banner

This happens because the validation token — a WordPress nonce — could not be verified. This happens mainly because a caching plugin such as W3 Total Cache (W3TC) or CDN, such as Cloudflare is in use and caches the pages for longer than the WordPress nonce life — by default 12 hours. This might be caused by a caching system provided by your host. In that case, request that your host exempt the page with your page from the cache.

To fix this issue, set a cache exclusion for the page with your form or set a cache life of less than 12 hours. A caching system that sets a cache length longer than 12 hours is going to cause major problems with any type of front-end form, including comment forms. You should always configure a WordPress static HTML cache to last no longer than 12 hours.

This could also be a sign of a more serious issue on your server, but is probably cache related. Caching plugin cause issues with Caldera Forms or any form when they are setup to cache the page indefinitely.

This error message was added in Caldera Forms 1.5 to highlight and existing conflict, which previously failed silently.

For a more technical explanation of why this happens, see this post. Here is a good post on setting up caching plugins for WordPress.

Compatibility Settings For Caldera Forms and Caching Plugins

Using Caldera Forms With WP Rocket

Caldera Forms is fully compatible with WP Rocket. Make sure your nonce life span is set to 10 hours, as recommend by the WP Rocket documentation.

Using WP Fastest Cache With Caldera Forms

This section is not meant to recommend WP Fastest Cache as the solution to this problem. It is about how to prevent this problem from being caused by WP Fastest Cache.

WP Fastest Cache works wonderfully with Caldera Forms. But like all caching systems, you can not cache a Caldera Form’s HTML for longer than your nonce life (by default 12 hours.) Since this is a problem with most forms, including comment forms, we recommend you set your cache to be cleared every 10 hours:

Clear All WP Fastest Cache Files Every 10 Hours

You can also, choose to just clear the cache on your contact page:

Clear Contact Form Cache Page With WP Fastest Cache