Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-17T20:13:39-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14406 2011-08-17T20:13:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=32183#p32183 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Thanks for the follow-up.
mattkitchen wrote:
Thanks for the detailed reply Jason, why would this happen in IE though and not firefox. The way your making it sound is that the issue lies with the way the serve is handling things, which doesn't make sense why some browsers are fine and others aren't then... Or possibly the explanation is just way over my head.
Yea, the explanation for this gets really *geeky*, but basically it has to do with the way different browsers handle ( i.e. decipher ) mixed and/or confusing messages being sent by your server and/or the combination of your server and a PHP script. For instance, if your PHP installation is attempting to GZIP output with ob_gzhandler or another form of PHP-based output compression, instead of that having been configured within Apache, it may cause odd problems in IE ( or even in other versions of browsers you've not tested yet ). There are some additional technical details discussed here in regards to ob_gzhandler ( common with GoDaddy hosting ): http://php.net/manual/en/function.ob-gzhandler.php

I'd say the most common cause of a 0kb file that I've seen, has to do with output compression. A few hosting companies ( most notably GoDaddy, in some cases ), and even some WordPress plugins attempt to use things like ob_gzhandler, and doing that has all sorts of bad side effects. The best way to deal with output compression, is with Apache. See: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

For those who are tech savvy, you can try disabling all forms of PHP-based output compression, and use something like this inside your .htaccess file instead:
Code:
# COMPRESSION FOR SPEED
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/plain
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/rdf+xml application/rss+xml application/atom+xml image/svg+xml
AddOutputFilterByType DEFLATE font/truetype application/x-font-ttf font/opentype application/x-font-otf
</IfModule>

Statistics: Posted by Jason Caldwell — August 17th, 2011, 8:13 pm


]]>
2011-08-17T18:59:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=32167#p32167 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by mattkitchen — August 17th, 2011, 6:59 pm


]]>
2011-08-17T18:52:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=32166#p32166 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Thanks for the heads on this thread.
glbrent wrote:
I don't know about you, but I'm still a little annoyed at this problem!!!! I would like to get to the heart of it somehow. But I think this is so much more of a s2member programming/internet explorer permissions issue. It's a weird one for sure. But not surprising considering how Microsoft likes to do "their own thing".
s2Member's default method of file delivery uses an advanced routine that delivers the file in chunks ( i.e. Transfer-Encoding: chunked ). This method avoids most issues related to high memory consumption on large file downloads. Making it possible for large file downloads to succeed. If you are getting a 0kb file download, I suspect there is a conflict between your server configuration and the way s2Member delivers the download. This is a server-side issue, and can happen when/if your Apache configuration and/or PHP configuration is overriding the headers that s2Member sends; or conflicts with output compression, as described below.

There are three ways around this issue:
1. Store your protected files inside an Amazon S3 Bucket, and configure s2Member to use your Amazon S3 account. This is the recommended method, because protected files are then stored at Amazon S3 for better security, better download speeds, and greater compatibility for VERY large files and/or media content. So, if you CAN use Amazon S3, please do, as that will be better all the way around, particularly if you plan to deliver VERY large files ( i.e. 50MB +, anything over 1GB absolutely ).

Why does s2Member need Amazon S3 to deliver VERY large files?
Well, if you're on a dedicated server where your hosting company is NOT limiting your script timeout period, you may choose not to use Amazon S3, and that's fine in most cases. However, most hosting companies impose limits on the amount of time that a script can run on your server. Since s2Member is a PHP plugin for WordPress, both powered by PHP, both WordPress and s2Member are subjected to the limits set forth by your hosting company. If you attempt to deliver a VERY large file that might take the Customer more than 30-60 seconds to download, your Customer may have trouble receiving the file, because it's being delivered through a PHP script ( i.e. subjected to a script timeout limitation ). The solution in this case, is to configure s2Member to use your Amazon S3 Bucket instead. When s2Member is configured to work with Amazon S3, there are no script timeout limits imposed at all.



2. Or, keep the files on your server, and disable s2Member's chunked file delivery in cases where your server/hosting configuration is in conflict with s2Member. You can do this by creating this directory and file: /wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter
("ws_plugin__s2member_stream_file_downloads", "__return_false");
?>


3. Resolve the conflict with your server configuration. If you're on a dedicated server, this may not be difficult for you. However, if you're on shared hosting, you might want to consider options #1 or #2 above. Make sure your Apache configuration does not attempt to override PHP headers for Transfer-Encoding, and also be sure that your PHP installation does NOT use implicit flush, ob_gzhandler, or any type of PHP-based output compression. You can use output compression, but make sure you do that with Apache, and NOT with PHP, as that causes problems for file downloads. Sometimes the problem will become more apparent in a particular version of a browser which may not cope well in all scenarios.

