Page 1 of 1

Downloads not working

PostPosted: June 21st, 2010, 2:32 pm
by abelcreative
I've added my .zip file to the s2member-files folder, but my members are still getting this error when trying to download the link (which is crossed out):

503: Sorry, file downloads are not enabled yet. Please contact Support for assistance. If you are the site owner, please configure `s2Member -> Download Options`.

What in the world am I doing wrong?

Re: Downloads not working

PostPosted: June 22nd, 2010, 12:37 am
by Jason Caldwell
Hi there. Thanks for the great question.
It sounds like you've not configured the Download Restrictions yet.

Log into your WP Dashboard, and go to:
`s2Member -> Download Options -> Download Restrictions`

Configure the max downloads, and period ( in days ) for each Level you're using.
That will get rid of the 503 errors for you :-)

Re: Downloads not working

PostPosted: June 22nd, 2010, 10:42 am
by abelcreative
I'm sorry, I don't see any settings, attached is all I see there

Re: Downloads not working

PostPosted: June 22nd, 2010, 10:46 am
by Jason Caldwell
Here is the section you're looking for.
s2Member -> Download Options -> Protected File Downloads
protected-file-downloads.jpg

Re: Downloads not working

PostPosted: June 22nd, 2010, 10:47 am
by abelcreative
This is what I have set under "Protected File Download"

Re: Downloads not working

PostPosted: June 22nd, 2010, 11:00 am
by Jason Caldwell
Looks good. So no more 503 errors now, correct?
If you're still having problems, please let us know. ~Thanks.

Re: Downloads not working

PostPosted: June 22nd, 2010, 11:08 am
by abelcreative
no no, it's still not working

Re: Downloads not working

PostPosted: June 22nd, 2010, 11:09 am
by abelcreative
scratch that, it works, but the link still shows a strikethrough

Re: Downloads not working

PostPosted: June 22nd, 2010, 11:10 am
by abelcreative
I guess it's another plugin - I'm all good now, thanks for the help!!

Re: Downloads not working

PostPosted: June 22nd, 2010, 11:18 am
by Jason Caldwell
Great to hear that. ~Thanks for reporting back. Much appreciated.

Re: Downloads not working

PostPosted: October 14th, 2010, 4:27 pm
by tribsel
Hi! I have also a little problem with this.

I am trying to achieve this:
- protect a directory containing mp4 files (videos). I do not need and want to allow downloads, but users with apropriate rights (levels) need to be able to play them in flash player.

Is this possible?

I tried to set mp4 as inline file extension, but that does not work. Flowplayer (integrated using module and inserted into post) can not find that file..

Tribsel

Re: Downloads not working

PostPosted: October 27th, 2010, 1:34 am
by Jason Caldwell
Thanks for reporting this important issue.

While we are investigating this, would you please confirm the following details for me?

What is the file size of your MP4 file?
Who is your hosting provider?
What kind of server are you on?

Re: Downloads not working

PostPosted: October 27th, 2010, 5:03 pm
by Jason Caldwell
A related issue was just resolved, please see:
viewtopic.php?f=4&t=1083#p4323

Re: Downloads not working

PostPosted: October 27th, 2010, 5:26 pm
by tribsel
Hi Jason,

thanks, I just downloaded a new version and it really (almost) did it. File I was using for testing puroposes was large, over 800MB. with 3.2.9 installed, flowplayer finds it and plays.
Only glitch is, that video is not downloading/loading fast enough so you can not skip forward. It plays smoothly but does not preload.

Re: Downloads not working

PostPosted: October 27th, 2010, 6:05 pm
by Jason Caldwell
Thanks for reporting back on this topic. Glad to hear that.
tribsel wrote:Hi Jason,

thanks, I just downloaded a new version and it really (almost) did it. File I was using for testing puroposes was large, over 800MB. with 3.2.9 installed, flowplayer finds it and plays.
Only glitch is, that video is not downloading/loading fast enough so you can not skip forward. It plays smoothly but does not preload.

This latest change should have very little impact on the rate at which a file is downloaded. It only affects the way the file is read into memory during the server request. That being said, if you'd like to fiddle with the chunk size a bit to see if it helps, please feel free.

See: /s2member/includes/functions/file-download-access.inc.php at line #271
Code: Select all
echo fread ($handle, 2048); 
You could increase 2048 to 8192.

Re: Downloads not working

PostPosted: October 28th, 2010, 1:32 am
by tribsel
Hi Jason,

thanks very much for helping with this.
Modifying chunk size did not help. I think that the download speed is server related, it has probably nothing to do with s2member. I realised that I was testing this on other server before and now I am on different server, which is probably much less powerfull.

So thanks for helping us again.

Pavol

Re: Downloads not working

PostPosted: October 28th, 2010, 5:23 am
by Jason Caldwell
NEW ( please see this thread for details on additional bug fixes )
viewtopic.php?f=4&t=1083#p4357