Community Support Forums — WordPress® ( Users Helping Users ) — 2012-02-06T14:46:41-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16510 2012-02-06T14:46:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=62328#p62328 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Hi there. Thanks for the follow-up in this thread.
~ I received your email as well.

Please check your email for my reply.

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:46 pm


]]>
2012-01-31T10:24:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=62005#p62005 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
Jason Caldwell wrote:
Given the nature of my response in this case, please check your email for further details sent privately.

Jason, just purchased S2Member Pro with the hope that perhaps the Pro version will play the protected videos. But no luck so far!! :(

Do you think changing the video format will help?

Statistics: Posted by weseoin — January 31st, 2012, 10:24 am


]]>
2012-01-25T01:04:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61513#p61513 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>

Statistics: Posted by weseoin — January 25th, 2012, 1:04 am


]]>
2012-01-24T13:22:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61407#p61407 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Statistics: Posted by Jason Caldwell — January 24th, 2012, 1:22 pm


]]>
2012-01-24T13:07:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61402#p61402 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> ~ Thanks for your patience.

Statistics: Posted by Jason Caldwell — January 24th, 2012, 1:07 pm


]]>
2012-01-24T10:33:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61386#p61386 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Statistics: Posted by weseoin — January 24th, 2012, 10:33 am


]]>
2012-01-23T23:22:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61363#p61363 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Statistics: Posted by weseoin — January 23rd, 2012, 11:22 pm


]]>
2012-01-20T23:59:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61151#p61151 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
Jason Caldwell wrote:
Thank you so much for the reply. Let's take this to your installation and see if we can reproduce this issue please. If you can please submit a Dashboard login to us through this private contact form we'll run diagnostics for you and have this resolved. See: http://www.s2member.com/contact/

Thanks a lot, Jason. Sent info' as instructed. Hoping best..! :|

Statistics: Posted by weseoin — January 20th, 2012, 11:59 pm


]]>
2012-01-20T13:38:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61121#p61121 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> http://www.s2member.com/contact/

Statistics: Posted by Jason Caldwell — January 20th, 2012, 1:38 pm


]]>
2012-01-19T23:54:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61076#p61076 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
Jason Caldwell wrote:
If you need to protect "files", you'll need to upload them to the special /s2member-files/ directory that s2Member integrates with your installation. For further details on this, please check your Dashboard, under: s2Member -> Download Options.

That's right, Jason. I did that but got the "200, Stream not found, NetStream..." error.

I followed your instructions at viewtopic.php?f=4&t=16510#p59497 and I changed .htaccess file both at the root directory and 's2member-files' directory, but no success.

The video plays fine outside of 's2member-files' directory, but doesn't stream when inside. So, I thought let me try URI Level Access Restrictions, but this won't work as you pointed out.

At present, the membership pages are working fine including content dripping, but the mp4 videos and the pdf files on the restricted pages are unsecured. Anyone who takes the trial and finds the video url from the page source can continue watching the video even after the trial is over.

But for this small glitch, s2member is excellent...though I'm yet to implement the PayPal payment system.

Sorry for this long narration, but any help for securing the video files will be a great relief!! :!: :|

Statistics: Posted by weseoin — January 19th, 2012, 11:54 pm


]]>
2012-01-19T14:02:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=61000#p61000 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> /wp-content/uploads/ does NOT mean that it's served by WordPress. It was uploaded by WordPress, and stored inside a folder within your WordPress installation; but your web server does not use WordPress to serve those files. Thus, they do not pass through WordPress or s2Member.

If you need to protect "files", you'll need to upload them to the special /s2member-files/ directory that s2Member integrates with your installation. For further details on this, please check your Dashboard, under: s2Member -> Download Options.

Statistics: Posted by Jason Caldwell — January 19th, 2012, 2:02 pm


]]>
2012-01-19T13:58:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=60999#p60999 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
weseoin wrote:
I've used the URI Level Access Restrictions for the following video, but it isn't working. Any idea why?

/wp-content/uploads/video-lessons/my-video.mp4

s2Member® will only protect content that is served via WordPress. Static image files and other media are not protected by s2Member (nor should they be), because they do not pass through s2Member. In other words, these files are NOT served via WordPress, thus not served or protected by s2Member either.

*Note, it IS possible to protect static images, media or any other file types with s2Member's File Download Restrictions though. Please see: s2Member -> Download Options in your Dashboard please.

There is a distinction with s2Member between "content" and "files". What you're trying to protect is a file, it's not "content" within WordPress. So you'll need to use s2Member File Download Restrictions for this. URI Restrictions do not work with static files and media not served by WordPress.

