[s2File /] and [s2Stream /] shortcodes not working

Hello.
I’ve installed your plugin recently and made some tests in it and in all of them the shortcodes [s2File /] and [s2Stream /] weren’t working. I’ve used the guide examples and the videos examples, but in all cases it simply didn’t show neither the videos neither the files. I’ve uploaded them into the directory “/s2members-files/”, as requested in the guide, but it simpley don’t work.

In the case of the files, some times return error 503, sometimes don’t show anything.

In the case of videos, it simply don’t show anything. Note that in this case, I’ve uploaded the jwplayer to my host and nothing happens.

Could you give me some tips of what should I do to solve this?

Thanks.

If you use the folder /s2members-files/ then it certainly won’t work because that’s not the right spelling!

You should have /s2member-files/

Just like the name of the plugin, it’s in the singular.

Hello Tim,
I wrote wrong, the folder is like you said is without the additional “s”, I mean, the folder is just “/s2member-files/” and simply don’t work.
If I put the shortcodes nothing happens, if I put (in the case of the files) the direct URI it returns “503 error”.
Any idea of what I may mistake here?
Thanks a lot.

A 503 error suggests an issue with your server. Who is your host, and how much memory have you set for WordPress?

The host I’m using in this website (defined by client) is “kinghost.com.br”, has 512Mb of RAM memory and 5Gb of space for ftp area dedicated to this site. They don’t want to use any service of Amazon S3 or Cloudfront.

Hmm, I wonder if they really have 512MB dedicated to WordPress. You should try the s2Member server scanner. See this: https://s2member.com/kb-article/server-scanner/

Hi Tim,
I did the scan, it returned that has less memory than client told me. I need to check with host if this is what is available or the total ram memory for the site. Besides of that it returned these two additional information:

  • [ERROR] PHP eval() Function - Missing PHP function.
  • [ERROR] Temporary Files Directory - Unable to find a readable/writable temporary files directory.

I didn’t understand much the orientations I found in the scan repport, but I’ll talk to host technical area to check what should I do to solve these problems.


Besides of that, I just would like to confirm if I’m inputing in the correct way the shortcodes to access files from local host (not Amazon S3/Cloud Front). I’ve input as this:

[s2Stream player=“jwplayer-v7.8.6-rtmp-only” player_path="/jwplayer-7.8.6/jwplayer.js" download=“VID-20160124-WA0000.mp4” /]


[s2File download="/s2member-files/Aventuras e Outros Atrativos - Petar Online.pdf" /]

=> In the case of the video simply don’t appear anything, but when I put as showed bellow it works perfectly fine, but I loose the protection feature.

[video width=“360” height=“360” mp4=“http://www.iwanttomoveabroad.com/wp-content/plugins/s2member-files/VID-20160124-WA0000.mp4”][/video]

=> In the case of the file, it shows an URI without any function (clickable), when I put as showed bellow, it returns the 403 error - Denied Access (not 503 - sorry the mistake).

<a href="http://www.iwanttomoveabroad.com/wp-content/plugins/s2member-files/“Aventuras-e-Outros-Atrativos-Petar-Online.pdf”>Aventuras e Outros Atrativos - Petar Online

Luis,

In the site’s wp-config.php file, you need to add these two lines:

define( 'WP_MEMORY_LIMIT' , '128M' );
define( 'WP_MAX_MEMORY_LIMIT' , '512M' );

For the PDF file, you must make sure that there are no spaces in the file name. Use dashes or underscores instead. The correct form, if using the shortcode, is this:

[s2File download="Petar_Online.pdf" /]

For the streaming file, I don’t think s2Member officially supports JW Player 7, only JW Player 6.

Hello Tim,

I’ll do all these changes and will search for the version 6 of JW player, and test it again.
Thanks a lot for your support and tips so far.

Merry Christmas to you and your family.

Merry Christmas, Luis!

That’s correct. As of s2Member v161129, only JW Player 6 is supported (you can download JW Player v6 here). We’re working to get JW Player 7 support added soon; see Issue #774.

Thanks a lot.
I was having some difficulties to find this version of JW Player. I’ll download it and test. Any further plroblems I’ll write again.
Thanks once again.