‘Are you sure you want to do this?’
This seems to be a rather common issue and I ran into it today. I have not seen a valid resolution from anyone else, so here is what I’ve found that worked for me.
Description: When you try to upload a theme and install it, you get a big white page that says ‘Are you sure you want to do this?’ and a button that says ‘Try again’. After you click the ‘Try Again’ button, you will be able to repeat your previous steps. After you do this about 8 times are ready to throw your computer through the nearest window, you can try this.
In my case I’m using a theme I purchased and downloaded as a zipped verions. I was trying to upload the zip file of the theme using the WordPress ‘upload your theme page’. I was uploading the correct zip file (make sure you are uploading only the installable zip file, and not all of the source code files zipped up). I decided to remote desktop to my server which is a Windows IIS server, and download the zip file from the source. I could have ftp’d it to the server so the point is to get the zip file on the server and look at it on the Windows server. Unzip the file on the server and prepare to put it in your website’s wwwroot/wp-content/themes/ folder.
Here is where it got interesting. When I unzipped the zip file, there was an extra folder in my unzipped folder called ‘__MACOSX’. The ‘__MACOSX’ folder and my unzipped theme folder were both labeled with green font.
When I had looked at this same file on my own Mac, I don’t see this __MACOSX folder, nor is it green. This only appears when it gets onto a windows machine and the green text means the files are encrypted.
To fix the issue, I deleted the __MACOSX folder completely. Then I right click the ‘MyAwesomeTheme’ folder, select Properties and on the General tab, click the ‘Advanced’ button. On the Advanced window, uncheck the ‘Encrypt contents to secure data’ checkbox, and click ‘OK’, then close out of the properties windows. Now your folder will appear with black text to indicate it is not encrypted. You can now copy this into your wwwroot/wp-content/themes/ folder, and when you login to your WordPress administration site, you will see your theme on your ‘Themes’ page.
For those of you using a shared host, you will need the help of your webhost to perform these steps on the server unless you have a windows machine you can do this on. There might have been a way I could have done this within my Mac OS so that I could have uploaded the cleaned up zip file.
I have Parallels installed so I could probably have unzipped it on that, performed the above cleanup steps, then re-compressed it as an unecrypted folder. I expect that would work and I could then have uploaded it using the WordPress UI to install. Feel free to try that.