Page 2 of 2

Re: 503: Service Temporarily Unavailable

PostPosted: March 15th, 2011, 2:20 am
by Jason Caldwell
Make sure you don't have any spaces or blank lines at the top or bottom of that file. White space ( i.e. blank lines ) inside a PHP file creates output, and that can cause the errors that you're seeing here.

Re: 503: Service Temporarily Unavailable

PostPosted: March 15th, 2011, 2:47 am
by rodrico101
Jason,

Boy...see what happens when you are half asleep!! Thanks I had few spaces at the top of the file. Can't believe I missed that. Good to go, works great!!

Rod

Re: 503: Service Temporarily Unavailable

PostPosted: March 15th, 2011, 2:53 am
by Jason Caldwell
Haha.. No problem. Glad I could help.

Re: 503: Service Temporarily Unavailable

PostPosted: October 13th, 2011, 11:59 am
by jeanmorency
I had to deal with this issue after setting up an account for demo purpose.

What best practice can you suggest to set up a demo account that will be shared with various prospects (thus multiple IPs) without compromising the restrictions rules set for all other users?

Thanks

Re: 503: Service Temporarily Unavailable

PostPosted: October 13th, 2011, 1:17 pm
by Jason Caldwell
jeanmorency wrote:I had to deal with this issue after setting up an account for demo purpose.

What best practice can you suggest to set up a demo account that will be shared with various prospects (thus multiple IPs) without compromising the restrictions rules set for all other users?

Thanks

If your demo account has the Username "demo", s2Member will bypass IP Restriction routines automatically. Otherwise, you could do something like this if you like.

Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code: Select all
<?php
add_filter 
("ws_plugin__s2member_disable_login_ip_restrictions", "my_s2_login_ip_restriction_handler");
function my_s2_login_ip_restriction_handler ($what_s2member_says = false, $vars = array ())
    {
        if (strtolower ($vars["username"]) === "mydemouser")
            return true; /* Disable for this Username. */
        /**/
        else /* Return what s2Member says ( i.e. false ). */
            return $what_s2member_says;
    }
?>

Re: 503: Service Temporarily Unavailable

PostPosted: October 13th, 2011, 1:35 pm
by jeanmorency
Wonderful!
Thank you!

Re: 503: Service Temporarily Unavailable

PostPosted: October 13th, 2011, 5:36 pm
by RachelC
Customers are getting this 503: Service temporarily Unavailable.
I have the restriction all the way up to 10 IP addresses.
Is this a problem again?
Had to refund subscriptions... help!

Re: 503: Service Temporarily Unavailable

PostPosted: October 13th, 2011, 8:26 pm
by Jason Caldwell
Thanks for reporting this important issue.

No, there are no known issues. If you'd like to create a test account for us, on your site, and send it here we'll take a look for you. Private contact form: http://www.s2member.com/contact/

Re: 503: Service Temporarily Unavailable

PostPosted: October 24th, 2011, 6:19 am
by Sparklesperson
I tried the hack - no difference. What's next?

Re: 503: Service Temporarily Unavailable

PostPosted: October 24th, 2011, 11:17 am
by Jason Caldwell
Thanks for your follow-up.
Sparklesperson wrote:I tried the hack - no difference. What's next?
Please elaborate just a bit further. You tried the hack above? For what reason exactly? and in what way did it not succeed for you? Also, please include the WordPress version number, and s2Member version that you're running with.

Re: 503: Service Temporarily Unavailable

PostPosted: October 31st, 2011, 11:54 am
by theinnerdancer1
I just sent in a private contact form. I'm running WP 3.2.1 and s2member v. 111029. I also reset the IP addresses and set the restriction to infinity for now. I'm awaiting the reply to the contact form but in the meantime, how can I know its been fixed without asking the subscriber to try again. I know she's already frustrated.

Re: 503: Service Temporarily Unavailable

PostPosted: October 31st, 2011, 12:33 pm
by Jason Caldwell
Thank you, your email was received.
I'll answer this here for the benefit of other readers.

Please log into your Dashboard, and go to: Users. Find this particular User and click the [Edit] link.
Scroll down to the bottom and find the section depicted in the attached screenshot below.

( click to enlarge )
SNAG-0091.png

Also, you may want to review your configuration of s2Member here:
s2Member -> Restriction Options -> Unique IP Access Restrictions

Re: 503: Service Temporarily Unavailable

PostPosted: October 31st, 2011, 3:07 pm
by theinnerdancer1
what if I have done all this and they still receive the message? What else could it be?

Re: 503: Service Temporarily Unavailable

PostPosted: October 31st, 2011, 6:30 pm
by Jason Caldwell
theinnerdancer1 wrote:what if I have done all this and they still receive the message? What else could it be?
If you've done all of this, and the problem persists, I would start looking at your caching plugins.
If you're running a caching plugin for WordPress, you might want to clear the cache, and check your cache configuration.

Re: 503: Service Temporarily Unavailable

PostPosted: November 12th, 2011, 10:40 pm
by scottmhorn
Is anyone having this problem anymore? I just started and have my first user and they are already hitting the error.

503: Service Temporarily Unavailable
Too many IP addresses accessing one secure area!
Please contact Support if you require assistance.

I am hosting with bluehost if that makes a difference.

Thanks!

Re: 503: Service Temporarily Unavailable

PostPosted: November 15th, 2011, 12:28 am
by Cristián Lávaque
Scott, have you tried raising the IP limit? WP Admin -> s2Member -> Restriction Options -> Unique IPs

Let me know if that helps.