Login Problem, wp-admin/admin-ajax.php returns 0

I was first having the issue 503: Service Temporarily Unavailable, Too many IPs which is discussed in this thread on the old forum . I changed the Unique IP Access Restrictions setting to unlimited, saved and cleared my server cache.

I still have the same symptom I had before - users cannot login and I just get a an endless spinner trying to log in. I was getting the 503 too many IPs in postman and changing that setting did change the wp response to be 200 but the response body is simply 0 (zero) and my users still cannot log in.

I’m using https throughout, and yes a subdomain but all consistently.

Are there more settings I need to check? Is there an Ajax logins bugger off setting? Any help is welcome, please!

Thanks!

Have you cleared your browser cache, or tried a different browser?

I did try different devices. The zero response kinda looks like the login isn’t being handled properly - perhaps not using the proper WP nonces and such?

Well, s2Member doesn’t actually handle logins. It just leaves that to WordPress itself so, if it really is a nonce issue, then there’s something fundamentally awry on your site.

I think it’s more likely that you have a plugin conflict, especially if you have a so-called security plugin. Alternatively, if something like Varnish is running at the server level, that will also cause problems.

Im not running a security plugin and my host is thinking its an s2 issue. Im running Gravity Forms with No-Conflict Mode on.

I was getting the famous 503 error for non-admins and as soon as I changed the mentioned Unique IP Access Restrictions from 5 to unlimited, this changed immediately to just returning 0 for admins and non-admins alike.

I have also tried
add_filter(‘ws_plugin__s2member_disable_all_ip_restrictions’, ‘__return_true’);

that I read about in the old forum to my functions but this made no effect.

Here is what postman says

One thing that comes up again and again in my researching this is the s2 login redirect. This could perhaps explain why the ajax login is not working properly. I see no way of turning off this s2 feature though I would think that there is a way. Can anyone help me with disabling the login redirection? Should I start a new thread with this title?
Thanks

Have you tried the solution at the bottom of this thread: https://github.com/websharks/s2member/issues/997?

Thanks for the tip. I uploaded that mu plugin to /wp-content/mu-plugins/s2-hacks.php but I do still get the 0 response.
I have also tried remove_action('init', 'c_ws_plugin__s2member_login_redirects_r::remove_login_redirect_filters', 11);

Is there anything I need to do for the mu other than upload it?

No, uploading it is all that’s required.

I think you need to try this on a clean installation and see if it works there.

Thank you Tim K, this helped.