Page 1 of 1

Problem with pdf download

PostPosted: December 27th, 2011, 7:02 am
by dimitriosvasileiou
Hello everyone

I just started using s2 and after 2 failed attempts at other membership plugins, so far so good, s2 looks very promising.

However, we seem to have a problem with the pdf downloads and need your help. I believe we have done everything right by following the videos.

I am adding what my technical guy asked me to add as I am not too technical myself. Any questions, I will pass them on to my tech guy, thank you. The site is http://landscapephotographymagazine.com/

"Fresh install of S2Members framework. Custom theme.
S2Members folder exists, and has .htaccess rules.
Problem:
Files truncate/fail to download from website. File downloads 70kb and stops, or just stalls/fail to request anything depending on browser.
File types tested PDF and zip files.
Tested with barebones 2010 theme, problem still persists.
Site is multi-site configured but only used as a single site. Sub-site(s) are development platforms at present with no user access.
Suggestions on how to proceed with diagnostics and/tips how to resolve?"

Re: Problem with pdf download

PostPosted: December 27th, 2011, 8:56 am
by Eduan
Could you please try the hack that is suggested in this post:
viewtopic.php?p=46685#p46685

Please tell me how it goes.

Hope this helps. :)

Re: Problem with pdf download

PostPosted: December 27th, 2011, 10:26 am
by dimitriosvasileiou
Thank you for the prompt reply. My tech said that he had to go for this code (below) as this is the one that worked in the end. Perhaps because we are using w3total cache? Oh, and it only worked with zip files, it didn't recognise pdf for some reason.

<?php add_filter("ws_plugin__s2member_chunk_file_downloads", "__return_false"); ?>

For ZIP

Thank you very much, problem solved.

Re: Problem with pdf download

PostPosted: December 27th, 2011, 11:12 am
by Eduan
Could you try making a compatibility test?
Just disable each plugin one by one (without including s2Member) until the problem goes away.

Also could you please try changing the theme to the default one (TwentyEleven)?

Thanks.

Re: Problem with pdf download

PostPosted: December 28th, 2011, 5:50 am
by Cristián Lávaque
Glad you solved it, Dimitrios. :)

Re: Problem with pdf download

PostPosted: December 28th, 2011, 10:21 am
by dimitriosvasileiou
Eduan wrote:Could you please try the hack that is suggested in this post:
viewtopic.php?p=46685#p46685

Please tell me how it goes.

Hope this helps. :)


Oops, it seems that I have spoken too soon I'm afraid, problem is not solved at all.

Could you try making a compatibility test?
Just disable each plugin one by one (without including s2Member) until the problem goes away.
Also could you please try changing the theme to the default one (TwentyEleven)?

---
All plug-ins disabled bar S2Member - fault still persists.
Copied link to a none custom post type - fault still persists.

Tried both options on the link provided, second of the two code snippets 404s the link and the second enables the download but it's corrupted. Both removed results in 404s. Checked the .htaccess for any redirects for downloads (we used Download Manager for a while) but all entries have been removed. Temporarily renamed .htaccess and links fail as per above.

This is for signed in ringed subscribers and doesn't affect administrators which is what threw us off initially. Tried 5 browsers so not a browser issue (Firefox 3.6, 8, IE 8, Safari and Opera 11.6)

We need help I'm afraid.

Re: Problem with pdf download

PostPosted: December 28th, 2011, 11:40 am
by Eduan
Have you tried changing to the default theme?

If not, please do and tell me how it goes.

Thanks.

Re: Problem with pdf download

PostPosted: December 28th, 2011, 12:47 pm
by dimitriosvasileiou
Eduan wrote:Have you tried changing to the default theme?

If not, please do and tell me how it goes.

Thanks.

yes, didn't work.

Re: Problem with pdf download

PostPosted: December 28th, 2011, 10:23 pm
by Harty
Could the problem be connected with an incorrect folder permission issue?

Re: Problem with pdf download

PostPosted: December 29th, 2011, 5:28 am
by Cristián Lávaque

Re: Problem with pdf download

PostPosted: December 29th, 2011, 8:50 am
by dimitriosvasileiou
Harty wrote:Could the problem be connected with an incorrect folder permission issue?

Nope.

Re: Problem with pdf download

PostPosted: December 29th, 2011, 3:05 pm
by dimitriosvasileiou
Cristián Lávaque wrote:Could you try this? viewtopic.php?f=4&t=15731&view=unread#p50635

We tried this and only Safari, Chrome & Opera work but not Firefox and IE. :x

Re: Problem with pdf download

PostPosted: December 29th, 2011, 11:45 pm
by Cristián Lávaque
OK... Have you tried using Amazon S3 to serve the files? It's most probable you won't have this issue there.

Re: Problem with pdf download

PostPosted: December 30th, 2011, 11:10 am
by dimitriosvasileiou
Cristián Lávaque wrote:OK... Have you tried using Amazon S3 to serve the files? It's most probable you won't have this issue there.

Probably not but I would prefer to have the pdf files on my server.

Re: Problem with pdf download

PostPosted: December 30th, 2011, 2:13 pm
by Harty
Could it be an MU issue? Is it worth experimenting your theme etc on a single site install on your current server?