In WordPress, there are some unhelpful errors like “ Are You Sure You Want to Do This “. When this error rises, nothing but a white blank page appears on your Website. This makes the users feel more depressed.
So, In order to help WordPress users especially the beginners, We published this article about the Common Install Error. We will also show you how to investigate and fix “ Are you sure you want to do this ” error in WordPress.
What is “Are you Sure You Want To Do This” Error means?
“ Are You Sure You Want To Do This ? ” error message is a response from the server reporting the error existence. While performing some tasks in WordPress admin and if you are requesting the server for some page or the other, then the server sends the response in the form of the Error message.
When this Installation Error occurs?
This error commonly occurs when PHP Configuration in your hosting does not support suitable conditions to allow WordPress Uploads and Installations.
Before going to know about the Error, Every user must know about the Nonce. Nonce is a special security key or number which are generated by a theme, plugin, or the core files. These keys will be appended to URLs while performing an admin action in WordPress for verification purpose.
Why this Error Occurs?
The error usually occurs when WordPress checks for the Nonce in the admin URL. If it is not able to verify the security tokens, the error displays. Improper use of Nonce by the WordPress plugins and themes will also lead to this Error ‘ Are you sure you want to do this ?’.
Reasons Why this Error Message Appears
Unfortunately, we can not show a specific why this error occurs because it provides no specific information about the cause of the error. The error can happen while you are trying to accomplish a wide variety of tasks like
- Inserting an image into a post.
- Customizing a theme.
- Creating tags or categories.
- Updating WordPress core or plugins and WordPress themes.
- You selected an incorrect file while trying to upload a theme or plugin.
This is not a complete list, but it will give you an idea about the reasons for this error. Let us discuss furthermore on the reasons for causing the common install error.
Publishing posts or pages
When the maximum post size in WordPress has been exceeded, then the common install error arise.
Uploading a theme or plugin
If you are trying to upload a theme or plugin and the error occurred, then the cause is that you have tried uploading a plugin or theme package rather than the ZIP file can cause the error” Are you sure you want to do this ?”.
An improperly coded theme or plugin
The error could also occur if a plugin or theme has a security vulnerability or otherwise properly coded.
You reached your PHP memory limit
The issue ” Are you sure you want to do this ?” in WordPress may also occur when the PHP memory limit exceeds.
A security issue
If your site is subjected to an attack, you can see the error. Especially in the cases of cross-site scripting (XSS) or cross-site request forgery (CSRF) attacks, the error rises asking you ” Are you sure you want to do this ?”.
Best Solutions to Fix the “Are You Sure You Want to Do This” Error in WordPress
When you get this error, you will also get a “Please try again” link with it, but on trying it again, the same page appears raising the same problem. So, here are some solutions to fix “ Are you sure you want to do this ?” error in WordPress. Check them and use to fix the error
Clear the browser Cache
It is not always a fix that works, but sometimes clearing your browser cache can also resolve this error. If this does not work, you can try clearing your browser cookies as well.
Deactivate all the plugins
A bad plugin or improperly coded plugin can raise the issue in the WordPress. To avoid the error, deactivate all your plugins. For this, you need to connect through FTP.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
Now, search for the wp-content folder. Inside this folder, you can see the plugins folder.
Rename the plugins folder with any other name like plugins.deactivated and check.
With this, the error disappears if it is caused due to the plugins of your website. After that visit the plugins page in your WordPress admin area and activate the plugins one by one. Repeat this until you find the plugin causing the ” Are you sure you want to do this ?” WordPress Error message.
Sometimes, Website plugins would not create the Error, then it seems the current theme may be the convict. To check whether the theme is the cause of the error, deactivate your theme. To deactivate it, you need to follow the same process as you did for the plugin deactivation.
Log in to your account through FTP. Now find the wp-content and open it and search for the themes folder.
Now rename this folder as themes.deactivate. This will kick out the error if it is due to the theme you are using currently.
After this, log into your WprdPress admin area and go to Appearance. There you can find Themes page. Give a click on it and you will see a notification that ‘The active theme is broken. Reverting to the default theme’. Now WordPress will start using the default theme like Twenty Thirteen for your website.
Now reload the page and check. if the error disappears, then the error is caused by the current theme that you are using for your site.
Upload the Theme or Plugin carefully
Some theme or plugin packages often include the theme or plugin ZIP file along with other useful documents such as instructions, demo content, licensing information and other similar files. Because of these, the size of the file will be huge. So, Unzip the package. Find the plugin or theme file among the extracted files and try uploading.
Increase your PHPMemory Limit
Increasing the PHP memory limit can flush the error occurred in your WordPress Website. Expanding the memory can be done in three different ways. Check the three methods to find the simple method.
Method 1: Updating php.ini or php5.ini file
- Log into your Cpanel
- Search for Files section and select FileManager. Make sure that the Show Hidden Files checkbox had been checked.
- click on “Go“.
- Select the wp-admin folder. Inside this, you can find a file called php.ini or php5.ini. Note: if you don’t find this file in your wp-admin, create a blank file and name it as php.ini. If this does not work for you then, rename it as php5.ini.
- Now add the following code in the file.
upload_max_filesize = 1000M
post_max_size = 2000M
memory_limit = 3000M
file_uploads = On
max_execution_time = 180
- Now click on save and close the file.
- Clear your browser cache and try reloading the page.
Method 2: Editing the .htaccess files
If you feel the above procedure difficult or if the method 1 does not do the trick then, try editing the .htaccess file. For this, you need
- log into your Cpanel.
- Select Filemanager.
- Search for the public_html directory.
- In this directory, you can see the .htaccess file.
- Select the file and give a right click on it.
- Select edit option and add the following code after the last line in the file.
7. Save your file and close. Don’t forget to clear your browser cache before you reload the page.
Method 3: Amending wp-config.php file
In this method, we follow Editing your wp-config.php file to Increase the PHP Memory Limit.
1.Login to your Cpanel and click on FileManager.
2. Go to public_html and find the wp-config file.
3. Give a right click on the file and select edit.
Add the following code line at the very bottom of the file.
Upload core files
The corrupted core files can also rise this error “Are you sure you want to do this?”. So to get rid of this error, you should delete the core files and upload the new core files. For this, you need to follow the steps.
- Login to Cpanel and select FileManager.
- Go to the root directory.
- Delete all the files except wp-config.
- Download the new version of WordPress.
- Now upload the new WordPress core files to the current WordPress.
Reset Security Keys
A non-encrypted password like ” WordPress or your_name ” can be easily broken by a hacker , but an unpredictable, randomly generated and encrypted password such as “88a7da62429ba6ad3cb3c76a09641fc” takes years for him to frame up the right combination. Therefore, You should reset WordPress Security keys to increase security and to avoid the error “Are You Sure You Want to Do This”.
For this, you to modify your wp-config.php.
- Connect to your website through FTP.
- Go to your root directory and search for the wp-config.php file. Search for 8 security keys. Initially, the values are set as shown below.
Replace ‘put your unique phrase here’ with some values as shown in below example. Save and upload your wp-config.php file. Now try reloading your browser to flush the Common install error. This will help you in eradicating the error message ” Are you sure you want to do this ?”.
The above mentioned solutions are the best error solving solutions. Hope these solutions helped you. If they fail to solve your problem then, contact your host managing support team for help. For more information about the Errors in WordPress and to get Solutions for the errors, Keep following us.