Multisite + BuddyPress + Membership Pro 2

Hello,

I'm trying to set up a multisite install with multiple user roles / different memberships. When Membership 2 is deactivated a newly registered user can set up a new site. When I activate Membership 2 a newly registered user is told it will have a new site set up, but nothing happens on the back-end / admin side, nor the new site will be set up.

What I might doing wrong here?

Thanks,
Csongor

  • Rupok

    Hi Csongor,

    When I activate Membership 2 a newly registered user is told it will have a new site set up, but nothing happens on the back-end / admin side, nor the new site will be set up

    Can you please confirm if your users register their sites through "http://yoursite.com/wp-signup.php" page? I mean, is your site creation process handled by WordPress natively? If yes, then can you please confirm your subsites are not being created even when the email activation link is clicked by your users? My colleague Predrag just confirmed that sites are created successfully when the activation link is clicked even though Membership 2 Pro is network activated. So I believe, this is your site specific issue.

    I can see that you are testing in localhost. Is it possible for you to set up a live site where we can see the issue live and make some tests? Please confirm.

    I'm looking forward to hearing from you and resolve this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Csongor

    Can you please confirm if your users register their sites through "http://yoursite.com/wp-signup.php" page?

    No in all cases they register via http://localhost/ws/register/

    If yes, then can you please confirm your subsites are not being created even when the email activation link is clicked by your users?

    When the Membership Pro is activated no email activation link is sent. When is deactivated the email link is sent and the new site is created.

  • Ash

    Hello Csongor

    Membership registration doesn't create subsite but the user only. If you want to create subsite in user registration then you have to use wp-signup.php page as registration page.

    Membership by default register link to M2 register page. To set it back to default, please try the following code:

    add_filter( 'register', function() {
            return '<a href="http://domain.com/wp-signup.php">Register</a>';
    }, 99 );

    You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name 'mu-plugins'. If there is no folder in that name, then create a folder, name it 'mu-plugins', create a file inside that, give any name you like and paste the code in there. You don't need to activate that plugin. Mu-plugins means must use plugins, so it will be activated automatically always. If you use mu-plugins then add a php start tag at the beginning of the code.

    Hope it helps :slight_smile: Please feel free to ask more question if you have any.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.