Home Tech Trends Fix “Are you sure you want to do this?” Error In WordPress...

Fix “Are you sure you want to do this?” Error In WordPress Now

Then there are the unhelpful errors like “Are you sure you want to do this”. The reason why this error does not provide any information is simply because there are too many factors that may lead to this Challenge. In this article, we will show you how to investigate and fix “Are you sure you want to do this” error in WordPress.
Fix error now
Are you sure error solution

What is this error?

‘Are you sure you want to do this?’ error usually appears when nonce verification fails and the most likely candidates to cause this error are plugins and themes not using nonce properly.
Nonce are tokens, unique characters which can be generated by a theme, plugin, or a core WordPress file for verification purposes. Nonces add a security layer to protect WordPress URLs, forms, and ajax calls from abuse.

What causes this error?

When the error appears, it’s the only thing that’s displayed other than a link to try again, though, a second attempt usually doesn’t work. The message of the error is specifically set to make you pause and think about what happened and if it’s possible that you made the mistake after all.
But nevertheless, there are several issues that may arise to cause the error which includes:
You selected an incorrect file when trying to upload a theme or plugin
An improperly coded theme or plugin
You reached your PHP memory limit
A security issue

Why, “Are you sure you want to do this?”

In many cases, the error pops up when you try to complete an action that requires certain user permissions, but WordPress isn’t able to verify that you have access.
WordPress uses security tokens, often called nonces. They’re used to validate a user to verify that they are the owner of their account and they have the correct user role to complete the action they started.
If WordPress isn’t able to verify the security tokens, the error displays.
If your site is the subject of an attack, especially in cases of cross-site scripting (XSS) or cross-site request forgery (CSRF) attacks, you might see the error in the midst of an attack.

How to fix “Are you sure you want to do this?” Error

Clear Your Cache

Virtually larger percentage of website uses cookies to deliver better user experience to their user. So also WordPress, the cookies gathered by your browser is used to serve you with right information and authentication without uproar. Though, it might not be as serious as may think of, its just normal. Clear the cookies and cache in your preferred browser. Simply clear tons of cookies saved by your browser so far and retry. 
It’s not always a fix that works, but sometimes all it takes to resolve this error is to clear your browser’s cache. If that doesn’t work, you can try clearing your cookies as well.

Plugin-caused Error Solution

If you tried to upload a theme or plugin and the error occurred, then the likeliest cause is that you tried uploading a plugin or theme package rather than the ZIP file for only the theme or plugin.
Plugins are available for WordPress user to enhance their possibilities and tweak their website more. But sometimes these plugins might work against each other resulting to series of internal errors.
So what if the Challenge is caused by activated plugins or recently installed one. Try and solve the issue by connecting to your web hosting provider or FTP Client and navigate to your web root directory, simply rename /wp-content/plugins/ directory to any name you will remember as your plugin-renamed folder other than the original spelling to nullify all plugins. 
Now that all your plugins are truly uninstalled and deactivated, you can try to reproduce the error. If the error does not appear again, then this means that one of the plugins on your website was causing the issue. To figure out which plugin was causing the issue, go back to your FTP client and rename earlier renamed plugin folder back to plugins .
After that visit the plugins page in your WordPress admin area and activate your plugins one by one and try to reproduce the error after activating each plugin until you find the one causing the issue.

Revert to the Default Theme

If the plugins were not causing this issue, then it might be a theme causing the Challenge. You can investigate the theme causing this issue by repeating the same procedure you did for plugins. 
You can also try to activate the default WordPress theme if you’re using one you selected from the Theme Repository or from a theme developer.
You can connect to your website using an FTP client and Download your currently active theme to your computer as a backup. Once you have backed up your theme, delete it from your web server.
Now login to your WordPress admin area and you will see a notification that ‘The active theme is broken. Reverting to the default theme’. WordPress will then start using the default theme like Twenty Sixteen for your website.
Now try to reproduce the error, if you are unable to reproduce the error then this means that your theme was causing ‘Are you sure you want to do this?’ error.

PHP Memory Limit Reached

This could actually be the concern also. Connect to your FTP Client and straight to your web directory root. Select your wp-admin folder and find a file called php.ini or php5.ini . If you don’t see it, create one by clicking the New File button in the top left-hand corner. Name the file php.ini and click the Create File button on the pop-up.
Change the value to your most convenient and deserving.
upload_max_filesize = 1000M
post_max_size = 2000M
 memory_limit = 3000M
file_uploads = On
max_execution_time = 180

Or if that addition to your php.ini file doesn’t do the trick, try editing your .htaccess file and add or edit the following code at the very bottom:
php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180
Or via wp-config.php file
define('WP_MEMORY_LIMIT', '3000M');

Reset your security key

Once you are confident that no plugin or theme on your site is causing the Challenge. Then there are a few extra steps you can take. Reset your security keys.
Security keys help encrypt information stored in cookies and it can be helpful to change them up every now and again, especially after your site has been hacked. This would effectively end any open sessions of logged in users on your site which means hackers are logged out as well.
First make sure you have a full backup of your website. Next, delete all WordPress files from your server except wp-content directory and all its contents. After that Download a fresh copy of WordPress extract it on your computer and upload the files inside the wordpress directory to your web server.
Once you have uploaded all the files, create a new wp-config.php file in the root directory. You can look at your old wp-config.php file from the backup if you need help. Add all sections except ‘Authentication Unique Keys and Salts’. Replace all the lines starting with define in this section.
define( 'AUTH_KEY', 't`DK%X:>xy-e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8([email protected]}IcnCa-' );

define( 'SECURE_AUTH_KEY', 'D&ovlU#-CvJ##uNq}bel ^MFtT&.b9{UvR]g%ixsXhGlRJ7q!h}XWdEC[BOKXssj' );

define( 'LOGGED_IN_KEY', 'MGKi8Br(&{H*~&0s;{k0<S(O: f#WM q-npJ- P;RDKT:~jrmgj#/-,[hOBk!ry^' );

define( 'NONCE_KEY', 'FIsAsXJKL5ZlQo)iD-pt??eUbdc{_Cn<4!d~yqz))&B D?AwK%) )F2aNwI-siOe' );

define( 'AUTH_SALT', '7T-!^i!0,w)L#[email protected]{8XE[DenYI^BVf{L:jvF,hf}zBf883td6D;Vcy8,S)-&G' );

define( 'SECURE_AUTH_SALT', 'I6`V-mDZq21-J-ihb u^q0F }F_NUcy`l,=obGtq*p#Ybe4a31R,r=-n#=]@]c #' );

define( 'LOGGED_IN_SALT', 'w<$4c$Hmd%/*]`Oom>(hdXW-0M=X={we6;Mpvtg V.o<$-#_}qG(GaVDEsn,~*4i' );

define( 'NONCE_SALT', 'a-#h{c5-P &xWs4IZ20c2&%4!c(/uG}W:mAvy<I44`jAbup]t=]V<`}.py(wTP%%' );
Save and upload your wp-config.php file. Now check your website again and try to reproduce the error. Keeping your site secure should be a priority since you could lose more than your site including your personal information and that of your users. This article can help you keep your site and information safe.
We hope our “Are You Sure You Want to Do This” Error in WordPress tutorial really help.


There are so many factors contributing to the “Are you sure you want to do this?” error is displaying on your site, be it technical displacement by yourself or as a result of a security vulnerability. Either way it is, above is a close to perfect write up “do you know” and “how to” you should need to troubleshoot and fix this error all by yourself.