Home/Blog/How to Fix “Are You Sure You Want to Do This?” Error in WordPress

How to Fix “Are You Sure You Want to Do This?” Error in WordPress

Are you sure you want to do this error fix guide

You click a button in the WordPress dashboard and get the baffling message: “Are you sure you want to do this? Please try again.” No โ€” you’re not sure, and that’s exactly the problem. This are you sure you want to do this fix guide explains what the error actually means (a failed security check), why it appears during plugin installs, uploads, and form actions, and five proven steps to make it go away for good.

What Causes “Are You Sure You Want to Do This”

WordPress protects admin actions with a security token called a nonce (a number used once). Every time you click Save, Install, or Delete, WordPress checks that the nonce attached to the request is valid. If the check fails, you get this error instead of the action completing. The most common causes are:

  • Plugin or theme missing its nonce: a poorly coded plugin or theme sends an admin request without the required security token โ€” the single most common cause.
  • Uploading a file that’s too large: when an upload exceeds upload_max_filesize, PHP aborts the request before WordPress can verify it, and this error appears instead of a clear size warning.
  • Incorrect file permissions: if WordPress can’t write to wp-content (directories should be 755, files 644), the failed write triggers the message.
  • Corrupt or outdated core files: damaged wp-admin or wp-includes files can break the nonce system entirely.
  • Browser extensions or caching: ad blockers and privacy extensions (Adblock Plus and similar are known culprits) can strip nonces from requests; cached admin pages can carry expired nonces.
  • Session timeout: if you sat on an admin page for a long time, your login session may have expired, invalidating every nonce on the page. More admin-area guides live on the KamiWeb blog.

How to Fix “Are You Sure You Want to Do This”

Start with the quickest checks: refresh the admin page and try the action again. If it keeps happening, disable any ad-blocker extensions and try a different browser. Then work through these five fixes โ€” our free web tools can help with site maintenance along the way.

Troubleshooting WordPress admin plugin conflicts concept

  1. Deactivate all plugins. Go to Plugins โ†’ Installed Plugins, select all, and Deactivate. If the error disappears, reactivate plugins one at a time until it returns โ€” you’ve found the plugin failing its nonce check. Replace it or contact its developer. If you can’t reach the dashboard, rename the wp-content/plugins folder via FTP to disable everything at once.
  2. Switch to a default theme. If plugins aren’t the issue, temporarily activate a default WordPress theme (Twenty Twenty-Four or similar) โ€” Appearance โ†’ Themes. If the error clears, your theme is sending bad requests and needs an update or replacement.
  3. Check your upload and PHP limits. If the error appears while uploading, confirm the file is smaller than the limit shown on Media โ†’ Add New. Raise upload_max_filesize, post_max_size (at least 64M each), max_execution_time (300), and WP_MEMORY_LIMIT (256M) via your hosting panel, .htaccess, or php.ini.
  4. Fix file permissions. Using FTP or File Manager, set directories to 755 and files to 644 โ€” especially wp-content and its subdirectories. Wrong permissions are a classic trigger for this exact error.
  5. Replace corrupt core files. Download a fresh copy of WordPress from wordpress.org and re-upload the wp-admin and wp-includes folders via FTP, overwriting the old ones. This repairs damaged nonce-handling code without touching your content, themes, or plugins. Then go to Settings โ†’ Permalinks and click Save Changes to regenerate .htaccess. Browse more fixes at KamiWeb’s plugin resources.

Conclusion

The are you sure you want to do this fix comes down to finding what broke the security check: a faulty plugin or theme, an oversized upload, wrong file permissions, or corrupt core files. Work through plugins first, then theme, limits, permissions, and core files โ€” in that order โ€” and the error will be gone. Find more WordPress troubleshooting at KamiWeb.