WPMU DEV Members receive personal, comprehensive and timely support and assistance from experienced WPMU and BuddyPress developers.

Helping beginners and advanced users since 2005
Join WPMU DEV Today
And transform your WPMU or BuddyPress site
Includes Unlimited Access to:

Private Members
Only Forum

Live Chat Help
and Support

Comprehensive
"How To" Videos

WPMU and BuddyPress
Manuals and More

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 :(.

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.

Help & Support from WPMU Dev members and staff

Sounds like cookie issue to me as that's the normal wpmu login URL. Don't you have to mesh cookies between the two? You have to with bbpress.

No idea outside of that as we don't use bp.

Hiya,

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.

Thanks,
Andrew

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

Hiya,

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

All plugins (especially mu-plugins).

Thanks,
Andrew

All of the plugins except BuddyPress have been removed and I still have the same issue. What else should I check?

If it's definitely not a plugin issue then I'd bump your post on the BP forums. I've never encountered this exact issue so I'm afraid I don't have any suggestions.

Thanks,
Andrew

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

That was it. For some reason in wp-config.php:

define('COOKIE_DOMAIN', '');

was empty

changed it to

define('COOKIE_DOMAIN', 'mydomain.com');

works fine now.

Reply

You must log in to post.


To post your questions, and access all of our plugins, themes and support - become a member today.