Fix “Are You Sure You Want to Do This” Error in WordPress – So Simple

In this tutorial, we will show you how to fix the error in word press” A Word press error like establishing database connection or memory tried solution .these error sometimes helpful because this error tells the everything about the specific problem.  Then there are the unhelpful errors like”are you sure you want to do this” when seeing this problem that means error does not provide any helpful information. Follow our instructions to solve the below problem of fixing the issue.

Why and when “Are you sure you want to do this?” Error Appears?

If you are installing your theme from the Word Press theme installer, but get a message that says Are you sure you want to do this. Usually, this error comes up when Word Press safety protocol fails in the form of nonce; nonce is a set of random numbers that are generated by Word Press, by plugins, theme and are often generated to protect your website from abuse.” is usually generated especially when the nonce verification fails. 

Investigating “are you sure you want to do this? “Error

The reason happens this problem for plugin or theme that is installed on your site .to further investigate which plugin or theme is causing the issue you will need to deactivate to plugins.

Investigating Plugins

A deactivate plugin can still cause the issue .we can make sure that no plugin is installed in word press and if any plugin have we clean up the file.to do that we need some instruction:

  • First, we need to connect with the site.
  • Then go to FTP client and rename the plugin folder.
  • After plugin folder in wp-content go- to the directory and then plugin –deactivate.
  • Go back plugin page in your WordPress admin area.
  • After you complete  4th step you will see the notification for all your plugins which are now deactivated.

After you completed plugins are truly uninstalled and deactivate, you can try to reconstruct the error. If the error does not reproduce again, this means that the plugin of your website was causing the error. To find out plugin problem go to your FTP client and rename plugins. Deactivated folder back to the plugin . After you visit word press admin area and activate your plugin the error issue will be solved permanently.

Investigating Themes

Sometimes the plugin is not the main issue for error it might be theme causing problem you can review the theme by repeating the same procedure you did for plugins. Follow the below instruction:

  • First you need to connect your website with FTP client and download your currently theme in your computer as backup file.
  • Once you have backed up your theme ,delete it form your  web server.
  • In word press admin area you will see the notification that active theme is broken.
  • Word press will now start using the default theme .
  • Now check the error and if don’t see any error sign that means it is right .

Unable to Find the Source of the Error

After deactivating  and reactivating  your plugin and themes for reproducing the error you have tested thoroughly  and you are confident that no plugin or theme exit for causing the problem, then follow the steps:

  • Make sure that you have full back up your website.
  • Next, delete all except wp-content directory.
  • After that download, a fresh copy of word press file and extract it and upload the file inside the word press directory.
  • Once you complete all step, create a new php.file inside root directory.
  • Add all sections except authentication unique keys and salts.
wp-config.php
/*
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         '`+7nTNb<AwtbLA$L-Q7amn;~|wH)ljXv2~TpbP?mLA+M`8H|n1`/Lz-GmAQL{4fB');
define('SECURE_AUTH_KEY',  '/gkAjhhJe`iwO)V-p=JUD?|W)b3gMfG~g[zr8N6}m%MZ|L');
define('NONCE_KEY',        ']Zj5i*hHlsUWKg2|>YF,X+xpd-_`I[nFmA6ZLw~;EW7g0.s5EaZCAJ=j]./5z^X~');
define('AUTH_SALT',        'e*l:hUsddFIxm1E7y-n#_}3,4)J]S sM6-MI3aB#Qk1Xx`pwt6?**i}');

Save and upload the file in wp-config.php. check the website again and try to review it .hopefully we will not see any error if you see any error then read the article again carefully. Hopefully, this article helps you lots.