Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-26T23:00:50-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=17001 2012-01-26T23:00:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61731#p61731 <![CDATA[Re: [RESOLVED] Download Zip files now works]]>
Yup. I'll keep these .htaccess files as backups; at the least (and thanks to Jason) we know they work. Keep them handy for the next upgrade.

Good luck with your upgrade!

Cheers,
-Erin

Statistics: Posted by esmale — January 26th, 2012, 11:00 pm


]]>
2012-01-26T22:57:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61729#p61729 <![CDATA[Re: [RESOLVED] Download Zip files now works]]>
Not sure but since we are both Blue Host, it might be a problem with their server being the conflict. I intend to keep this .htaccess file safe and use it the next time when WordPress and S2 Member need to be updated.

Judith

Statistics: Posted by Judith — January 26th, 2012, 10:57 pm


]]>
2012-01-26T21:43:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61709#p61709 <![CDATA[Re: [RESOLVED] Download Zip files now works]]>
I'm awaiting a test from an existing customer, but my own tests confirm that the updates you made are working. The problem seems to have been solved.

As your schedule permits, can you address why this issue occurred, and should I worry about it the next time I upgrade s2Member?

Thanks so much for your thoughtful attention and time. I realise that you are probably busier than a 1-armed paper hanger, and this fix is tremendously helpful. Thanks again for your time and expertise. I really appreciate it.

Cheers!
-Erin

Statistics: Posted by esmale — January 26th, 2012, 9:43 pm


]]>
2012-01-26T17:29:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61681#p61681 <![CDATA[Re: Download now works but someone else has a similar proble]]>
Thanks for your time - I'll check it out when I get home from work tonight to confirm.

Cheers,
-Erin

Statistics: Posted by esmale — January 26th, 2012, 5:29 pm


]]>
2012-01-26T17:18:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61680#p61680 <![CDATA[Re: Download now works but someone else has a similar proble]]> Investigation completed.
~You should be good now Erin.

I implemented both of the .htaccess files that I described here:
viewtopic.php?f=4&t=17001#p61493

Seems to be working properly now. Please review your modified .htaccess files here:
Code:
/.htaccess
/wp-content/plugins/s2member-files/.htaccess

* Note. It looks like you may have tried this yourself, but when you copied from the forum, you ended up with extra spaces in the front of some important directives. I'm attaching a ZIP file that contains both of these files with proper formatting for the benefit of other readers, just in case corruption was the cause of your problem before.htaccess-instructions.zip

Statistics: Posted by Jason Caldwell — January 26th, 2012, 5:18 pm


]]>
2012-01-26T16:37:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61672#p61672 <![CDATA[Re: Download now works but someone else has a similar proble]]> Statistics: Posted by Jason Caldwell — January 26th, 2012, 4:37 pm


]]>
2012-01-26T16:00:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61663#p61663 <![CDATA[Re: Download now works but someone else has a similar proble]]> Just curious because I'd like to use the most current version if there is a fix.

Statistics: Posted by Judith — January 26th, 2012, 4:00 pm


]]>
2012-01-26T15:40:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61659#p61659 <![CDATA[Re: Download now works but someone else has a similar proble]]>
I had some "time management challenges" last night, and did not send the requested login credentials to Jason until early this morning. I can't speak for Jason, but I suspect more time is needed.

Cheers,
-Erin

Statistics: Posted by esmale — January 26th, 2012, 3:40 pm


]]>
2012-01-26T14:28:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61655#p61655 <![CDATA[Re: Download now works but someone else has a similar proble]]> Statistics: Posted by Judith — January 26th, 2012, 2:28 pm


]]>
2012-01-25T14:14:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61554#p61554 <![CDATA[Re: Download now works but someone else has a similar proble]]> Statistics: Posted by Jason Caldwell — January 25th, 2012, 2:14 pm


]]>
2012-01-25T09:13:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61530#p61530 <![CDATA[Re: Download now works but someone else has a similar proble]]>
Jason Caldwell wrote:
Hi Erin. If possible, please send me a Dashboard login and FTP access. I'll be happy to run diagnostics for you to resolve this.


