Anyone heard of this issue?

Using WPMU 2.7.1 and BP 1.0. Using BP default home and member themes. Only one or two plugins installed that are not WPMUDev premium plugins.

I have posted this thread on the BuddyPress forums as well but no response. While I read that someone had a similar issue and it was a plugin issue, but the exact plugin wasn’t named :slight_frown:.

If I login through the BP login bar I am able to access the site and view profiles, etc. but when I attempt to access any part of the blog back end through My Blogs/(blogname) admin/dashboard, new post, etc… I get redirected to

http://user.sitename.com/wp-login.php?redirect_to=http%3A%2F%2Fuser.sitename.com%2Fwp-admin%2F

And I am asked to login again. Anyone got any ideas as to why this may be happening.

Just realized the opposite is true as well. If I login through wp-login and go to my BP profile I can see my profile but it says ‘i must be logged in to access my account.’ Like I am a visitor.

Thanks and I really appreciate any suggestions, tips or ideas of how to remedy this situation.

  • omgitsrfb
    • Site Builder, Child of Zeus

    Andrew/Mike,

    I went through the process of removing the plugins and testing each one as I added it back in and what I found was interesting. Loggin in sitewide (BuddyPress and WPMU) is not an issue for admin user but is for all other users.

    I removed the plugins from wp-content/plugins and tested the admin user and by installing and activating each plugin one at a time and everything worked fine. I then removed all of the plugins again from the same folder and before I reinstalled or activated any plugins (except BuddyPress of course) I tried other test accounts I had set up. And without any plugins installed in the wp-content/plugins folder for users other than admin I still had to sign into BuddyPress and WPMU separately. I’m using subdomains.

    When you said:

    The first thing I’d do is make sure it’s not a plugin causing the problem. Just remove all of the plugins except BP. If the problem goes away then add the plugins back in one at a time until you find the culprit.

    You were just referring to plugins not mu-plugins correct?

    There’s a thread over on the BuddyPress forums with a similar issue except signing in twice was between buddypress and bbpress

    http://buddypress.org/forums/topic.php?id=471&page=2#post-5680 it was suggested to clear cookies and check my wp-config and bb-config files and add the following:

    define('COOKIE_DOMAIN', '.example.org');

    define('COOKIEPATH', '/');

    define('COOKIEHASH', 'cookie#');

    Well my wp-config file looks like this:

    define('COOKIE_DOMAIN', '');

    define('COOKIEPATH', '/');

    define('COOKIEHASH', 'cookie#');

    and nothing like this is found in bb-config.

    I’m at a loss. Any suggestions?

    Thanks,

    Ricky

  • omgitsrfb
    • Site Builder, Child of Zeus

    Aha! I think I figured something out that I missed earlier.

    When I login two separate cookies are being created. One for domain.com and username.domain.com.

    I found this out by clearing all of my cookies, logging into WPMU and then I had to login again to BuddyPress. Checked cookies in Firerfox.

    Is there supposed to be two cookies created? If not, what can I do to fix this.

    Thanks Andrew or anyone else.

    Ricky