Statistics: Posted by Jason Caldwell — January 19th, 2012, 1:58 pm


]]>
2012-01-19T13:56:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=60998#p60998 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Thanks for reporting this important issue.
Code:
<?php
$config = "{'clip':{'url':'http://example.com/?s2member_file_download=video.mp4&s2member_file_inline=yes','autoPlay':false,'scaling':'orig'}}";
?>
<embed src="flowplayer.swf" flashvars="config=<?php echo rawurlencode($config); ?>" width="100%" height="400" allowfullscreen="true" type="application/x-shockwave-flash" />
I suspect that it's because of the query string on the clip URL. More recent versions of s2Member have now made it possible to link directly to protected files via s2Member's Mod-Rewrite Linkage, avoiding the use of a query string for media playback devices that have trouble with them. So here is an updated code sample that takes full advantage of this.
Code:
<?php
$config 
= "{'clip':{'url':'http://example.com/wp-content/plugins/s2member-files/s2member-file-inline/video.mp4','autoPlay':false,'scaling':'orig'}}";
?>
<embed src="flowplayer.swf" flashvars="config=<?php echo rawurlencode($config); ?>" width="100%" height="400" allowfullscreen="true" type="application/x-shockwave-flash" />
You will find further details on this in your Dashboard, under: s2Member -> Download Options -> Advanced Mod-Rewrite Linkage (recommended for media playback devices).

Statistics: Posted by Jason Caldwell — January 19th, 2012, 1:56 pm


]]>
2012-01-19T05:49:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=60960#p60960 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
/wp-content/uploads/video-lessons/my-video.mp4

Statistics: Posted by weseoin — January 19th, 2012, 5:49 am


]]>
2012-01-19T03:31:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=60958#p60958 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
I use the following code you gave in this thread (viewtopic.php?f=4&t=2937#p16398) to display my *restricted* videos:

Code:
<?php
$config = "{'clip':{'url':'http://example.com/?s2member_file_download=video.mp4&s2member_file_inline=yes','autoPlay':false,'scaling':'orig'}}";
?>
<embed src="flowplayer.swf" flashvars="config=<?php echo rawurlencode($config); ?>" width="100%" height="400" allowfullscreen="true" type="application/x-shockwave-flash" />


I added the 'No-GZIP' code as under in the blog's .htaccess file, but the problem '200 Stream not found, NetStream...' persisted.

I then added the 'No-GZIP' code in the .htacess file in the 's2member-files' directory. Still the problem remains!!

Jason Caldwell wrote:
Investigation completed.

GZIP compression MUST be disabled during s2Member's attempt to deliver a file via PHP. This is because files that s2Member delivers via PHP, are already compressed. Thus, re-compressing files delivered by a script will corrupt them in your browser. Some media playback devices will choke on this as well.
..
..
..
..
Long story shorter here...
If you're running s2Member with mod_deflate for Apache (common on many hosts), including BlueHost... you'll want to add this section to the top of your WordPress .htaccess file, so that your installation of Apache will know when it should NOT use GZIP compression.

This has been added to your site. Please let us know if you have any further trouble.
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>

Statistics: Posted by weseoin — January 19th, 2012, 3:31 am


]]>
2012-01-08T09:03:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59989#p59989 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>

Statistics: Posted by ollywedgwood — January 8th, 2012, 9:03 am


]]>
2012-01-03T06:52:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59518#p59518 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
And my site looks nice now without any problem!

Statistics: Posted by xigaogen — January 3rd, 2012, 6:52 am


]]>
2012-01-03T03:44:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59497#p59497 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Investigation completed.

GZIP compression MUST be disabled during s2Member's attempt to deliver a file via PHP. This is because files that s2Member delivers via PHP, are already compressed. Thus, re-compressing files delivered by a script will corrupt them in your browser. Some media playback devices will choke on this as well.

s2Member makes every attempt to programmatically disable GZIP during it's delivery of a file. However, I've just identified a case on your server where s2Member was failing to do so. Thus, you are having an issue with media playback of protected files.

This issue, as it existed on your server, was related to your use of mod_deflate to facilitate GZIP compression for files served from your site. Unfortunately, when s2Member is running on a CGI-based installation of PHP, it has only one ability to disable GZIP compression dynamically, at the Apache level. The only way for s2Member to accomplish this, is to send this header... Content-Encoding: none. However, this header goes against standards, and was thus removed in more recent versions of s2Member. It's just not a good idea to send an invalid header, it's better to solve the underlying issue.

For instance, this invalid header... Content-Encoding: none, was recently discovered to cause an issue with the WP_Http class. s2Member now empties this header, instead of setting it to (none), which is the correct standards-compliant method of saying "no GZIP here".