Hi Jason,

Sure thing - I'll send the credentials tonight (after 8:30pm EST).

Cheers,
-Erin

Statistics: Posted by esmale — January 25th, 2012, 9:13 am


]]>
2012-01-25T01:01:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61511#p61511 <![CDATA[Re: Download now works but someone else has a similar proble]]>
Planning on notifying my list of a sale tomorrow and want all my zip files working. The back version I mentioned above has no conflict with WordPress 3.3.1 so I'm good for now.

Statistics: Posted by Judith — January 25th, 2012, 1:01 am


]]>
2012-01-24T23:58:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61507#p61507 <![CDATA[Re: Download now works but someone else has a similar proble]]> Statistics: Posted by Jason Caldwell — January 24th, 2012, 11:58 pm


]]>
2012-01-24T23:58:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61505#p61505 <![CDATA[Re: Download now works but someone else has a similar proble]]> http://www.s2member.com/contact/

Statistics: Posted by Jason Caldwell — January 24th, 2012, 11:58 pm


]]>
2012-01-24T23:54:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61502#p61502 <![CDATA[Re: Download now works but someone else has a similar proble]]>
I'm using the .htaccess file you provided and tried both s2-hacks.php scripts. I still get the Confirm File Download box, but both resulted in a screen of unreadable characters (same behaviour for ZIP, PDF, and PNG). So it definitely made a difference, but didn't fix the issue.

The weird thing is that, on very (very, very) few occasions, the links did provide a Save/Open dialogue box. Do you think this is a server-side issue I should take up with my host, or do you think it's an s2Member config issue?

Given the behaviour, and the fact that I'm pretty sure I followed the s2Member instructions carefully, I'm inclined to believe its something on Bluehost. That said, they're pretty open to PHP mods on a directory-by-directory level (via .htaccess) but I don't want to rule out a problem with my config.

So...what else you got? ;)

Cheers,
-Erin

Statistics: Posted by esmale — January 24th, 2012, 11:54 pm


]]>
2012-01-24T23:39:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61499#p61499 <![CDATA[Re: Download now works but someone else has a similar proble]]>
In FF 9.x, I clicked on the ZIP, PDF, and PNG download links and got the Save/Open dialogue. However, when I clicked on them again, I got the Confirm File Download box, clicked OK, and got the same behaviour as before.

Switched to IE 8.x and was successful with the PDF and PNG downloads (they appeared inline, as confirmed by my Inline File Extensions dialogue). However, the ZIP download failed and gave me an error: after the Confirm File Download box, I got a page stating that "Internet Explorer cannot display the webpage". There was no Save/Open dialogue.

I added the rewrite option that Jason suggested here, but same behaviour - the problem does seem to be with downloading ZIP files.

Cheers,
-Erin

Statistics: Posted by esmale — January 24th, 2012, 11:39 pm


]]>
2012-01-24T23:34:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61498#p61498 <![CDATA[Re: Download now works but someone else has a similar proble]]> Hey guys. Thanks for your patience.

In our forums here you'll see there are some other server conflicts that can arise in regards to chunked file delivery and/or flushed file delivery. Here are some additional tweaks we've made available to help workaround these issues on different hosts. With each new release we are tweaking this further to maximize compatibility, but these you can use now to workaround some known issues across different server configurations, particularly with Nginx and LiteSpeed (i.e non-Apache servers).

Disable chunked file delivery and re-test.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code:
<?php add_filter("ws_plugin__s2member_chunk_file_downloads", "__return_false"); ?>

Disable both chunked & flushed file delivery, and re-test.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code:
<?php
add_filter
("ws_plugin__s2member_chunk_file_downloads", "__return_false");
add_filter("ws_plugin__s2member_flush_file_downloads", "__return_false");
?>

In either case, please make sure that you've completed the .htaccess tweaks I posted above in their entirety. These are not required on most common server configurations, but they can assist in working around issues that might be affecting you. If all else fails, please check your server error log, or your PHP error log for anything that might shed light on a conflict that exists with your installation.

