Multisite New Site malfunction

Hi Support Team,

I’m having a problem with the activation keys when creating a new site on my multisite install. Jack Kitterhingat on your Live Support team advised me to create a support ticket as this issue requires further investigation.

He said that activating a BuddyPress account with a site, it loops to a activation key page, inputting the activation key results in a error that the activation key is invalid.

Please note I’ve recently updated my htaccess information as per your Forum support rep : https://wpmudev.com/forums/topic/multisite-when-user-creates-new-site-page-wont-load?replies=3#post-493883. Updating the htaccess information helped solve the new site creation issue and now present links that both leads to the front page. One should direct the user to the Dashboard. I can access the dashboard through the tool board on top of the page but the Login link on the Congratulation screen should direct the user to the new dashboard.

I’m assuming the redirect issue is tied in to the activation glitch. Can someone please let me me these new site creation issues.

  • afrounited
    • Site Builder, Child of Zeus

    I read both post and since I’m a beginner user, I’m not sure how to solve my issue following the second link you provided: maikelcoke’s final direction.

    Quote ” It is a problem of lighttpd. This is not the first problem with lighttpd, so i will switch to apache2. I have a test installation of wordpress, apache2 and buddypress. And it WORKS!!

    I will switch my live environment soon. Thanks for this links!”

    My entire install is running of my hosting third party service. Is this something I should troubleshoot with my hosting provider or with the buddypress community support?

  • Vaughan
    • Ex Staff

    hiya

    i would ask your host if they are using lighttpd. i’m not sure buddypress.org has a solution.

    other than disabling user activation i don’t know, i can’t find a solution anywhere for this.

    you could try this in your theme functions.php

    // Change the text on the signup page
    add_filter( ‘bp_registration_needs_activation’, '__return_false' );

    function my_disable_activation( $user, $user_email, $key, $meta = ” ) {
    // Activate the user
    bp_core_activate_signup( $key );

    // Return false so no email sent
    return false;
    }
    add_filter( ‘wpmu_signup_user_notification’, ‘my_disable_activation’, 10, 4 );

    //Disable new blog notification email for multisite
    remove_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );
    add_filter( ‘wpmu_signup_blog_notification’, '__return_false' );

    // disable sending activation emails for multisite
    remove_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );
    add_filter( ‘wpmu_signup_user_notification’, '__return_false', 1, 4 );

    or try using 1 of our other plugins that has it’s own registration system such as pro-sites (if you’re using a multisite that is)

  • afrounited
    • Site Builder, Child of Zeus

    I put it under the “other wp stuff” section close to the bottom.

    The new site creation works but the Login link now redirects me to the blog page and not to the dashboard.

    How can I get to the file where I can edit the Login link on the Congratulation screen?

    Changing the redirect would help me solve my issues. On that screen I would also add additional links to direct the new user to more instructions.

  • afrounited
    • Site Builder, Child of Zeus

    Looks that those plugins are for site log on and logging off. I'm interested in the redirect from creating a new site while already being logged in.

    The current login link on the congratulation screen directs the user to the wrong URL.

    Is there any way to edit that link? I've attached a copy of the image showing off the screen I'm talking about. This is what appears after creating a new site. The links directs the user to wp-login.php and I want it to go to wp-admin.

    Is this a possible edit?

    [attachments are only viewable by logged-in members]

  • Vaughan
    • Ex Staff

    hiya

    i believe for this after searching through buddypress code.

    you need to edit /buddypress/bp-blogs/bp-blogs-template.php

    find the function (around line 757)

    function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '' ) {
    $protocol = is_ssl() ? 'https://' : 'http://';
    $blog_url = $protocol . $domain . $path; ?>

    <p><?php _e( 'Congratulations! You have successfully registered a new site.', 'buddypress' ) ?></p>
    <p>
    <?php printf(__( '<a href="%1$s">%2$s</a> is your new site. <a href="%3$s">Login</a> as "%4$s" using your existing password.', 'buddypress' ), $blog_url, $blog_url, $blog_url . "wp-login.php", $user_name ); ?>
    </p>

    <?php
    do_action('signup_finished');
    }

    then change wp-login.php to wp-admin

    hope this helps