How to fix the “are you sure you want to do this” error in wordpress

     

Every once in a while, you might encounter a WordPress error like error establishing database connection or memory exhausted error. These errors are somewhat helpful because they tell you exactly what the problem is.

Bạn đang xem: How to fix the “are you sure you want to do this” error in wordpress

On the other hvà, there are unhelpful errors like “Are you sure you want khổng lồ vì this”.

There are too many factors that can lead lớn this error. This is why WordPress is unable khổng lồ provide any information to point you in the right direction khổng lồ fix it.

In this article, we will show you how lớn investigate và fix “Are you sure you want khổng lồ do this” error in WordPress.

*

What causes the: “Are you sure you want to lớn bởi vì this?” error?

‘Are you sure you want khổng lồ vị this?’ error usually appears when nonce verification fails and the most likely candidates khổng lồ cause this error are plugins và themes not using this feature properly.

Xem thêm: Sửa Lỗi Không Chạy Được Mysql Trong Xampp ? Hỏi Lỗi Không Start Được Mysql Xampp

Nonces are unique keys which add a security layer to lớn protect WordPress URLs, forms, and ajax calls from abuse. They ensure that a script is originating from your website và not an external source lượt thích a hacker trying khổng lồ gain access lớn your website.

How to Fix “Are Your Sure You Want lớn Do This?” Error

Most commonly, this error is caused by a plugin or theme that is installed on your site. To investigate which plugin or theme is causing the issue, you will need to deactivate all your plugins.

Investigating Plugins

First, you need lớn deactivate all WordPress plugins và make sure that WordPress is unable khổng lồ locate any installed plugin.

Simply connect to your WordPress hosting tài khoản using an FTP client.

Once connected, go to the wp-nội dung folder & rename plugins folder lớn plugins.deactivated.

*

After that, you need to lớn go back to lớn the plugins page in your WordPress admin area. You will see a notification for all your plugins which are now deactivated.

*
Now that all your plugins are properly uninstalled và deactivated, you can try lớn reproduce the error.

If the error does not appear again, then this means that one of the plugins on your trang web was causing the issue. To figure out which plugin was causing the issue, go back khổng lồ your FTPhường client & rename plugins.deactivated thư mục baông chồng to lớn plugins.

After that, visit the plugins page in your WordPress admin area and activate each plugin one by one. You need lớn try khổng lồ reproduce the error after activating each plugin until you find the plugin that is causing the issue.

Yes, this sounds lượt thích a time consuming task, but it is the easiest way for beginners khổng lồ find a misbehaving WordPress plugin.

Investigating Themes

If the plugins were not causing this issue, then it might be your theme that is causing the ‘Are you sure you want to lớn bởi this’ error.

You can investigate the theme causing this issue by repeating the same procedure you did for plugins. First, you need to lớn connect lớn your trang web using an FTP client và download your currently active theme to lớn your computer as a backup.

Once you have backed up your theme, you can safely delete it from your website hệ thống.

Now visit Appearance » Themes page in your WordPress admin area, & you will see a notification: ‘The active sầu theme is broken. Reverting to lớn the default theme’.

*

WordPress will now start using the default theme like Twenty Seventeen for your website.

If you are unable lớn reproduce the error after the default theme was activated, then this means that your theme was causing ‘Are you sure you want to vày this?’ error.

Unable lớn Find The Source of The Error

Make sure that you have sầu tested thoroughly to reproduce this error after deactivating and reactivating your plugins và themes.

If you find out that no plugin or theme on your site is causing the error, then there are a few extra steps you can take.

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

First, you need khổng lồ make a complete WordPress backup for your site. This step is important as it will help you easily restore your trang web in case something goes wrong.

Next, connect khổng lồ your website using an FTPhường client & tải về the ‘wp-config.php’ file lớn your computer. This file contains your WordPress database web1_settings which you will need later.

*

After that you need to lớn carefully delete all WordPress files from your hệ thống except wp-nội dung folder và all its contents.

*

After that, you need khổng lồ download a fresh copy of WordPress khổng lồ your computer. You can tải về it from WordPress.org website as a zip tệp tin.

Go ahead and extract the zip file on your computer and upload the files inside the ‘wordpress’ thư mục to your web VPS using FTP..

Once you have uploaded all the files, rename the wp-config-sample.php tệp tin to wp-config.php.

Now, you need khổng lồ edit the new wp-config tệp tin to enter your WordPress database & table information. You can look at the old wp-config.php tệp tin that you downloaded earlier to enter all the information.

See our article on how khổng lồ edit the wp-config.php file in WordPress for detailed instructions.

You need to lớn add all sections except ‘Authentication Unique Keys & Salts’. Delete all the lines starting with define in this section.