You click Update on a post, or Submit on a front-end acf_form(), and Advanced Custom Fields (ACF) shows a red notice: “Validation failed. ACF was unable to perform validation because the provided nonce failed verification.” Usually the page is older than its security token, from an old tab or a stale page-cache copy. Reload the page in the admin, and keep front-end form pages out of the page cache (or cache them for 12 hours at most). Until then nothing saves, and clicking again changes nothing. If you run or build WordPress sites with ACF, the steps below confirm which case you have and rule out the rarer server-side causes.
What you’ll accomplish
- Tell this error apart from its twin, “no nonce was received by the server”, which has a different cause.
- Test, in under a minute, whether the token a page carries is still accepted.
- Fix the admin case (a tab left open, or a new login session) without losing typed content.
- Fix the front-end case, where a page cache serves visitors a form with an expired token.
- Rule out the rarer server-side causes: a shortened nonce lifetime and mismatched salts across servers.
Prerequisites
- ACF 6.3.12 or later, free or PRO. ACF added this exact wording in 6.3.12 (January 2025); the checks below were made against ACF 6.8.11.
- A desktop browser with developer tools (F12 in Chrome, Edge or Firefox).
- For the server checks: shell access to the site’s root folder, with WP-CLI installed so the
wpcommand works there. - For the cache checks:
curlon any machine, and access to your cache plugin, server cache or Cloudflare dashboard.
How it works
A nonce, in WordPress terms, is a short security token baked into a page so the server can tell that a request came from a page it really served to you. ACF puts two of them in every screen that shows its fields. One sits in the page’s JavaScript data (acf.data.nonce, created for the action acf_nonce). The other is a hidden form field named _acf_nonce.
When you click Update or Submit, ACF’s JavaScript first sends the form to wp-admin/admin-ajax.php with action=acf/validate_save_post and that first token in a field called nonce. ACF’s handler calls acf_verify_ajax(), which asks WordPress core’s wp_verify_nonce() to check it. The handler is registered for logged-in and logged-out visitors alike, so front-end forms go through the same check.
WordPress does not store nonces anywhere. It recomputes one from four inputs and compares:
- A time slot. By default a nonce lasts one day, split into two 12-hour slots. A token is accepted in the slot it was made in and the next one, so it lives between 12 and 24 hours.
- The user ID. Logged-out visitors all share user ID 0.
- The login session token, read from your login cookie. Logging out and back in gives you a new one.
- The site’s secret salts,
NONCE_KEYandNONCE_SALTinwp-config.php.
If any input differs between when the page was built and when you click the button, the hashes don’t match. ACF then answers with that error and stops the save. When the server receives no nonce field at all, you get the other message, “ACF was unable to perform validation because no nonce was received by the server.”
Turning validation off does not get around this. The real save also checks _acf_nonce. When that fails, ACF quietly skips saving its fields, so you lose data with no error at all.
Step-by-step
-
Read the exact message. Open developer tools, go to the Network tab, type
admin-ajaxin the filter box, then click Update or Submit again. Click theadmin-ajax.phprequest. Under Payload you should seeaction: acf/validate_save_postand anoncevalue of 10 hexadecimal characters (digits and the letters a to f). Under Response:{"success":true,"data":{"valid":0,"errors":[{"input":false,"message":"ACF was unable to perform validation because the provided nonce failed verification.","action":{"label":"Learn more","url":"https:\/\/www.advancedcustomfields.com\/resources\/validation-nonce-errors\/?utm_source=ACF+Free&utm_medium=insideplugin&utm_campaign=docs&utm_content=validation-nonce"}}]}}The
"success":trueis normal: the request worked and the answer is “not valid”. If the message says “no nonce was received by the server” instead, this article is not your fix. ACF’s documentation links that one to PHP’smax_input_varslimit, which we cover in ACF fields not saving or returning empty. If you see an HTML 403 page or a bare0, the request never reached ACF’s handler; see Troubleshooting. -
Test the token this tab holds. In the same tab, open the Console tab and paste:
jQuery.post(acf.get('ajaxurl'), { action: 'acf/validate_save_post', nonce: acf.get('nonce') }).done(r => console.log(r.data));This sends only the token, no field values, so it saves nothing. A stale token prints an object with
valid: 0and the same error message. A good one prints{valid: 1, errors: 0}. Now open the same edit screen or form page in a new tab and run the line again there. If the new tab printsvalid: 1, the server is fine and the old page is the problem. Go to step 3 for admin screens, step 4 for front-end forms. If even a fresh tab printsvalid: 0, skip to step 6. -
Admin screen: copy your work, then reload. Before reloading, copy any long text you typed in ACF fields into a text editor, since a reload discards unsaved values. Reload with F5 and paste the text back if needed. The reloaded page carries tokens made now, for your current session, so Update works. Two everyday situations cause this:
- The tab was open since yesterday. Past 24 hours the token is always dead, and between 12 and 24 hours it depends on when the slot started.
- Your login changed while the tab was open. You logged out in another tab, or your session expired and you signed in again through the login pop-up. The new session has a new token, so the old page’s nonces no longer match. After you sign in again, WordPress core renews its own post-screen tokens in the background. ACF 6.8.11 has no such refresh for its tokens.
-
Front-end form: check whether visitors get a cached page. Replace the address with your form page:
curl -sI https://example.com/submit-listing/ | grep -iE '^(age|cf-cache-status|x-litespeed-cache|x-cache):'Example output:
age: 51840 cf-cache-status: HITHIT(orx-litespeed-cache: hit) means the HTML came from a cache, not from WordPress.ageis how many seconds old that copy is. Anything above 43200 (12 hours) can carry a dead token. Then test the token in the copy visitors receive:NONCE=$(curl -s https://example.com/submit-listing/ | grep -o 'acf.data = {[^;]*' | grep -o '"nonce":"[0-9a-f]*"' | cut -d'"' -f4) echo "$NONCE" curl -s https://example.com/wp-admin/admin-ajax.php --data "action=acf/validate_save_post&nonce=$NONCE"Example output:
9c41e07ab3 {"success":true,"data":{"valid":1,"errors":0}}valid: 1means the cached copy still works for logged-out visitors right now.valid: 0with the error message means every logged-out visitor who gets this copy will fail. An empty first line meansacf.datais not in the page, so the form isn’t rendered there or a JavaScript optimiser rewrote the inline script. This test only covers logged-out visitors; step 5 covers logged-in ones. -
Keep the form page out of the page cache. A page cache, which stores finished HTML so WordPress doesn’t rebuild every page, breaks forms in two ways. It serves a copy older than the token’s life. It can also serve a logged-out copy to a logged-in member, whose user ID and session don’t match the token. Exclude every URL that shows an
acf_form():- WP Rocket: Settings → WP Rocket → Advanced Rules, then add
/submit-listing/to Never Cache URL(s). - LiteSpeed Cache: LiteSpeed Cache → Cache → Excludes, then add
/submit-listing/to Do Not Cache URIs. - Cloudflare, if a Cache Rule caches your HTML: add a Cache Rule matching that path and set its cache eligibility to Bypass cache.
- Any other cache: add the path to its page-cache exclusion list.
If you can’t exclude the page, cap its cache lifetime at 12 hours (43200 seconds) and bypass the cache for any request carrying a
wordpress_logged_in_cookie. A copy younger than 12 hours always carries a token that is still in its first or second slot. Then purge the cache and repeat step 4. You should seeMISS,BYPASSor no cache header, andvalid: 1. - WP Rocket: Settings → WP Rocket → Advanced Rules, then add
-
If a fresh page also fails: check the nonce lifetime. Code can shorten the one-day default through the
nonce_lifefilter. Run:wp eval 'echo apply_filters( "nonce_life", DAY_IN_SECONDS, "acf_nonce" ), PHP_EOL;'Expected output:
86400. A smaller number (say3600) means tokens die within 30 to 60 minutes, and long edits will fail. Find the code that sets it withgrep -rn "nonce_life" wp-content/and remove or relax it. Also check whether a plugin changes the user ID that logged-out visitors’ tokens are built from:wp eval 'var_dump( apply_filters( "nonce_user_logged_out", 0, "acf_nonce" ) );'Expected output:
int(0). Any other value means a plugin uses thenonce_user_logged_outfilter to give logged-out visitors their own ID. A cached front-end page may then fail for every visitor except the one it was built for, so step 5’s exclusion becomes mandatory. Some plugins add this filter only on front-end page loads, soint(0)here is not final proof.grep -rln "nonce_user_logged_out" wp-content/lists every file that mentions it. -
On more than one web server: compare the salts. If a load balancer spreads requests across servers, the page can come from one server and the check can land on another. Run this on each server:
wp config get NONCE_SALT | sha256sum wp config get NONCE_KEY | sha256sumExample output (one server):
4e0b6c1f9d2a7385e1c6f04ab9d3e27c58f1a60d9b4e2c73f08a5d16e9b2c4a7 - b71d39e05c8a2f64d1e7093ac5b8f42e6d19c0a73e5f8b24c6a1d97f03e5b28d -The hashes must be identical on every server; the values themselves stay off screen. If they differ, copy one server’s salt block to the others. Expect everyone to be logged out once. Rotating salts on purpose, with
wp config shuffle-saltsor a security plugin’s “change salts” button, also invalidates every open page. That’s harmless, but it explains a wave of this error right afterwards.
Validate it works
- In the admin, open a fresh edit screen, change an ACF field and click Update. In the Network tab, the
admin-ajax.phpresponse reads{"success":true,"data":{"valid":1,"errors":0}}, and after the reload your new value is in the field. - On a front-end form, rerun step 4’s two commands. Expect a cache status other than
HIT(or anageunder 43200) and"valid":1. - Submit the form once logged out (a private window) and once logged in. Both should complete and show your success message or redirect, and the entry should appear in the admin.
- For the long-tab case, leave an edit screen open overnight, then run step 2’s console line before touching anything.
valid: 0followed byvalid: 1after a reload is the expected behaviour, not a fault.
Troubleshooting
- The response is an HTML 403 page, not JSON. A security plugin or a web application firewall (WAF) rejected the request, so it never reached ACF. A WAF is a filter in front of the site that blocks suspicious requests. Check its block log for the time of your click and allow
action=acf/validate_save_post. - The response is a bare
0. WordPress found no handler for the action, which means ACF wasn’t loaded for that request. Confirm ACF is active withwp plugin list --status=activeand look foradvanced-custom-fieldsoradvanced-custom-fields-proin the list. - It fails only for some visitors, at random. Think of two things that differ per request: which cache node or web server answered, and whether the visitor was logged in. Run step 4 several times and step 7 on every server.
- Validation now passes, but the values still don’t save. That is a separate problem: location rules, field keys or input limits. Work through ACF fields not saving or returning empty.
- A cache plugin also minifies or delays JavaScript. Did step 4 print an empty token? Then exclude ACF’s scripts and the inline
acf.datablock from “delay JavaScript” or “combine inline scripts” features, and test again.
When this is the wrong approach
- If the error says “no nonce was received by the server”, the token is missing rather than stale. Raising
max_input_varsis the usual fix, not cache rules. - If editors keep pages open for days on purpose, raising
nonce_lifeweakens every nonce on the site, not only ACF’s. Ask them to reload before saving instead, or to save drafts more often. - If your form is built with a forms plugin rather than
acf_form(), the token and its check belong to that plugin. The cache advice still applies, but the error text and the fix will differ. Watching for silent failures across any form is covered in WordPress form failure monitoring. - WordPress core’s own “The link you followed has expired” is also a nonce failure, but on core screens such as plugin uploads. It is a different message and needs a different fix.
For the underlying rules, see WordPress’s nonces documentation and ACF’s page on validation security nonce errors.
Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.