Community Support Forums — WordPress® ( Users Helping Users ) — 2012-02-03T12:33:16-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=17112 2012-02-03T12:33:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17112&p=62279#p62279 <![CDATA[Re: Download Protected File Duplicate headers]]>
Could you please try the suggestions here: viewtopic.php?f=4&t=17001&p=61498#p61498

Statistics: Posted by Raam Dev — February 3rd, 2012, 12:33 pm


]]>
2012-02-02T16:47:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17112&p=62172#p62172 <![CDATA[Re: Download Protected File Duplicate headers]]>
I haven't seen this issue before but I'm going to check with another support rep. Thank you for your patience.

Statistics: Posted by Raam Dev — February 2nd, 2012, 4:47 pm


]]>
2012-01-31T22:12:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17112&p=62069#p62069 <![CDATA[Download Protected File Duplicate headers]]>
WordPress ver 3.3.1
s2Member Pro ver 111220
Server Type: Debian
MySQL ver 5.0.45
PHP ver 5.2.17
and using Powweb Hosting (powweb.com)

I can successfully download protected files from the /s2member-files/ root directory and it's sub files from sub folders etc. Using the latest Safari (on Mac OS X) and the latest IE (on Windows). However can't download these protected files using the latest FireFox and Chrome on Mac OS X (or FireFox running on Windows).

This is what I'm getting for an error response in Chrome (mac os x):
Code:
Duplicate headers received from server
The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.
Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): Multiple distinct Content-Length headers received. This is disallowed to protect against HTTP response splitting attacks.


and this is the response in FireFox (mac os x):
Code:
Corrupted Content Error
The page you are trying to view cannot be shown because an error in the data transmission was detected.


I've been trying a bunch of suggestions from this post: http://www.primothemes.com/forums/viewtopic.php?f=4&t=2690&p=7858&hilit=download+duplicate#p7858 but no luck. Interestingly, my .htaccess file in the main wordpress directory is:
main wordpress directory
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

However, when changing it to the .htaccess for the main wp directory Jason had given, it sort of killed my site making it unable to visit other pages besides the front/ index page. So I switched it back to what's shown above. The .htaccess file contents of the /s2member-files/ folder was the same as the .htaccess Jason had provided in that above post.

I also tried the creating the s2-hacks.php file in wp-content/mu-plugins/s2-hacks.php but it gives me back this craziness spit out in all my browsers on mac os x:
Code:
Warning: Cannot modify header information - headers already sent by (output started at /hermes/web08/b1670/pow.zensai/htdocs/nsb/wp-content/mu-plugins/s2-hacks.php:1) in /hermes/web08/b1670/pow.zensai/htdocs/nsb/wp-content/plugins/s2member/includes/classes/files-in.inc.php on line 336

and that's for that php file lines 336 - 345 and 378 it says it.

Any suggestions? I'm kind of a novice at this but I've been hacking this kind of stuff together before with php code tweaks. There seems to be something up with the size of the file and perhaps timing out? Is that what the duplicate headers meaning is? Oh, these are .mp3 files I'm trying to download. Any help?

Brian

Statistics: Posted by zensai — January 31st, 2012, 10:12 pm


]]>