I’m having the same problem as @mwbarker
It’s all the latest updates. I run my live site with w3TC, have disabled cacheing for logged in users, but still having this problem.
My localhost test site has W3TC disabled, and it’s no problems. I guess I’ll have togo through all settings one by one until i find out what’s causing this.
<– Edit.
Ok, this is weird….
I believe this has to do with “Page Cache” settings.
I disabled Cache home page (now, I can loign/logout no probs)
Selected “Don’t cache pages for logged in users”
Now, as a test, I visited a few of my pages, log out, no probs. Stay logged out.
Now, if I visit a page, say “About”, if I login on that page, I can logout, visit the homepage, I’m logged out, but if I visit that page again, it shows me as logged in. When I try to logout of “About”, it send me to the:
http://mywebsite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmywebsite.com&_wpnonce=bb1shsjskdd (nonce verify page)
Very odd.
How do I get my bp-adminbar-account-menu to work?
The only thing that works is “logout” I’ve tried fixing this problem on my own for months now.
The “view profile” button on the member pics does nothing either, only redirects to the home page. I’m using a child-theme, but I don’t think the problem is there. I’ve tried switching to the default buddypress theme and still have no luck fixing the issue. I would be extremely grateful if someone could help me with this.
Hi, my name is Laurentiu and I work for Spigot.
I am here to provide information about how to disable the redirection to http://www.mybrowserbar.com/cgi/errors.cgi. Please take a look here: http://www.spigot.com/network_error_assistant.html and also at http://www.spigot.com/uninstall.html.
Please contact me from our website http://www.spigot.com/contact.html if you need more help.
Thank you.
Managed to get it to work. Just creates a simple list, you can edit the css to create a drop down menu etc..
<ul id="menu-home" class="menu-members">
<li><a href="#">Members Area</a>
<ul class="sub-menu-members">
<?php global $bp;
if ( is_user_logged_in() == false) {
echo'<li><a>root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain ) . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
if ( bp_get_signup_allowed() == true ) {
echo'<li><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
}}
?>
<?php
if ( is_user_logged_in() == true) { ?>
<li><a href="profile/">Profile</a></li>
<li><a href="messages/">Messages</a></li>
<li><a href="Leagues/">Groups</a></li>
<li><a href="friends/">Friends</a></li>
<?php echo'<li><a href="' . wp_logout_url( site_url() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a></li>' ?>
</ul>
</li>
</ul>
I had taken the short snip of code from this plugin https://buddypress.org/community/groups/bp-profile-as-homepage/ and I put this in my functions.php:
`function bp_profile_homepage()
{
global $bp;
if(is_user_logged_in() && bp_is_front_page())
{
wp_redirect( $bp->root_domain . ‘/’ . $bp->activity->slug );
}
}
function logout_redirection()
{
global $bp;
$redirect = $bp->root_domain;
wp_logout_url( $redirect );
}
add_action(‘wp’,’bp_profile_homepage’);
add_action(‘wp_logout’,’logout_redirection’);`
That redirects users to site.com/activity
Hmm unfortunately, that still did not work. Thanks for all your help thus far guys. Here is how my problem originated:
I recently transferred my site from the default ”/wordpress/” sub directory to my root directory. Everything works fine in BuddyPress except for the LOGOUT and LOGIN menu options from the BuddyPress menu bar (up at the top).
Upon looking at the URL that the logout and login tries to redirect to (in the tag), it still thinks it is in the ”/wordpress” subdirectory and the thus results in a Error 404 – Page Not Found problem.
I’ve search various ways to do this but people have either not have found a solution or seem to not have posted it. I originally thought I could just use the ‘Add All Nav Links to Admin Bar’ plugin (https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/) and hide the Login and Sign Up options but unfortunately the “Log Out” still remains since it is under the ‘My Account’.
Any help would be much appreciated, thanks.
it doesnt work as I want it to work…”For the user not logged in backend, BuddyPress already redirects them to main site on logout”
it says that Buddypress already redirect to main site on logout.. but mine doesnt.. it goes to wordpress logout first…
Hello,
How can I make it so when someone clicks logout it gets redirected to the homepage? right now if you click logout it goes to the wordpress logout screen asking if you really want to logout… I want to bypass this and if you click logout the user just gets loggedout and redirected to the homepage….
Thank you
Nevermind figured out, wp-login.php line 380 $redirect_to = !empty( $_REQUEST ) ? $_REQUEST : ‘index.php?loggedout=true’;
Hey guys!
How can I change the logout redirect? so it redirects to homepage after they logged out?
Thank you!
OnYx
@gunju2221 thanks for the response. I almost forgot I do have a plugin in place that is supposed to handle logout redirects, when the logout works I do get taken to the homepage. But like I said, sometimes it is the case where it still appears as though I’m logged in because I can see my avatar and username.
I just wish I could find something that just logged in and logged out with ease!
I don’t think that would be possible, but, there is always a plugin for everything.
To achieve what you are talking about, it would require ajax to load 3 pages without re-loading the page? Yeah, the wordpress logout requires the standard wp-login.php?action=logout action, to dump that into an ajax js would be pretty difficult.
You can see what I am talking about, if you go to your site, and click the “Log Out”, the wp-login.php?action=logout will appear, than redirect to the homepage.
But it would be still worth checking around! 
P.S, if there is a plugin that does this, I would expect it to conflict with alot of other plugins.
What happens if you try adding that onclick action to your BP log out?
<a id="bp-admin-logout" class="logout" href="http://mysite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmysite.com&_wpnonce=996ffd0d7e">Log Out</a>
Apologies – missed putting the code in backticks:
BP-FBConnect function is this:
<a href="#">Logout of Site & Facebook</a>
BP Function is:
<a id="bp-admin-logout" class="logout" href="http://mysite.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fmysite.com&_wpnonce=996ffd0d7e">Log Out</a>
When I or another user try to Log Out we get sent to a page that cannot be displayed saying connection to server has been reset.
here is my BP site – http://troutpic.com
This is the URL that is generated when I click Log Out – http://troutpic.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Ftroutpic.com&_wpnonce=749a45eb88
That plugin use this code to show users page.
`function bp_profile_homepage()
{
global $bp;
if(is_user_logged_in() && $_SERVER==’/’)
{
wp_redirect( $bp->loggedin_user->domain );
}
}
function logout_redirection()
{
global $bp;
$redirect = $bp->root_domain;
wp_logout_url( $redirect );
}
add_filter(‘get_header’,’bp_profile_homepage’,1);
add_action(‘wp_logout’,’logout_redirection’);`
by the way I am testing it in localhost
maybe that causes problem
@shawnyuan ** when user log into your website, user is redirected to his/her profile. ** when user tries to move to homepage, user is redirected to his/her profile. **
Here’s the BP Profile as Homepage plug-in:
function bp_profile_homepage()
{
global $bp;
if(is_user_logged_in() && $_SERVER=='/')
{
wp_redirect( $bp->loggedin_user->domain );
}
}
function logout_redirection()
{
global $bp;
$redirect = $bp->root_domain;
wp_logout_url( $redirect );
}
add_filter('get_header','bp_profile_homepage',1);
add_action('wp_logout','logout_redirection');
one problem down, 2 new ones:
now blog.emailaya.com works!
BUT http://www.emailaya.com/blog doesnt!
it brings me to a page saying: Page Not Found – The page you were looking for was not found.
2nd: if i logout the user that is currently logged in im redirected to my homepage! instead of the blog’s homepage “/blog/”
doubled URL problem was solved through the wp->settings->permalinks
On my website at transitionvoice.com when I have Buddypress running, the login link in the admin bar redirects incorrectly to a 404 page. The register and logout links are fine. I’ve had to temporarily disable Buddypress because I was getting complaints, but does anyone have an idea on how to fix this?
Now the activity as the home page is working, and the logout button is also displayed after login. Another problem is the blog page/tab can not display the list of blog posts. He even displays a list of blogs because I named the page/tab “Blog”. Login form on the front page also does not work: every time I login always redirected to the wp-login.
Hi everyone.
The Log Out problem is with the Admin Bar. The link is http://example.com/wordpress/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fexample.com%2Fwordpress&_wpnonce=xxxxxxx
The user gets logged out but it’s a 404. Interestingly, the sidebar logout works fine and the logout link is http://example.com/wordpress/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fexample.com&_wpnonce=xxxxxxx
The first link has /wordpress in there. WordPress is installed in /wordpress, not the root directory, so this is where the problem is, but I don’t understand why the Admin bar has the incorrect link. Any ideas?
Delete Account also goes to a 404, but the account gets deleted. I’ve seen posts on this but it was solved with the lastest Buddypress release? I have the latest version, so I’m not sure what the problem is here.
Any help would be appeciated! Thank you.
Hey everyone. I have been tinkering around with the BP Profile as Homepage, to get it to set the activity page as the homepage for logged in users but have had no success. I think the activity page would be ideal homepage for logged in users as it makes available a way for users to see what is going on, as well as a way for them to easily post to the groups they are in. I can partially do this with the Settings/Reading options but it only works for all users, and I would prefer non logged in users to see the homepage I have set up (which is 3 blog posts describing the site).
Below is the code for the plugin, does anyone have any suggestions?
`
function bp_profile_homepage()
{
global $bp;
if(is_user_logged_in() && $_SERVER==’/’)
{
wp_redirect( $bp->loggedin_user->domain );
}
}
function logout_redirection()
{
global $bp;
$redirect = $bp->root_domain;
wp_logout_url( $redirect );
}
add_filter(‘get_header’,’bp_profile_homepage’,1);
add_action(‘wp_logout’,’logout_redirection’);
`
TIA!
Brandon @ moonbooks.net