How To Fix The WordPress ‘Are You Sure You Want To Do This?’ Error

Learn how to troubleshoot and fix the WordPress ‘Are you sure you want to do this?’ error in this tutorial …

How To Fix WordPress Are You Sure You Want To Do This? ErrorThis tutorial is part of our FREE WordPress Management training and WordPress Troubleshooting tutorial series.

In this series of step-by-step tutorials, we show you how to troubleshoot and fix common WordPress errors.

Important

Important: Always do a backup of your WordPress site (files and data) before modifying any files or performing any upgrades or installations! 

If you don’t want to back up your site yourself, then get assistance from a WordPress professional, or use WordPress backup plugins.

How To Fix The WordPress ‘Are You Sure You Want To Do This?’ Error

WordPress "Are you sure you want to do this?" error

(WordPress “Are you sure you want to do this?” error)

One of the most common WordPress errors you will experience is the ‘Are you sure you want to do this?’ error …

Are you sure you want to do this?

(“Are you sure you want to do this?”)

Normally, you will experience this issue when working in your admin area in one of the following areas:

  • Editing or saving a WordPress Post or Page
  • Adding a new WordPress post category
  • Adding or configuring a WordPress Plugin or Theme
  • Uploading images or media files to WordPress

As WordPress doesn’t specify what causes the error in this instance, some troubleshooting is required. In the worst case scenario, the error may display if your website is under attack or has been hacked, but more often than not, this issue is caused by one of the following:

  • WordPress is logging you out
  • WordPress is unable to verify your access permissions
  • WordPress Plugin or Theme error
  • PHP memory limit has been exceeded

Let’s go through a process you can use to try and fix the issue.

WordPress Is Logging You Out

If you encounter the ‘Are you sure you want to do this?’ error after having stepped away from your computer for a while then coming back to work on your post or page and trying to save your work, the issue may just be that WordPress has logged you out.

This can happen if you are working in a location where your wi-fi or internet connection keeps going in and out of range.

Next time you get this error, just click on ‘Please try again’ and see what happens …

Please try again

(Please try again)

If WordPress takes you back to where you were before (e.g. saving a post) and the process seems to resume as normal, then the issue may just be that WordPress is logging you out but also remembering and saving your work using the autosave function.

If you keep experiencing this issue but are able to access your admin area and resume working, go here:

Useful Tip

If you encounter the ‘Are you sure you want to do this?’ error often when trying to save WordPress posts or pages and clicking ‘Please try again’ seems to work, then we recommend doing the following to make sure that you are saving the latest version of your content:

  1. Before saving, switch to the Text Tab in your WordPress Visual Editor.
  2. Select everything in the content editor and copy it to your clipboard.
  3. Click the ‘Update’ (or ‘Save Draft’) button to save your work.
  4. If you get the ‘Are you sure you want to do this?’ error message, click on ‘Please try again’.
  5. If WordPress brings you back to your post or page, switch back to the ‘Text’ tab in your WordPress editor, select everything again, paste the content of your clipboard over the existing content and resave. The latest version of your content will be resaved or updated.

If you are not able to log back into WordPress after the ‘Are you sure you want to do this?’ error message appears, then continue troubleshooting the problem using the methods described below.

Clear Your Web Browser Cache

The ‘Are you sure you want to do this?’ error is sometimes triggered when you are trying to complete a task that requires having certain user access permissions but WordPress is unable to verify that you have these. In other words, WordPress doesn’t know who you are.

WordPress uses security tokens called ‘nonces‘ to validate users and verify that you are the owner of your website or that you have the correct user role and permissions to complete the action that you are trying to do on your site. If the tokens in your browser cookies don’t match the tokens assigned to your current login session, you may experience errors with session authentication.

Often, clearing your web browser cache (and history and cookies) will fix this issue. The first step when trying to resolve this issue, then, is to clear your web browser cache.

Regardless of what web browser you are using (i.e. Firefox, Safari, Chrome), look for the option that allows you to clear your web browser history and cache.

For example, in Google Chrome, you can clear your browsing data by going to Menu > Settings > Advanced > Clear Browsing Data

Google Chrome Browser - Clear Browsing Data

(Google Chrome Browser – Clear Browsing Data)

If you need help with the above, refer to the tutorials in this module:

See if this solves the issue when you go back to using WordPress. If you continue to encounter the ‘Are you sure you want to do this?’ error after clearing your browsing data, then proceed to the method below.

Fix Plugin Or Theme Upload Error

Sometimes, a file or folder may have been missed when uploading plugin or theme files to your server and this can cause the ‘Are you sure you want to do this?’ error.

If you suspect the error was caused after trying to upload a plugin or theme, try to upload the files again in case a file is missing or the plugin/theme did not upload properly.

If you need help with this, see the tutorials below:

If this doesn’t solve the issue, try using the next method below.

PHP Memory Limit Reached

If there are too many plugins or applications installed on your WordPress site or too many processes running at the same time, you may be exhausting the PHP memory limit allocated to your website. In this case, the problem may be resolved by increasing your PHP memory.

To learn how to increase your PHP memory limit and troubleshoot errors related to exceeding PHP memory limits, see this tutorial:

