Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-30T13:16:34-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1083 2010-10-30T13:16:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4435#p4435 <![CDATA[Re: Large file downloads / tiny URL issue?]]> Statistics: Posted by ryannagy — October 30th, 2010, 1:16 pm


]]>
2010-10-29T00:31:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4377#p4377 <![CDATA[Re: Large file downloads / tiny URL issue?]]> Statistics: Posted by Dr Dave — October 29th, 2010, 12:31 am


]]>
2010-10-28T11:47:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4362#p4362 <![CDATA[Re: Large file downloads / tiny URL issue?]]> Statistics: Posted by Harmonica Notes — October 28th, 2010, 11:47 am


]]>
2010-10-28T05:19:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4357#p4357 <![CDATA[Re: Large file downloads / tiny URL issue?]]> Investigation completed. Possible bug fix attached.

Use of PHP's fread() function has been updated to stream_get_contents() with a 2MB chunk size in order to satisfy the needs of site owners delivering VERY large files ( 500MB+ ) though simulated HTTP streams "inline". For instance, an MP4 video file into a FlowPlayer/JWPlayer or another Flash-based application.

In addition, s2Member is now capable of output buffering its chunked file delivery, making it possible for s2Member to deliver VERY large files through most shared hosting platforms without needing to upgrade to a private server.

Related article: ( via Dreamhost )
http://forum.dreamhosters.com/programmi ... d-fail.htm
^ s2Member's file delivery system is now capable of circumventing the limitation discussed here.

This update has not been rolled out officially yet. I'm attaching the latest development version for all to use, or you can also download it directly from our website:
http://www.primothemes.com/post/product ... th-paypal/

s2member.zipthis is s2Member v3.2.9 / build #33
( includes a possible fix for large file downloads )

If all goes well, the change will be released officially with s2Member v3.3.

Statistics: Posted by Jason Caldwell — October 28th, 2010, 5:19 am


]]>
2010-10-27T23:38:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4349#p4349 <![CDATA[Re: tiny URL single post/page problems.]]>
Harmonica Notes wrote:
Downloaded and installed the zip, file size of download went from 4k to zero.

Statistics: Posted by Jason Caldwell — October 27th, 2010, 11:38 pm


]]>
2010-10-27T23:18:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4347#p4347 <![CDATA[Re: tiny URL single post/page problems.]]> Statistics: Posted by Harmonica Notes — October 27th, 2010, 11:18 pm


]]>
2010-10-27T21:51:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4339#p4339 <![CDATA[Re: tiny URL single post/page problems.]]> Sorry for any confusion guys. This update has not been rolled out officially yet. I'm attaching the latest development version for all to use, or you can also download it directly from our website:
http://www.primothemes.com/post/product ... th-paypal/

s2member.zipthis is s2Member v3.2.9 / build 32
( includes a possible fix for large file downloads )

If all goes well, the change will be released officially with s2Member v3.3.

Scratch this.
Please use build #33 below until s2Member v3.3 is released.

Statistics: Posted by Jason Caldwell — October 27th, 2010, 9:51 pm


]]>
2010-10-27T21:46:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4338#p4338 <![CDATA[Re: tiny URL single post/page problems.]]>
thoughts?

Statistics: Posted by fitcajun — October 27th, 2010, 9:46 pm


]]>
2010-10-27T21:20:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4337#p4337 <![CDATA[Re: tiny URL single post/page problems.]]> Statistics: Posted by Harmonica Notes — October 27th, 2010, 9:20 pm


]]>
2010-10-27T21:06:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4336#p4336 <![CDATA[Re: tiny URL single post/page problems.]]>
turned off all my plugins except wp exec, akismet and s2member to test if there was a conflict and had the same problem.

Jason. I'm sending you a link to the location so you can check it out yourself.

Statistics: Posted by Harmonica Notes — October 27th, 2010, 9:06 pm


]]>
2010-10-27T20:39:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4335#p4335 <![CDATA[Re: tiny URL single post/page problems.]]>
Just sayin',
Dave

