How to Fix the Are You Sure You Want to Do This? Error in WordPress
I see it frequently if I am using a plugin that toggles user roles or visibility of Admin menu items. If I have an old tab open as an admin and another tab open in editor view, I might switch back to the admin tab even though I am an “editor” with the user role switcher. Clicking anything on that old tab without refreshing causes that error.
How to Fix “Are You Sure You Want to Do This? Please Try Again” Error in WordPress
The “Are you sure you want to do this? Please try again” error can be intimidating since it doesn’t give you much information to go on. However, it’s one of the most well-documented errors in WordPress history. We know what its many potential causes are, and fixing it isn’t usually difficult. In most cases, you won’t need to try the full six methods we’ve outlined. If you’re seeing issues like this often, however, it may be time to change web hosting providers.
How to fix "Are you sure want to do this" in WordPress ?
You are trying to upload other than ZIP Compressed version ( what is a .zip file ? ). Other compression formats are not supported while uploading a theme or a plugin in wordpress. When installing any plugin or theme in WordPress, the file should be uploaded as .zip file. We have published a detailed documentation about this issue here.