Click to Member Profile Refreshes Screen.

New BP install on multisite. Click to Member Profile has net impact of refreshing screen.

How you can see my issue:
-Go to http://counselinginternships.com and click on the profile of "RyanThomasNeace" under "Our Members" at the bottom. When you'll do, you can see that it is routing to "http://changeincorporated.org/counselinginternshipscom/community/members/ryanneace/", and when clicked, simply redirects to the main site "http://changeincorporated.org/counselinternshipscom", which then redirects (correctly, I believe) to "counselinginternships.com". Again - net impact is a screen refresh instead of going to the member profile.

I'm assuming this is is because BP is installed on my main site (changeincorporated.org), but that doesn't make this any less of a problem.

Fix?

Thanks!!!!

  • Mason
    • DEV MAN’s Sidekick

    Hiya Ryan,

    In order to run BuddyPress on a multisite but you'll need to add
    define( ‘BP_ROOT_BLOG’, 3 );
    into your wp-config.php where 3 is the ID of the sub-site you install BP onto. Have you done this step? That would be my first guess.

    Let us know. Thanks!

  • Ryan Neace
    • Site Builder, Child of Zeus

    Masonjames - Thanks! Sorry - I should've said in that in the first blog. I do have the wp-config.php appropriately coded with
    define( ‘BP_ROOT_BLOG’, 7 );

    Been that way since the beginning, but it continues to do this screwy thing. Thanks for any light you can shed!

    Ryan

  • Mason
    • DEV MAN’s Sidekick

    Hiya Ryan,

    Ok, this is definitely a weird one. So, could we try turning off the domain mapping for that sub-site and seeing if things work?

    What plugin are you using for domain mapping?

    A domain-mapped sub-site running buddypress is something I haven't tested myself.

  • Mason
    • DEV MAN’s Sidekick

    bah. That means it's not domain mapping.

    There's gotta be something messing with the dynamic url creation.

    Are you having any other issues with links? Try re-saving your permalinks (Settings>Permalinks) and turn off any caching.

    From there we may have to look at server settings. I assume WordPress Multisite is installed in the root directory?

    Normally, having mod_rewrite disabled in apache would do this, but we'd see other signs of this like having image display issues. You may want to contact your hosting provider to troubleshoot that further.

  • Ryan Neace
    • Site Builder, Child of Zeus

    masonjames - i have re-saved permalinks and no change there. How do I turn off caching? Multisite is installed in the root directory.

    No other issues with links that I can see at all, which is super odd.
    Speaking of hosting (oops), I did start talking to Joe about this a while back and should have started off there (really sorry). Throughout the course of that fix, I ended up switching hosts (to Joe's service) and now have a dedicated IP and so forth as he suggested, but the original problem persists.

    Here was that thread: https://premium.wpmudev.org/forums/topic/click-on-member-profile-navs-away-from-multisite-mapped-url-to-subdomain#post-231973

  • aecnu
    • WP Unicorn

    Greetings Ryan and Mason,

    Though I want to do whatever I can to help I can assure you that mod_rewrite is installed and indeed enabled (Screen shot 1 below installed, screen shot 2 below)

    Also I want to go a little further for our members to show an easy way to find out if mod_rewrite is indeed on and functioning.

    ************************************************
    Here is a way to check if mod_rewrite is enabled on your server...

    Create a file called .htaccess (note there is nothing before the file extension).
    Put only these two lines in your .htaccess file.

    Options +FollowSymLinks
    Redirect /google.html http://www.google.com

    Upload this file to your site root on your server.
    Now point your browser to: http://www.example.com/google.html (replacing example.com with the domain name of your own website).

    If you are redirected to Google, mod_rewrite is working.
    If you get an error, then mod_rewrite is not working.
    ************************************************

    After spending more time researching I found this recent article about Buddy Press on Multi Sites:
    http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/post-showing-in-activity-stream/

    In which they discuss that a plugin is being used in MultiSite installations to run Buddy Press as more then one individual instance and the wp-config.php should have define( ‘BP_ENABLE_MULTIBLOG’, true );

    And here is the link which has the installation instructions and the download (Dated March 20, 2012):
    http://buddydev.com/buddypress/introducing-buddypress-multi-network-plugin-create-multiple-separate-social-networks-on-a-single-buddypress-install/

    The instructions tell how to upgrade an existing network with the plugin. In addition, please do a complete backup of your site before attempting this installation.

    Please advise.

    Cheers, Joe

  • Ryan Neace
    • Site Builder, Child of Zeus

    K. Well, I followed the instructions, but something goes awry. Unfortunately, now I get no member listings whatsoever, and no menu with activity, members, etc., which leads me to believe there is no BP on my site with this plugin active.

    Things go haywire at step 6 when following these directions (and ps - I followed the "work-around" instructions for an existing install as well): http://buddydev.com/plugins/buddypress-multi-network/installation/

    Step 6 says:

    Now you can visit the dashboard of any of your sub network(blogs) and you will see the notice to Install/Configure BuddyPress.

    But when I visited the dashboard of counselinginternships.org (blog #7), the bp root blog defined in wp-config.php, or any other blog, for that matter, I have **no** notice to Install/Configure BuddyPress.

    For the record, here's what the relevant portion of wp-config.php looks like:

    define('WP_ALLOW_MULTISITE', true);
    define('WP_DEBUG', false);
    define( 'SUNRISE', 'on' );
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'changeincorporated.org' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    define( ‘BP_ROOT_BLOG’, 7 );
    define( ‘BP_ENABLE_MULTIBLOG’, true );
    /* That's all, stop editing! Happy blogging. */

    I appreciate everyone's help so far. Unfortunately, things appear to be getting worse. ACK!!

    I'm happy to blow everything away and start from scratch, if someone thinks thats a better idea. There's no content on the bp site yet - I noticed this error right away and have not moved forward with content yet b/c of it.

  • aecnu
    • WP Unicorn

    Greetings Ryan,

    That is certainly how I look some mornings and my eyebrows do not settle down until I have finished my second cappuccino!

    Thank you so much for that, it was unexpected and GREAT!

    It is my opinion considering the evidence you had submitted, that a reinstall will be necessary to get all this going.

    My reasoning behind this is that the main site already had Buddy press installed to include the sub site too.

    I further believe that this caused database havoc without the plugin installed that allows multi BuddyPress MultiSite installations and then when added later created further disarray.

    So I believe it is in your best interest to do a fresh install and add the so called Buddy Press MultiSite plugin right away before activating Buddy Press if indeed the instructions indicate this is what to do.

    It appears that Buddy Press is still not totally MultiSite compatible just by virtue of needing to use the plugin to do so.

    Please advise.

    Cheers, Joe

  • Ryan Neace
    • Site Builder, Child of Zeus

    Joe - WELCOME! LOL. :slight_smile:

    Had a feeling you might say reinstall.

    So, I need to completely wipe buddypress from my wpms install, correct? As in follow these steps? https://premium.wpmudev.org/blog/how-to-completely-delete-buddypress-from-your-wordpress-site/

    B/c I deleted the plugin already more than once as well as the bp-custom.php file, and reinstalled/recreated, and that did no good.

    Let me know if there is a better tutorial or if there are other things I need to do beside this. Thanks!!!!

  • aecnu
    • WP Unicorn

    Greetings Ryan,

    I think you are getting the same reaction because the Buddy Press tables are still within the database.

    In my screen shot below it shows the Buddy Press tables being designated as wp_bp_ but yet this Buddy Press installation is indeed on blog ID 3 which if properly MultiSite compatible should be showing something like wp_3_bp_activity designating the Buddy press table belonging to blog ID 3 but in fact lists it as if it is the main blogs files, though they are not.

    Aside from the prefixes being wrong for a MultiSite installation, these tables will need to be removed to effect a Buddy Press uninstall or else the stored data will never go away corrupted or not. I am implying possibly corrupted due to not supporting MultiSite and being activated on two sites within the same network.

    Buddy Press may have also strewn settings throughout other parts of the database, though I cannot seem to find them at this moment.

    I admit that I am not a Buddy press specialist to any degree, but I am tying to help resolve this and following the logic that seems to be employed here.

    Since we do not have a lead developer specifically designated to deal with Buddy press issues, it would be my duty to call in the WPMU Dev lead developer for advice on this project, but he is on vacation until the 10th of July.

    Please advise if you would like assistance wiping those Buddy Press tables to see if we can get this under control.

    Cheers, Joe

  • aecnu
    • WP Unicorn

    Greetings Ryan,

    Sir could you please email me the login information for your WordPress and Cpanel?

    I need these so that I can delete the Buddy Press files and remove them from the database and also make a full backup before doing so in your cPanel :slight_smile:

    I will email you in just a moment for this information.

    Cheers, Joe

  • Ryan Neace
    • Site Builder, Child of Zeus

    Well.......thanks for all your hard work. Still no luck. Again, I get to step 6's

    Now you can visit the dashboard of any of your sub network(blogs) and you will see the notice to Install/Configure BuddyPress.

    and there simply is no prompt to do so. As a matter of fact, there wasn't even any prompts to reconfigure BP at all.

    <sigh>

  • aecnu
    • WP Unicorn

    Greetings Ryan,

    The problem here is running more then two installations of Buddy Press on one network which is certainly a challenge.

    However, I have not given up and upon receiving your OK I will attempt to try again.

    I hope that you have not yet changed your log in information so that I may still have access.

    Once I receive your authorization I will try within 24 hours thereafter.

    Please advise.

    Cheers, Joe

  • Ryan Neace
    • Site Builder, Child of Zeus

    Hey Joe! Thanks so much for reaching out. I'm in Virginia and there have been massive power outages here. I'm not trying to run 2 buddy press installations...just one. I want it on blog id 7, change incorporated.org/counselingintershipscom (which is mapped to counselinginternships.com). I installed bp on the main site (changeincorporated.org) and id'd the root blog as blog id 7 on wp-config.php.

    I haven't changed anything and you should have super admin access...

    Let me know what you think......

  • aecnu
    • WP Unicorn

    Greetings Ryan,

    I believe we have basically resolved this ticket off forum by creating a new network with the desired domain and not trying to have two Buddy Press installations within one WordPress installation.

    Therefore I am going to take the liberty of closing his ticket and if I am wrong please feel free to check mark this ticket as not resolved below and posting our current status with this issue to include any errors or symptoms.

    Thank you for being a WPMU Dev Community Member!

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.