Use The Default WordPress Theme

If you encounter the ‘Are you sure you want to do this?’ error while working on a theme (e.g. uploading a new theme or configuring theme settings), try reverting to the default WordPress theme included with your installation.

Reverting to your default WordPress theme is recommended when troubleshooting theme issues …

Revert to your default WordPress theme when troubleshooting theme issues

(Revert to your default WordPress theme when troubleshooting theme issues)

If you are working on a theme and find that you can’t log back into WordPress after getting the ‘Are you sure you want to do this’ error, you may need to delete the new theme from your server. To do this, log into your server using FTP or cPanel’s File Manager, make a backup of the new theme, and either rename the theme or delete it from your server.

If you need help with this, see the tutorial below:

If you can login to your WordPress site after renaming or deleting the theme from your server, you will most likely find a ‘broken theme’ error message …

WordPress displays a 'broken theme' message if your active theme is deleted

(WordPress displays a ‘broken theme’ message if your active theme is deleted)

This error also displays if you try loading themes with missing files …

The active theme is broken. Reverting to the default theme.

(‘The active theme is broken. Reverting to the default theme.’)

When themes are broken, WordPress reverts to the default theme used in your installation.

See if this solves the issue. If this doesn’t fix the problem, try using the next method below:

Rename Or Delete Plugins

If you encounter the ‘Are you sure you want to do this?’ error while working on a plugin, try deleting the plugin or renaming plugin files on your server.

If you need help troubleshooting Plugins, go here:

Reset WordPress Security Keys

If none of the above methods fixes the issue, try resetting your WordPress security keys.

To learn how to reset your WordPress security keys, see this tutorial:

Contact Your Web Host

If none of the above methods work and the error persists, contact your hosting company and let them know what actions you are taking before the error occurs. They may be able to help you fix this.

In addition to the information above, check out this video on how to fix the WordPress “Are you sure you want to do this” error from the team at MyThemeShop:

(How to fix the WordPress ‘Are you sure you want to do this?’ error. Video: MyThemeShop)

More WordPress Troubleshooting Tutorials

Please see the tutorials in the section below if you experience additional errors with WordPress:

How To Fix WordPress Are You Sure You Want To Do This? Error

(Source: Pixabay)

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

***

Recommended Video Courses For WordPress Users

How To Use Amazon S3How To Use Amazon S3

Learn how to set up and use Amazon S3 to upload, store, manage, and protect your site’s images, large media files, downloadable files, stream videos and more.

More info: How To Use Amazon S3

Recommended Video Courses For WordPress Users

How To Set Up WordPress On LocalhostHow To Set Up WordPress On Localhost

Learn how to install, set up, and locally host a fully functioning WordPress site on your computer.

More info: How To Set Up WordPress On Localhost

Recommended Video Courses For WordPress Users

How To Use cPanelHow To Use cPanel

cPanel is a powerful and simple-to-use web hosting management software application that gives website owners the ability to quickly and easily manage their servers and websites using a simple and intuitive dashboard.

This video course will teach you how to use the main features of cPanel to manage your web hosting.

More info: How To Use cPanel

Recommended Video Courses For WordPress Users

WordPress SecurityWordPress Security

Learn how to keep your WordPress site or blog secure and protected from malware, hackers and brute-force attacks.

More info: WordPress Security

Recommended Video Courses For WordPress Users

Google ToolsGoogle Tools

This video course will help you learn the basics of using Google Tools like Google Analytics and Gmail.

More info: Google Tools

Recommended Video Courses For WordPress Users

How To Set Up A Forum On WordPressHow To Set Up A Forum On WordPress

Learn how to set up a forum for your visitors, prospects, customers, members, or affiliates using WordPress.

More info: How To Set Up A Forum On WordPress

Recommended Video Courses For WordPress Users

How To Back Up & Restore WordPress SitesHow To Back Up & Restore WordPress Sites

Learn how to safely and automatically backup your WordPress files and database and how to easily restore your WordPress site if something were to happen.

More info: How To Back Up & Restore WordPress Sites

Recommended Video Courses For WordPress Users

How To Optimize WordPressHow To Optimize WordPress

Learn how to optimize your WordPress site and improve your page loading speed.

More info: How To Optimize WordPress

Recommended Video Courses For WordPress Users

How To Use FTPHow To Use FTP

This video course shows you how to use FTP (File Transfer Protocol) to transfer and upload files between your hard drive and your server using a free FTP program called Filezilla.

More info: How To Use FTP

Recommended Video Courses For WordPress Users

Using Password ManagersUsing Password Managers

Password Managers provide an easy and secure way to keep track of all your passwords. This video course shows you how to use two FREE powerful password management tools.

More info: Using Password Managers

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and the author of The Small Business Digital Manager. WPCompendium.org provides hundreds of FREE tutorials that show you how to use WordPress to grow your business online with no coding skills required! Get our FREE "101+ WordPress Tips, Tricks & Hacks For Non-Techies" e-course with loads of useful WordPress tips!

Originally published as How To Fix The WordPress ‘Are You Sure You Want To Do This?’ Error.