Nonce validation failed

Documentation Menu

Nonce validation failed

Our plugin uses a security feature built-in WordPress called a Nonce.

A nonce is a random code generated by WordPress every 48 hours, which is sent along with the booking details. The server then tries to validate this code, and it if fails you get the Nonce validation failed. Please refresh the page and try again. error message.

If you are using a caching plugin, it’s possible that this code is cached and an expired code is sent to the server.

To fix this, you have 3 options:

  1. Exclude the page your calendar is on from being cached.
  2. Decrease your cache time to 24 hours.
  3. Turn off Nonce validation by adding this code to your theme’s functions.php file:
    add_filter('wpbs_form_ajax_nonce', function(){ return false; });

If by any chance you got here as a customer trying to make a booking, please contact the website administrator.

Instructions on how to exclude pages in common caching plugins:

Was this article helpful?

Yes (16) No

We're sorry to see this article wasn't as helpful as we hoped it would be. Please let us know what you were looking for so that we can improve this documentation page.

Full CTA BG