It's also a good idea to disable any type of PHP-based output compression such as ob_gzhandler, or zlib.output_compression. If you would like to enable GZIP compression, please steer away from using PHP-based output compression. See: viewtopic.php?f=4&t=16927&p=61063#p61063

Statistics: Posted by Jason Caldwell — January 24th, 2012, 11:34 pm


]]>
2012-01-24T23:23:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61496#p61496 <![CDATA[Re: Download now works but someone else has a similar proble]]>

@Jason: I added the section you provided, but no joy. Same behaviour as before. This occurs for the ZIP file mentioned as well as a test PDF and (recently) a test PNG.

It truly appears that the problem is with s2Member. Whether that's the server or my config remains to be seen...

Cheers,
-Erin

Statistics: Posted by esmale — January 24th, 2012, 11:23 pm


]]>
2012-01-24T23:14:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61493#p61493 <![CDATA[Re: Download now works but someone else has a similar proble]]>
/.htaccess ( main WordPress directory )
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>

Now, you should also have an .htaccess file in your /s2member-files/ directory. If you don't please re-install s2Member and that will create the proper .htaccess file. Either that, or add this .htaccess file.

/wp-content/plugins/s2member-files/.htaccess
Code:
Options +FollowSymLinks -MultiViews -Indexes

<IfModule mod_env.c>
   SetEnv no-gzip 1
</IfModule>

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /

   RewriteCond %{ENV:s2member_file_ms_scan} !^complete$
   RewriteCond %{THE_REQUEST} ^(?:GET|HEAD)(?:[\ ]+)(?:/)([_0-9a-zA-Z\-]+/)(?:wp-content/)
   RewriteRule ^(.*)$ - [E=s2member_file_ms_scan:complete,E=s2_blog:%1]

   RewriteCond %{ENV:s2member_file_download_scan} !^complete$
   RewriteRule ^(.*)$ - [E=s2member_file_download_scan:complete,E=s2member_file_download:$1]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-stream/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_stream:&s2member_file_stream=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-stream-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_stream:&s2member_file_stream=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-inline/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_inline:&s2member_file_inline=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-inline-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_inline:&s2member_file_inline=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-storage-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_storage:&s2member_file_storage=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-remote/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_remote:&s2member_file_remote=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-remote-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_remote:&s2member_file_remote=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-ssl/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_ssl:&s2member_file_ssl=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-ssl-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_ssl:&s2member_file_ssl=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-download-key-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_download_key:&s2member_file_download_key=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-skip-confirmation/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_skip_confirmation:&s2member_skip_confirmation=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-skip-confirmation-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_skip_confirmation:&s2member_skip_confirmation=%2]

   RewriteRule ^(.*)$ %{ENV:s2_blog}?s2member_file_download=%{ENV:s2member_file_download}%{ENV:s2member_file_stream}%{ENV:s2member_file_inline}%{ENV:s2member_file_storage}%{ENV:s2member_file_remote}%{ENV:s2member_file_ssl}%{ENV:s2member_file_download_key}%{ENV:s2member_skip_confirmation} [QSA,L]
</IfModule>

<IfModule !mod_rewrite.c>
   deny from all
</IfModule>

Statistics: Posted by Jason Caldwell — January 24th, 2012, 11:14 pm


]]>
2012-01-24T23:02:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61491#p61491 <![CDATA[Re: [RESOLVED] Download now works]]> Statistics: Posted by Judith — January 24th, 2012, 11:02 pm


]]>
2012-01-24T22:57:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61489#p61489 <![CDATA[Re: [RESOLVED] Download now works]]>
Interesting...Here's an odd thing: when I go to '/s2member-files/' I don't see an .htaccess file. Seems to me that could be the problem... :?

I can add an .htaccess file - can you provide the proper content?

In answer to your other questions, I'm running Apache 2.2.21 via Bluehost. I don't believe there are any specific compression routines. Let's try adding an .htaccess file first and see if that doesn't sort it?