However, CGI-based installations of PHP do not follow this rule so well. When mod_deflate is being used in your server configuration (which is a good idea, nothing wrong with this), it will attempt to GZIP all PHP script output, regardless of content-type in many cases. This is a limitation on CGI-based installations. On installations of PHP running as an Apache module, s2Member has no trouble, because it can call upon apache_setenv("no-gzip"). It's more difficult on a CGI or FastCGI extension though.

Long story shorter here...
If you're running s2Member with mod_deflate for Apache (common on many hosts), including BlueHost... you'll want to add this section to the top of your WordPress .htaccess file, so that your installation of Apache will know when it should NOT use GZIP compression.

This has been added to your site. Please let us know if you have any further trouble.
Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{THE_REQUEST} (?:(?:^|\?|&)s2member_file_download\=.+|(?:^|/)s2member-files/.+)
   RewriteRule ^(.*)$ - [E=no-gzip]
</IfModule>
* A future version of s2Member will make this recommendation during your configuration of File Downloads for s2Member. It's never a bad idea to place this in your .htaccess file, regardless of server configuration. It never hurts. We'll probably configure s2Member's UI panel with a button that will pop this in for you automatically, just to keep things simpler.

Statistics: Posted by Jason Caldwell — January 3rd, 2012, 3:44 am


]]>
2012-01-02T22:58:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59492#p59492 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Thanks for the follow-up.
I'm taking another look at this right now.

Statistics: Posted by Jason Caldwell — January 2nd, 2012, 10:58 pm


]]>
2011-12-31T11:34:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59348#p59348 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> All files really can be downloaded from the protect directory now, But the video still can not be played normally with Flowplayer! If you downgrade to 111206 it's still can be played normally.
Does it is about incompatibility issue with BlueHost? I need to wait to next official release of s2member? Do I understand what you said above rightly?
Or there were also some problems with Flowplayer and/or JW player? You can log in my site and try to playing a video.

Statistics: Posted by xigaogen — December 31st, 2011, 11:34 am


]]>
2011-12-31T08:23:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59338#p59338 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Investigation completed.

This was related to a server-specific issue with chunked file delivery.
s2Member supports Filters for some of its more advanced options, so that it can workaround different server configurations that may conflict with chunked file delivery. I updated your installation to the latest release, and I created this hack file for you.

/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter
("ws_plugin__s2member_chunk_file_downloads", "__return_false");
?>
Looking good now.

* Note. I also identified a compatibility issue with BlueHost, and we'll update s2Member in this regard, for the next official release. You can leave the s2-hacks.php file where it is, it will survive future upgrades of s2Member. That being said, you won't need that file after the next release. Again, it won't hurt to leave it where it is, but it won't be needed after the next official release.

Statistics: Posted by Jason Caldwell — December 31st, 2011, 8:23 am


]]>
2011-12-31T06:41:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59329#p59329 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Statistics: Posted by Jason Caldwell — December 31st, 2011, 6:41 am


]]>
2011-12-31T05:05:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59321#p59321 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]>
The problem is that I am already running on a Linux server from July of 2011. And all protected files are already inside directory: /plugins/s2member-files/ for a long time. There no sub-directory /app_data/ anymore on the server.

In the mail that I send to you included the password of my site and so you can take a look in my Dashboard at s2Member -> Download Options -> Basic Download Restrictions.

I feel that this is a serious problem, mybe you need to look into this problem deeply with log in my site. You can simply log in to my site and update the s2member from 111206 to 111220 and you will find the problem.

Thanks again, Jason.

Statistics: Posted by xigaogen — December 31st, 2011, 5:05 am


]]>
2011-12-30T15:28:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=59246#p59246 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Thanks for the heads up on this thread.

@xigaogen. Are you running on a Windows server with Apache?
In previous versions of s2Member, if you were running on a Windows server, your s2Member-protected files would go inside /plugins/s2member-files/app_data/ on a Windows machine, regardless of which web server you were running (i.e. Apache or IIS).

However, in the latest versions of s2Member, we can detect Apache on a Windows server. If you run a Windows server, but with Apache (or an Apache-compatible) web server that supports .htaccess files; s2Member will use it's default location for protected files: /plugins/s2member-files/, and the /app_data sub-directory is not needed in this case.

Possible solution:
Move your protected files from /plugins/s2member-files/app_data/
to just /plugins/s2member-files/. I would also take a look in your Dashboard at s2Member -> Download Options -> Basic Download Restrictions. Where does s2Member say files should be?

Statistics: Posted by Jason Caldwell — December 30th, 2011, 3:28 pm


]]>
2011-12-28T01:25:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=58994#p58994 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Statistics: Posted by xigaogen — December 28th, 2011, 1:25 am


]]>