latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

files in a protected page

Home Forums Community Forum files in a protected page

This topic contains 8 replies, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 11 months ago.

Topic Author Topic
Posted: Sunday Jan 13th, 2013 at 7:58 pm #37315

I’m sorry, I did search this, but the questions were all quite different.

I was under the impression that if you had documents (for example) that you wanted to protect within one of your membership pages, you put it into the domain.com/wp-content/plugins/s2member-files folder. But when I do that, I get a Error 500/internal server error.

is there something else I should be doing? Or am I putting them in the wrong place?
Thank you.

List Of Topic Replies

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Monday Jan 14th, 2013 at 7:58 am #37351
Staff Member

Thanks for reporting this important issue.

I get a Error 500/internal server error.

Can you please detail for me, what actions you took to produce this 500 server error? For example, did this occur when you attempted to access the file? If so, please paste the link or Shortcode you’ve integrated so we can understand this better.

There is something you can do to help us. Please unzip and upload this file to your server and open it in a browser. This is a server scanning tool that we use here at s2Member, that will help detect any issues that s2Member might be having in your environment. Please let us know if any issues are discovered by this tool. Download: http://www.s2member.com/r/server-check-tool/

Posted: Monday Jan 14th, 2013 at 10:54 am #37400

Hi Jason,

I put the s2Member-check-my-server.php in and I get passes in all the categories. It says it isn’t necessary, but I could raise my wordpress memory limit.

I uploaded a pdf file to the opt-assess.com/wp-content/plugins/s2member-files folder/ and I then create a link on a protected page as I normally would, and I get the 500 error. The file is pp.1_Welcome.pdf. And I get the Error 500/internal server error.

In fact, I get this on other sites I’ve tried it on as well.

Posted: Monday Jan 14th, 2013 at 11:05 am #37407
Staff Member

Thanks for the follow-up :-)

Gotchya. Memory is fine then, that is optional under most circumstances.
It wouldn’t hurt to increase it though. I’m sure you’ll take care of that.

May I also see the link you’ve created please?
Or did you use an s2Member shortcode to generate the link? I’d like to see it please.

Also, if you’d like us to have a look for you,
please submit a Dashboard login privately for me.

See: s2Member® » Private Contact Form

Posted: Monday Jan 14th, 2013 at 11:24 am #37416

I’m sending you a private contact form now.

The link for the page that has the attachment is: http://opt-assess.com/test-attachments/

The link I created is http://opt-assess.com/wp-content/plugins/s2member-files/pp.1_Welcome.pdf.

I hope that helps.

Posted: Monday Jan 14th, 2013 at 12:32 pm #37476
Staff Member

Details received. Thank you!

~ Investigating now.

Posted: Monday Jan 14th, 2013 at 1:02 pm #37482
Staff Member

Thanks for your patience.

I’ve just reviewed your installation.

This link is broken, as you said (500 server error).

However, if I access the file without using s2Member’s Mod Rewrite functionality, I can download the file here.
http://opt-assess.com/?s2member_file_download=pp.1_Welcome.pdf

I can also view the file inline, within my browser here:
http://opt-assess.com/?s2member_file_inline=yes&s2member_file_download=pp.1_Welcome.pdf

So the question is why is this link broken?

http://opt-assess.com/wp-content/plugins/s2member-files/pp.1_Welcome.pdf

If I remove this file: /wp-content/plugins/s2member-files/.htaccess, I can access the file publicly (NOT good). However, this proves a theory that I had. Your current version of Apache is lacking support for the Mod Rewrite rules that s2Member introduces in this .htaccess file. Meaning, s2Member’s Mod Rewrite functionality is not going to operate on your server, as-is. Please ask your hosting company to confirm for us, what version of Apache you are running. If you’re running anything less than Apache v2, I would ask them to upgrade you if at all possible. Please advise. Thanks!

Posted: Tuesday Jan 15th, 2013 at 3:23 pm #37630

Hi Jason,

Sorry for taking so long in getting back to you. I spoke to my hosting company and you are right, they were running version 1.3 (or similar). they are going to upgrade on Friday and hopefully all will be well.

Do you think that my using your s2member file area should work then? I’ll let you know how it goes.

Thanks for all your help.

Posted: Thursday Jan 17th, 2013 at 11:35 am #37887
Staff Member

Thanks for your reply :-)

Sorry for taking so long in getting back to you. I spoke to my hosting company and you are right, they were running version 1.3 (or similar). they are going to upgrade on Friday and hopefully all will be well.

Do you think that my using your s2member file area should work then? I’ll let you know how it goes.

Yes, I think that will fix you up nicely :-)

Please let us know if problems persist :-)

Viewing 8 replies - 1 through 8 (of 8 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.