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.

Conflict:Registration is Disabled and Enabled

Home Forums Community Forum Conflict:Registration is Disabled and Enabled

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 2 months ago.

Topic Author Topic
Posted: Monday Oct 21st, 2013 at 1:46 pm #60499

Hello,

When some users visit our site they receive a message that registration is disabled.

I was able to reproduce this error in Firefox by typing in OurDomain.com and then hitting CTRL+ENTER.

This page loads:

http://www.OurDomain.com/wp-signup.php?new=OurDomain.com

…and if I just load:

http://www.OurDomain.com/wp-signup.php

I get the same message.

On the WordPress Network Settings page:

https://www.OurDomain.com/wp-admin/network/settings.php

…it indicates that Registration is disabled.

If I set it to “User accounts may be registered,” and save it, the page saves and Registration remains disabled.

https://www.OurDomain.com/wp-admin/network/settings.php?updated=true

On this page it says:

“If registration is disabled, please set NOBLOGREDIRECT in wp-config.php to a URL you will redirect visitors to if they visit a non-existent site.”

– – –

We use s2Member to manage user registrations and on the s2Member® Multisite (Configuration) page:

https://www.OurDomain.com/wp-admin/network/admin.php?page=ws-plugin–s2member-mms-ops

The setting:

“Your Main Site / Allow Open Registration? (via wp-login.php?action=register)”

…is set to “Yes (allow Open Registration; Free Subscribers at Level #0)”

So s2Member thinks open registration is allowed but WordPress Network Settings does not (and will not).

And:

https://www.OurDomain.com/wp-login.php?action=register

Is in fact a valid registration page (although in a horribly skinny login form width), and that:

http://www.OurDomain.com/wp-signup.php

…is not a valid registration page.

– – –

It seems that if I will follow the above instructions “…set NOBLOGREDIRECT in wp-config.php to a URL you will redirect visitors to…” such that anyone will be redirected to the home page automatically, or if I create a redirect rule in our (WP Engine web hosting provider) user settings for:

http://www.OurDomain.com/wp-signup.php

…so that it will redirect to either the home page then this will mask the issue.

But I don’t want to mask the issue I want to solve the apparent conflict where this page appears for any reason when open registration is enabled in s2Member but cannot be changed in WordPress Network Settings.

What do I do?

Thank you,

Chris

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Wednesday Oct 23rd, 2013 at 9:46 pm #60565

Hi Chris.

Could you submit the site’s info so I take a look at what you have? s2Member® » Private Contact Form

Thanks. :)

Posted: Thursday Oct 24th, 2013 at 10:36 am #60583

Hey Cristian,

It turns out that this means registration is disabled for sub sites.

But end users would never know that.

I went with something suggested by Jason.

I added a redirects.php file to the mu-plugins folder:

<?php
add_action('init', 'my_redirects');
function my_redirects()
{
if(strpos($_SERVER['REQUEST_URI'], '/wp-signup.php') !== FALSE)
wp_redirect('/index.php').exit();
}

So anytime anyone accidentally or otherwise gets to the wp-signup.php page they're sent to the site's home page.

Thank you for the help.

Chris

Posted: Thursday Oct 24th, 2013 at 1:57 pm #60589

That’s great. Thanks for the update! I’m glad you sorted it out. :)

Viewing 3 replies - 1 through 3 (of 3 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.