Statistics: Posted by Dr Dave — October 27th, 2010, 8:39 pm


]]>
2010-10-27T17:01:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4323#p4323 <![CDATA[Re: tiny URL single post/page problems.]]> Issue possibly resolved:

I believe we have this bug fixed. This odd behavior, when s2Member returns an invalid file size of just a few bytes on large files, was attributed to memory limitations of the readfile() function in PHP.

In the latest build of s2Member v3.2.9+, the issue has been corrected using feof() in chunks of 2048 bytes; so that very large files will no longer be an issue. You can download the latest development release here: http://www.primothemes.com/post/product ... th-paypal/

Thanks to everyone who reported this issue.
Please let us know if you continue to have trouble.

Statistics: Posted by Jason Caldwell — October 27th, 2010, 5:01 pm


]]>
2010-10-27T16:10:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4321#p4321 <![CDATA[Re: tiny URL single post/page problems.]]>
The tiny URL works just fine. The download key works fine. But my 32.8 mb PDF is downloading as a 241 kb file with no functionality. I used SmartFTP to upload the file to my S2member-files folder within the wp-content>plugins folder on my site. In my FTP viewer the file reads as the proper size. The file opens properly on my computer.

What should I do to fix this?

Statistics: Posted by fitcajun — October 27th, 2010, 4:10 pm


]]>
2010-10-27T03:19:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4282#p4282 <![CDATA[Re: tiny URL single post/page problems.]]>
Please use this private contact form:
http://www.s2member.com/contact/

If you can provide a Dashboard login and/or FTP access that would great too. Otherwise, I'll take what you can provide. I have a suspicion the issue is server dependent. So in order to correct this, I'll need FTP access to run some tests.

Statistics: Posted by Jason Caldwell — October 27th, 2010, 3:19 am


]]>
2010-10-27T02:29:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4277#p4277 <![CDATA[Re: tiny URL single post/page problems.]]> If you want, I can send you a link and the page code. You can have a look for yourself. feel free to learn some blues harmonica while you're at it.

Statistics: Posted by Harmonica Notes — October 27th, 2010, 2:29 am


]]>
2010-10-27T02:16:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4275#p4275 <![CDATA[Re: tiny URL single post/page problems.]]> In other words, where is the actual location of your /s2member-files/ directory on the server?

It should be inside:
/wp-content/plugins/s2member-files/
and /s2member-files/ should be a directory, NOT a Symlink ( aka: a Shortcut ).
http://en.wikipedia.org/wiki/Symbolic_link

Statistics: Posted by Jason Caldwell — October 27th, 2010, 2:16 am


]]>
2010-10-26T23:51:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4268#p4268 <![CDATA[Re: tiny URL single post/page problems.]]> 1. I have a zip file around 8 mb downloading and opening. This is with the s2member download key
2. I can DL the files if I take them out of security.
3. If I remove the download key and try to dl it as while logged in with my admin account, ithas the same problem
4. upped a zip of one of the videos, same problem.

could it be a file size issue?

I have turned off the wordpress code autocorrect stuff and disabled the visual editor.
I just watched the Rocky Horror episode of Glee and dug the Berry Bostwick/ Meatloaf walk on

Statistics: Posted by Harmonica Notes — October 26th, 2010, 11:51 pm


]]>
2010-10-26T22:36:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4264#p4264 <![CDATA[Re: tiny URL single post/page problems.]]>
(Beats having to spend the time uploading 250 mb for nothing, yes?

I'd be interested in the outcome of this question, because I think I ran across it somewhere in the past. (Maybe something will jog this "ancient" memory;-)

Statistics: Posted by Dr Dave — October 26th, 2010, 10:36 pm


]]>
2010-10-25T23:14:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4206#p4206 <![CDATA[Re: tiny URL single post/page problems.]]> Awesome. Glad to hear that.
Thanks for reporting back on this.

Hmmm.. 4k file size. You've got me on that one.
So the file is corrupted?

You might try to re-upload all of your files to the /s2member-files/ directory. Make sure you upload images, music, and other non-text files in BINARY transfer mode. Only text/code files should be uploaded in ASCII format.

