Page 1 of 1

secure folder isn't secure and download link broken

PostPosted: January 31st, 2012, 3:30 am
by ferry77
Hi,
I am newbie on this plugin and try to install a new fresh wp site.
I have 2 questions please:

1.
My download link works but when I click it again the page return strange html code.
I put this on my post content
Code: Select all
<a href="[s2File download="image3.jpg" download_key="true" /]">download</a>


you can try it here http://wordpress.digitalmate.com.au/ , the first attempt success but if you click the "download" link again, it shows up broken html code.

2.
I put a file in /wp-content/plugins/s2member-file/image3.jpg
but I can access it using http://wordpress.digitalmate.com.au/wp- ... image3.jpg
? shouldn't this folder secured?

Thank you for your advise

Regards,
Ferry

Re: secure folder isn't secure and download link broken

PostPosted: January 31st, 2012, 5:58 am
by ferry77
Btw I read this thread
http://www.primothemes.com/forums/viewtopic.php?f=4&t=15665
But I can't see the solution.. I am sure I didn't login when I try to download it using normal path
http://wordpress.digitalmate.com.au/wp-content/plugins/s2member-files/image3.jpg

This is the .htaccess , I guess it doesn't work some how?

Code: Select all
Options +FollowSymLinks -MultiViews -Indexes

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /

   RewriteCond %{ENV:s2member_file_ms_scan} !^complete$
   RewriteCond %{THE_REQUEST} ^(?:GET|HEAD)(?:[\ ]+)(?:/)([_0-9a-zA-Z\-]+/)(?:wp-content/)
   RewriteRule ^(.*)$ - [E=s2member_file_ms_scan:complete,E=s2_blog:%1]

   RewriteCond %{ENV:s2member_file_download_scan} !^complete$
   RewriteRule ^(.*)$ - [E=s2member_file_download_scan:complete,E=s2member_file_download:$1]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-stream/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_stream:&s2member_file_stream=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-stream-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_stream:&s2member_file_stream=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-inline/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_inline:&s2member_file_inline=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-inline-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_inline:&s2member_file_inline=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-storage-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_storage:&s2member_file_storage=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-remote/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_remote:&s2member_file_remote=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-remote-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_remote:&s2member_file_remote=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-ssl/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_file_ssl:&s2member_file_ssl=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-ssl-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_ssl:&s2member_file_ssl=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-file-download-key-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_file_download_key:&s2member_file_download_key=%2]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-skip-confirmation/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%2,E=s2member_skip_confirmation:&s2member_skip_confirmation=yes]

   RewriteCond %{ENV:s2member_file_download} ^(.*?)(?:s2member-skip-confirmation-(.+?)/)(.+)$
   RewriteRule ^(.*)$ - [N,E=s2member_file_download:%1%3,E=s2member_skip_confirmation:&s2member_skip_confirmation=%2]

   RewriteRule ^(.*)$ %{ENV:s2_blog}?s2member_file_download=%{ENV:s2member_file_download}%{ENV:s2member_file_stream}%{ENV:s2member_file_inline}%{ENV:s2member_file_storage}%{ENV:s2member_file_remote}%{ENV:s2member_file_ssl}%{ENV:s2member_file_download_key}%{ENV:s2member_skip_confirmation} [QSA,L]
</IfModule>

<IfModule !mod_rewrite.c>
   deny from all
</IfModule>


=============================
Anyone can help please? Thank you!!

Re: secure folder isn't secure and download link broken

PostPosted: January 31st, 2012, 6:04 pm
by Raam Dev
ferry77 wrote:]
1.
My download link works but when I click it again the page return strange html code.
I put this on my post content
Code: Select all
<a href="[s2File download="image3.jpg" download_key="true" /]">download</a>


you can try it here http://wordpress.digitalmate.com.au/ , the first attempt success but if you click the "download" link again, it shows up broken html code.


I tested this and had no problem downloading multiple times. I did not receive the error you described.

ferry77 wrote:]2.
I put a file in /wp-content/plugins/s2member-file/image3.jpg
but I can access it using http://wordpress.digitalmate.com.au/wp- ... image3.jpg
? shouldn't this folder secured?


The directory should be s2member-files not s2member-file (notice the extra s).

Re: secure folder isn't secure and download link broken

PostPosted: January 31st, 2012, 8:09 pm
by ferry77
Hi,
Thank you for your reply.. :)

Sorry I was missing typing the 's' but if you please check the link, it's correct using 's'
http://wordpress.digitalmate.com.au/wp- ... image3.jpg

With the download problem this is the steps (I using FF 9.0.1, it's seems OK with IE9):
1. I open wordpress.digitalmate.com.au
2. it redirect me to http://wordpress.digitalmate.com.au/abo ... er_seeking[type]=page&_s2member_seeking[page]=2&_s2member_seeking[_uri]=Lw%3D%3D&_s2member_req[type]=sp&_s2member_req[sp]=2&_s2member_res[type]=sp&s2member_seeking=page-2&s2member_sp_req=2
3. I click "download" link (below the 2 paypal buttons)
4. after the download is done, I click the "download" link again
5. the page suddenly showing html code (I attached screen capture)

Re: secure folder isn't secure and download link broken

PostPosted: January 31st, 2012, 8:28 pm
by ferry77
Hi,
If I scroll down from that broken HTML code, I find the download content of image3.jpg
Please have a look attached, my WP install only have S2member and WP show IDs plugin active.

Thank you,
Ferry

Re: secure folder isn't secure and download link broken

PostPosted: February 1st, 2012, 1:30 am
by ferry77
I got answer for the secured folder.. I contact the hosting company and they have some kind of caching system that allow direct access to certain files.. after they turn it off, the folder is secure now..

HOWEVER, I still have problem with second attempt on Download produce broken HTML content like above, is anyone has similar experience?

THanks in advance for all

Regards,
Ferry

Re: secure folder isn't secure and download link broken

PostPosted: February 2nd, 2012, 1:59 pm
by Raam Dev
Could you try using a different web browser? Perhaps Firefox or Google Chrome? I just tested the download link again (I use Google Chrome) and it works fine no matter how many times I download it.