Cheers,
-Erin

Statistics: Posted by esmale — January 24th, 2012, 10:57 pm


]]>
2012-01-24T22:43:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61488#p61488 <![CDATA[Re: [RESOLVED] Download now works]]>
Please add this to the top of your /.htaccess file.
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>

You will find further details on this GZIP fix here. See: viewtopic.php?f=4&t=16510&p=60958#p59497 Please write me back if this remains an issue.

Are you running Apache? Or another web server like Nginx or LiteSpeed?
Do you have any PHP-based output compression configured on your server or within PHP scripts?

Statistics: Posted by Jason Caldwell — January 24th, 2012, 10:43 pm


]]>
2012-01-24T22:33:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61487#p61487 <![CDATA[Re: [RESOLVED] Download now works]]>
I'm experiencing a problem similar to that reported by Judith. I have s2member 111220 and WordPress 3.3.1.

I have a CCAP protected file as follows: '/s2member-files/access-s2member-ccap-twp1001/<filename.zip>'

I've also set up conditionals via the [_s2If current_user_can(access_s2member_ccap_twp1001)] shortcode so that if the user has proper access, the page presents a download link (if not, the page presents a Buy Now PayPal button).

When the download link is clicked, the Confirm File Download box comes up (there are unlimited downloads). When I click 'OK' the browser status bar states "Waiting for <my host>...' but the box to Save or Open the file does not appear. If I click on the download link again, I get the same Confirm File Download box, but the number of downloads is incremented by 1 (so s2Member did count the download, even though the Save/Open dialogue never appeared).

I moved the file to the '/s2member-files/' directory to see if the problem was the CCAP. Unfortunately, I get the same behaviour. I verified that my Inline File Extensions does not include *.zip. I've also tried *pdf files with the same result.

I also tried moving the ZIP file to an unprotected directory, and it downloads fine. It appears that the issue is my s2member configuration, but after scouring the various options, I cannot find what's causing the problem.

Has anyone else experienced this? Any suggestions?

Cheers,
-Erin

UPDATE: added WP version number.

Statistics: Posted by esmale — January 24th, 2012, 10:33 pm


]]>
2012-01-24T21:09:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61482#p61482 <![CDATA[Re: [RESOLVED] Download now works]]> Hi Judith. Thanks for reporting this important issue.

These errors indicate to me that your installation of s2Member has become corrupted in some way. Or, that your upload of the /s2member/ directory did not finish, and that some files are missing. I'm not aware of any bugs like this in the current release of s2Member v111220.

What directory did you upload the /s2member/ folder to?
What version were you upgrading from please?

You should have this structure:
/wp-content/plugins/s2member/s2member.php
(along with several others files/directories of course)

Code:
[24-Jan-2012 03:05:26] PHP Fatal error: Call to undefined function ws_plugin__s2member_configure_options_and_their_defaults() in /home3/(taken out for protection)/public_html/wp-content/plugins/s2member/s2member.php on line 141

[24-Jan-2012 05:43:03] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home3/(taken out for protection)/public_html/wp-content/plugins/s2member/includes/funcs.inc.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in /home3/(taken out for protection)/public_html/wp-content/plugins/s2member/s2member.php on line 145
[24-Jan-2012 05:43:03] PHP Warning: include_once(/home3/(taken out for protection)/public_html/wp-content/plugins/s2member/includes/codes.inc.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /(taken out for protection)/wp-content/plugins/s2member/s2member.php on line 149
[24-Jan-2012 05:43:03] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home3/(taken out for protection)/public_html/wp-content/plugins/s2member/includes/codes.inc.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in /home3/(taken out for protection)/public_html/wp-content/plugins/s2member/s2member.php on line 149

Statistics: Posted by Jason Caldwell — January 24th, 2012, 9:09 pm


]]>
2012-01-24T20:53:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17001&p=61479#p61479 <![CDATA[Re: [RESOLVED] Download now works]]> Statistics: Posted by Judith — January 24th, 2012, 8:53 pm


]]>