Statistics: Posted by Jason Caldwell — October 25th, 2010, 11:14 pm


]]>
2010-10-25T23:00:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4204#p4204 <![CDATA[Re: tiny URL single post/page problems.]]>
I love the functionality of the plugin. I figured there would be some growing pains and my customer is cool and helpful (Yay!!) I will eventually be doing this on a larger scale and this is a trial run. I'm glad for the troubles and the help.

Any ideas on why the file size problem?

Statistics: Posted by Harmonica Notes — October 25th, 2010, 11:00 pm


]]>
2010-10-25T22:51:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4203#p4203 <![CDATA[Re: tiny URL single post/page problems.]]> Thanks for reporting your experience.

I use the customer service url generator and create a new link to the page. I then send it to my test computer and try it. I can get to the download page but when I try to download it redirects me to the membership page there is also this ...?s2member_level_req=0... in the url.

OK. So they're gaining access properly, but the download itself is failing.

It sounds to me like you're using s2Member's "Specific Post/Page Access" feature; which is NOT a part of s2Member's core functionality ( Membership management ). In other words, you've inadvertently mixed File Downloads ( a part of Membership Level Access ) with Specific Post/Page Access.

That being said, File Downloads CAN be made to work with Specific Post/Page Access.
- How to mix File Downloads with Specific Post/Page Access:

On the Post or Page that you're selling access to, whenever you create your download links, you will need to apply "Download Keys". You will find full instructions in your Dashboard, under:
s2Member -> Download Options -> Advanced Download Restrictions

---------------------------------------------------------------------------------------------------------

Advanced Download Restrictions ( optional, for greater flexibility )

By default, s2Member uses your Basic Download Restrictions, which work with Membership Level Access. However, you can force s2Member to allow file downloads, using an extra query string parameter ( s2member_file_download_key ). A file download `Key` is passed through this parameter, and it tells s2Member to allow the download of this particular file, regardless of Membership Level; and WITHOUT checking any Basic Restrictions, that you may, or may not, have configured.

Code:
http://www.example.com/?s2member_file_download=example-file.zip&s2member_file_download_key=<?php echo s2member_file_download_key("example-file.zip"); ?>

The function `s2member_file_download_key()`, is part of the s2Member API. It produces a time-sensitive File Download Key that is unique to each and every visitor. Each Key it produces ( at the time it is produced ), will be valid for the current day, and only for a specific IP address and User-Agent string; as detected by s2Member. This makes it possible for you to create links on your site, which provide access to protected file downloads; and without having to worry about one visitor sharing their link with another. So let's take a quick look at what s2member_file_download_key() actually produces.

s2member_file_download_key ("example-file.zip") = a site-specific hash of s2member_xencrypt(date("Y-m-d") . $_SERVER["REMOTE_ADDR"] . $_SERVER["HTTP_USER_AGENT"] . $file)

When s2member_file_download_key = a valid Key, it works independently from Member Level Access. That is, a visitor does NOT have to be logged in to receive access; they just need a valid Key. Using this advanced technique, you could extend s2Member's file protection routines, or even combine them with Specific Post/Page Access, and more. The possibilities are limitless really.

Statistics: Posted by Jason Caldwell — October 25th, 2010, 10:51 pm


]]>
2010-10-25T19:40:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4191#p4191 <![CDATA[Re: tiny URL single post/page problems.]]> The only user level access I have created was level 0 which I needed to create the the single page buy now button.
I'm certain this is a configuration error on my part. I just need to figure out what the problem is. I don't want to create a user site (yet) but I do want to sell e-products.

Any ideas would be appreciated including "moron, you need to look here..."

Statistics: Posted by Harmonica Notes — October 25th, 2010, 7:40 pm


]]>
2010-10-25T16:53:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1083&p=4184#p4184 <![CDATA[Large file downloads / tiny URL issue?]]>
He says the link is a tiny url instead of the download.

When I look at them it shows the link and I can download the files.

I have him on email right now and am trying to get him fixed since he just bought otherwise I would do a more thorough search of the forums.

Can anyone link me to a post in the forums with an answer or give me a quick answer to get him up and running?

Statistics: Posted by Harmonica Notes — October 25th, 2010, 4:53 pm


]]>