Statistics: Posted by Jason Caldwell — August 17th, 2011, 6:52 pm


]]>
2011-08-14T01:03:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30732#p30732 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by glbrent — August 14th, 2011, 1:03 am


]]>
2011-08-13T23:05:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30729#p30729 <![CDATA[Re: Bad Downloads in Internet Explorer]]>
I guess that beats having to post they must download firefox to download any files on my site. These first two customers were nice enough cause I got back so quickly to them, but it would be a shame to lose customers over this.

I guess S3 it is unless someone else has some other ideas....

P.S. One other good thing did come of this. I read a lot more of random fine print and found the "&s2member_skip_confirmation" code which I didn't know existed. I've been annoyed by that dialogue box since all paid members get unlimited downloads and happy I can now get rid of it now.

Thanks again glbrent.

Statistics: Posted by mattkitchen — August 13th, 2011, 11:05 pm


]]>
2011-08-13T22:45:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30724#p30724 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by mattkitchen — August 13th, 2011, 10:45 pm


]]>
2011-08-13T20:21:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30703#p30703 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by glbrent — August 13th, 2011, 8:21 pm


]]>
2011-08-13T20:07:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30702#p30702 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by glbrent — August 13th, 2011, 8:07 pm


]]>
2011-08-13T19:53:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30701#p30701 <![CDATA[Re: Bad Downloads in Internet Explorer]]>
in response to 1. i disabled all plugins i could, and there was no help there.

in response to 3. I also tried to move the file and it downloaded and viewed fine. The file was still in the wordpress folder structure but outside of s2-member

in response to 4. there is no error when it downloads. it goes through the paces just fine and even shows it downloading. The download dialog box just says it is done at 0kb and then gives the open option which obviously produces nothing. But there is a 0kb file on the desktop and everything.

Statistics: Posted by mattkitchen — August 13th, 2011, 7:53 pm


]]>
2011-08-13T19:07:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30697#p30697 <![CDATA[Re: Bad Downloads in Internet Explorer]]>
S3 is an option, as I host a bunch of my videos that are progressively played back on my site there. I didn't know how secure it was compared to hosting them in the protected folder, as it is imperative to the business of the site that these PDFs are not easily downloadable.

Statistics: Posted by mattkitchen — August 13th, 2011, 7:07 pm


]]>
2011-08-13T18:44:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30696#p30696 <![CDATA[Re: Bad Downloads in Internet Explorer]]> 1.Look through your plugins and see if you could think of any way one of those plugins may be doing anything with logins or permissions. (I deleted every plugin that I wasn't using and tried disabling several that I thought might be causing the issue)
2. You could look at S3 from amazon for hosting the files. I thought about this but "I'm paying for storage and hosting, and SSL from bluehost.com why do I have to pay more for a stupid internet explorer download"
3. You may try is moving the files outside the s2member-protected folder. I don't know if that would work, but at least it would tell you if it's a problem inside s2member, right? My files are still inside the s2member-file folder.
4. what you are really having is a client side issue. So that's how I came up with the redirect issue discovery. I saw the "download box" right behind the error message box. And thought it's gotta be doing an extra step for protection or something.

Hope this help. I felt your pain! :ugeek:

Statistics: Posted by glbrent — August 13th, 2011, 6:44 pm


]]>
2011-08-13T07:39:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30669#p30669 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by mattkitchen — August 13th, 2011, 7:39 am


]]>
2011-08-12T21:53:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30645#p30645 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by Cristián Lávaque — August 12th, 2011, 9:53 pm


]]>
2011-08-12T16:17:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30615#p30615 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Hope it helps!
Gabriel

Statistics: Posted by glbrent — August 12th, 2011, 4:17 pm


]]>
2011-08-11T13:39:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30518#p30518 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by Cristián Lávaque — August 11th, 2011, 1:39 pm


]]>
2011-08-11T13:07:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30508#p30508 <![CDATA[Re: Bad Downloads in Internet Explorer]]> Statistics: Posted by mattkitchen — August 11th, 2011, 1:07 pm


]]>
2011-08-11T12:47:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30506#p30506 <![CDATA[Re: Bad Downloads in Internet Explorer]]>
Do they get any errors when they try to download?

Here're a couple of threads that may help with your problem. Let me know if they help:

viewtopic.php?f=4&t=799
viewtopic.php?f=4&t=6680

Statistics: Posted by Cristián Lávaque — August 11th, 2011, 12:47 pm


]]>
2011-08-10T21:22:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14406&p=30477#p30477 <![CDATA[Bad Downloads in Internet Explorer]]>
Anyone else come across this or have any idea? Apparently 25% of my potential customers are using IE8 according to my stats so I would rather not inconvenience them and put down a "You must be using Firefox, Chrome or Safari to download" warning if possible. But if that's the worst case scenario I will do it.

Any ideas? - they are much appreciated! Thanks for reading.

Statistics: Posted by mattkitchen — August 10th, 2011, 9:22 pm


]]>