WordPress "Are You Sure You Want to Do This?" Error: How to Fix It (2026)

Are You Sure You Want to Do This? - WordPress error fix

You click Save, Update or Install and WordPress asks: Are you sure you want to do this? with a "Please try again" link. You did nothing wrong. WordPress could not confirm a hidden security token that comes with every admin action, and it stopped the request to be safe.

The Short Version

  • WordPress uses security tokens, called nonces, to check that admin actions come from you.
  • The error appears when the token is missing, expired, or the request failed before it was checked.
  • Usual causes: an old page, browser or server cache, a plugin or theme with a bug, or an upload that was too big.
  • Reload the page, clear the cache, test plugins and the theme, and check upload limits.

Why This Error Happens

  • Expired page. You left the admin page open for a long time. WordPress documentation says nonces are only valid for a limited time (24 hours by default).
  • Cached admin pages. A cache plugin or the browser served an old copy with an old token.
  • Plugin or theme bug. Code that does not handle the token correctly. It often happens on one plugin’s settings page.
  • Failed upload. A theme or plugin zip larger than the upload limit can end with this message.

Step 1: Reload and Try Again

Go back, reload the page with a hard refresh, and repeat the action. If you were away from the page for a long time, log out and log in first.

Step 2: Clear Cache

Clear your browser cache and cookies for the site. Then clear your cache plugin and any server cache from your hosting panel. Make sure admin pages are never cached.

Step 3: Check Upload Limits

If the error appears when you upload a theme or plugin, read our upload limit guide. A file that is too large can produce this message.

Step 4: Test Plugins

Switch off your plugins and repeat the action. If it works, turn them back on one by one. Our plugin conflict guide shows how.

Step 5: Test the Theme

Switch to a default WordPress theme and repeat the action. If the error goes away, the theme has a problem. Contact its developer.

If It Only Happens on One Plugin’s Page

Then the bug is probably in that plugin. Update it, and if the error stays, send the plugin developer the exact steps and your WordPress and PHP versions.

Verified Facts and Sources

Checked in December 2026. The WordPress developer documentation explains that nonces are security tokens that protect URLs and forms from misuse, and that they are only valid for a limited time. The nonce_life filter sets that lifespan, and the default is one day.

Frequently Asked Questions

What is a nonce?

A nonce is a one-time-style security token that WordPress adds to admin links and forms to check that a request really came from you.

Is my site hacked if I see this message?

Usually not. It most often comes from an old page, cache, a plugin bug or an upload limit.

Why do I only get this error after leaving a tab open?

The token in that page has expired. Reload the page or log in again.

Can a cache plugin cause this error?

Yes. If admin pages are cached, they can carry an old token. Exclude the admin area from caching and clear the cache.

Updated December 3, 2026.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *