Why does the ‘Are you sure you want to do this’ error occur in WordPress?
Have you ever been faced with the ‘Are you sure you want to do this’ error? This is one of the most common WordPress errors that you may get when you are building and developing a WordPress website. This error occurs because of a Nonce check failure. That means when WordPress can’t read the nonce of a theme or plugin correctly, there will be an error message like the image below. So, what is the solution to the issue? Read today’s blog to find out how to fix this error quickly and effectively.

How to fix the ‘Are you sure you want to do this’ error in WordPress
Before starting to find the causes and fix the error, it’s necessary for you to use WordPress Backup Plugins to generate a backup. This will keep your site data safe in case something goes wrong. Once you have a backup, let’s begin to address the problem!
Deactivating your plugins
When you get the error, it is most likely due to the plugins or themes you are using on your site. Therefore, you need to deactivate all the WordPress plugins first. After that, connect to your WordPress hosting account via an FTP client. Next, simply go to the wp-content folder, then rename the plugins folder to plugins.deactivated.
Now, access your WordPress admin dashboard and go to Plugins -> Installed Plugins. There will be a notification confirming that all your plugins are uninstalled and deactivated. If the error no longer appears, it means one of the plugins you are using caused the problem. So, you need to go back to your FTP client, then rename the plugins.deactivated folder to plugins. After that, go back to your admin dashboard and activate each plugin one by one to find which plugin causes the error. When you know the plugin causing the issue, contact the plugin developers to ask them about this or try to use another plugin with the same features.
Investigating your theme
If you have checked all the plugins and they don’t cause the error, it’s time for you to investigate the theme you are using. In the admin area, let’s go to Appearance -> Themes. If you see the message ‘The active theme is broken. Reverting to the default theme‘, simply activate the default theme. If there is no error after you use the default theme, it means the theme you used before caused the error. So, you just need to use another theme or the default theme to avoid the issue.

Replacing the WordPress core files
If the two methods above don’t work, you may try to replace your WordPress core files. Follow these steps:
- Access the WordPress files by using the FTP client
- In the root directory, delete all files except wp-content and wp-config.php
- Download the latest WordPress version, then unzip and save it on your system
- Open the folder containing the new WordPress files

- On the left side of the screen, select all files except wp-content and wp-config.php

- Right-click on the selected files, then choose Upload
This solution can help you remove the error. Now, check the result on your site now.
Wrap up
In conclusion, we have already shared with you some tips to fix ‘Are you sure you want to do this’ error. We hope that you can effectively tackle the trouble whenever you get it. If you find this blog helpful, why not share it with your friends? Last but not least, don’t forget that we are offering a lot of responsive and eye-catching Free WordPress Themes. Take a look!



