PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

secure folder isn't secure and download link broken

s2Member Plugin. A Membership plugin for WordPress®.

secure folder isn't secure and download link broken

Postby ferry77 » January 31st, 2012, 3:30 am

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
Last edited by ferry77 on January 31st, 2012, 6:11 am, edited 1 time in total.
User avatar
ferry77
Registered User
Registered User
 
Posts: 5
Joined: January 31, 2012

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

Postby ferry77 » January 31st, 2012, 5:58 am

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!!
User avatar
ferry77
Registered User
Registered User
 
Posts: 5
Joined: January 31, 2012

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

Postby Raam Dev » January 31st, 2012, 6:04 pm

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).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

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

Postby ferry77 » January 31st, 2012, 8:09 pm

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)
Attachments
s2member-problem.jpg
problem occur after second download attempt
User avatar
ferry77
Registered User
Registered User
 
Posts: 5
Joined: January 31, 2012

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

Postby ferry77 » January 31st, 2012, 8:28 pm

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
Attachments
s2member-problem-2.jpg
User avatar
ferry77
Registered User
Registered User
 
Posts: 5
Joined: January 31, 2012

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

Postby ferry77 » February 1st, 2012, 1:30 am

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
User avatar
ferry77
Registered User
Registered User
 
Posts: 5
Joined: January 31, 2012

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

Postby Raam Dev » February 2nd, 2012, 1:59 pm

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.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests