I've been using S2Member for almost a year now for my premium theme business, and it's been a great experience overall. Everything was running smoothly on my setup, until I upgraded WordPress and S2Member to their latest versions. Since then my protected zip files have been impossible to open for my customers.
Here's my setup:
I have one membership level with custom capabilities added to them. When a member purchases a Theme he become S2Member LVL1 with the custom capability of the theme name. He is then able to download the zip file with the theme in it. My protected downloads are setup properly:
- Code:
plugin/s2member-files/ccap-mytheme/my-theme.zip
When I download this file directly from my server everything is cool. No problems. As soon as I start using the special S2Member link:
- Code:
?s2member_file_download=access-s2member-ccap-mytheme/my-theme.zip
The file somehow get's modified or messed up.
As soon as you try to open the file the following error occurs on Windows:
"Error opening file: Invalid folder."
On MAC OSX it works for a few people but a new folder is created with dummy files in it (called _MacOSX)
So my first idea was that I packaged the zip files wrong. But this is not the case, since if I move the zip file outside of the s2member-files folder, and removing the .htaccess protection, the opens up fine for everyone. So the problem seems to be related to the file protection/.htaccess somehow modifying the zip when being downloaded.
For now this means I need to manually send people their themes, but I really need a solution for this. It's a pretty advanced problem, but it was working just fine in the past
Greetings,
BoweStatistics: Posted by BoweFrankema — April 5th, 2011, 5:54 am
]]>