WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: BP-FBConnect] not logging out? (10 posts)

  1. af3
    Member
    Posted 4 years ago #

    Hmmm... seems like now this plugin wont let me log out from wpmubp site. i have to go to facebook to logout before i can logout from wpmu/bp site. weird issue -- any idea how to fix this?

    http://wordpress.org/extend/plugins/bp-fbconnect/

  2. kasscomplex
    Member
    Posted 4 years ago #

    Yer... I cant log Out aither... wat's up? Any known Fix?

  3. kwatog
    Member
    Posted 4 years ago #

    In my testing, I managed to logout once. But after that, all testing failed. Just like af3, I had to go to facebook to logout.

    I'm using WPMU2.9.1.1 and the latest trunk of BP.

  4. kwatog
    Member
    Posted 4 years ago #

    ei guys, the new version released just today fixed the problem.

  5. Dailytalker
    Member
    Posted 4 years ago #

    I use buddypress 1.2 and bp-fbconnect. The problem is that I can only logout from the backend but not from the frontpage.

    On the following page http://alvinzhang.info/?p=139 I found a way how this problem could be fixed. I tried it out but unfortunately without any change at all. I still can only logout from backend and not from frontpage.

    Another way to logout is to go to facebook and to logout there. When I've logged out from facebook I can also logout from the buddypress frontpage.

    Does anybody has an idea how I can fix that problem?

  6. code012
    Member
    Posted 4 years ago #

    Dailytalker - I have the exact same problem.

    The only thing I did differently was to install BuddyPress with subdomain. As subdomain.main.com for my central BuddyPress community. But I don't think this should change anything. I'm using WPMU 2.9.1.1 with plugin 1.2.

    What's worse is that in my case it loops the login process. The browser loops into logging in.

    Maybe it's the cookie management or theme incompatibility issue.

  7. kagliostro
    Member
    Posted 4 years ago #

    I have the same problem!

    I have seen that logout link in backend works (http://example.com/wp-login.php?action=logout&_wpnonce=defgsbc7a3b) while this on BP-connect in homepage doesn't (http://example.com/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fexample.com&_wpnonce=defgsbc7a3b).
    So the problem is "redirect_to...": but how to eliminate it?

    How to change logout link of BP-connect? I have tried to modify some files in BP-connect plugin but without success.

    Thanks for help!

  8. dstar1
    Member
    Posted 4 years ago #

    same here ...not logging out from the buddypress admin bar at the top

    also .... i'm hoping because one of the founders of buddypress andy developed this plugin that we are safe using it going forward and our facebook registrations will always be able to sign into buddypress the same way in years to come?

  9. kagliostro
    Member
    Posted 4 years ago #

    I found (simple) solution: the error is in the SIDEBAR BUTTON LOGOUT, not in BP-Facebook connect plugin.
    You have to change logout link in the sidebar.php (wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php) and eliminate this part "&redirect_to=http%3A%2F%2Fexample.com&_wpnonce=defgsbc7a3b".
    So It's very simple to correct bug.
    In the orginal sidebar.php there is :

    <div id="sidebar-me">
    			<a href="<?php echo bp_loggedin_user_domain() ?>">
    				<?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ) ?>
    			</a>
    
    			<h4><?php bp_loggedinuser_link() ?></h4>
    			<a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
    
    			<?php do_action( 'bp_sidebar_me' ) ?>
    		</div>

    So you have to change href value of

    <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>.

    Unluckily I have not found a working general hook to generate automatically logout (working) link, but some time ago I have seen that this is a common error in WordPress.
    In the worst case you can put directly in the href the logout link taken from dashboard (it works and it doesn't contain redirect option).

  10. kagliostro
    Member
    Posted 4 years ago #

    Ok, the solution is very very simple: in wp-content/plugins/buddypress/bp-themes/bp-default/sidebar.php you have to change this "wp_logout_url( bp_get_root_domain() )" in "wp_logout_url()"

    For me working very well!
    Bye

Topic Closed

This topic has been closed to new replies.

About this Topic