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

Get real time updates directly on you device, subscribe now.

Occasionally you may encounter a WordPress error such as an error in establishing a database connection or an exhausted memory error. These errors are somewhat useful because they tell you exactly what the problem is.

On the other hand, there are useless errors such as “Are you sure you want to do this”.

There are too many factors that can lead to this error. This is why WordPress cannot provide information to point you in the right direction to correct it.

In this article, we show you how to resolve and resolve the “Are you sure you want to do this” error in WordPress?

What causes the: “Are you sure you want this?”

“Are you sure you want to do this?” error usually appears when nonce authentication fails and the most likely candidates to cause this error are plug-ins and themes that do not use this function properly.

Nonces are unique keys that add a layer of security to protect WordPress URLs, forms and ajax calls against abuse. They ensure that a script comes from your website and not from an external source such as a hacker who is trying to access your website.

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

Usually, this error is caused by a plug-in or a theme installed on your site. To investigate which plug-in or theme is causing the problem, you must deactivate all your plug-ins.

Investigating plug-ins

First, you must deactivate all WordPress plug-ins and ensure that WordPress cannot find installed plug-ins.

Easily connect to your  WordPress hosting account using an  FTP  client.

Once connected, go to the wp-content folder and rename the folderplugins to.plugins.deactivated

You must then return to the plug-ins page in your  WordPress management area. You will see a notification for all your plug-ins that are now deactivated.


Now that all your plug-ins have been correctly removed and deactivated, you can try to reproduce the error.

If the error does not reappear, it means that one of the plug-ins on your website has caused the problem. To find out which plug-in caused the problem, go back to your FTP client and rename the folderplugins.deactivated back to.plugins

Then go to the plug-ins page in your WordPress management area and activate each plug-in one by one. You should try to reproduce the error after activating each plug-in until you find the plug-in that is causing the problem.

Yes, this sounds like a time-consuming job, but it is the easiest way for beginners to find a malfunctioning WordPress plug-in.

Investigating themes

If the plug-ins do not cause this problem, your theme may have caused the “Are you sure you want this” error message.

You can investigate the theme of this problem by repeating the same procedure as for plug-ins. First, you must connect to your website using an FTP client and download your currently active theme to your computer as a backup.

After backing up your theme, you can safely remove it from your web server.

Now go to the Appearance »Themes page in your WordPress management area and you will see a message:” The active theme is broken. Return to the default theme ‘.

WordPress now uses the standard theme such as Twenty Seventeen for your website.

If you cannot reproduce the error after the default theme is activated, it means that your theme was “Are you sure you want to do this?” wrong.

Unable to find the source of the error

Make sure you have tested thoroughly to reproduce this error after deactivating and reactivating your plug-ins and themes.

If you discover that no plug-in or theme on your site is causing the error, there are a few extra steps you can take.

These steps basically replace all core WordPress files with new copies downloaded from the source.

You must first create a complete  WordPress backup for your site. This step is important because it helps you easily restore your website in case something goes wrong.

Then connect to your website using an FTP client and download the ‘wp-config.php’ file to your computer. This file contains your WordPress database settings that you will need later.

You must then carefully remove all WordPress files from your server,  except the folderwp-content and its entire contents.

You must then download a new version of WordPress to your computer. You can download it from WordPress.org as a zip file.

Go ahead and extract the zip file on your computer and upload the files in the ‘WordPress’ folder to your web server using FTP.

After you have uploaded all files, rename the wp-config-sample.php file to wp-config.php.

You now need to edit the new wp-config file to enter your WordPress database and table information. You can view the old wp-config.php file that you downloaded earlier to enter all the information.

You must add all sections except ‘Authentication Unique Keys and Salts’. Remove all lines that begin withindefine this section.;

Now save and upload your wp-config.php file back to your website.

That is all, you have successfully renewed your WordPress installation. You can now continue and try to reproduce the error on your website.

Basic tips for solving WordPress problems

We understand that it can sometimes be frustrating to solve such problems. That is why we have developed a handy  WordPress Troubleshooting Guide in which you can see how you can investigate and solve WordPress problems as a professional.

WordPress is used by millions of people. Regardless of the problem you encounter, it is likely that thousands of other people have seen it for you and have solved it.

You can find a solution by simply entering the error in the Google search. For more useful results, add wpbeginner.com to the end of your search term to find a simple step-by-step guide to solve the problem.

Get real time updates directly on you device, subscribe now.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More