BuddyDev

Search

URGENT ! Can't logout, my client complain

  • Participant
    Level: Master
    Posts: 213
    smart life on #15013

    Hi.

    How to fix logout issue. Bellow is detail

    1) Installed plugin: Branded Login for BuddyPress
    Setting/ buddypress / logout page ==> choose logout page (which i manual created)

    2) When i try to logout, i got this blank page:
    https://ex.com/logout/?_bl_nonce=906b27f34f&redirect_to=https://ex.com:443//

    3) During finger issue, i already deactive autoptimize, security plugin. But same issue happen.

    4) My theme logout code as bellow:
    ***Note: i just coppy IF part, i don’t copy whole long of started <? div to the end of ?>
    ***CODE****

    
    <pr>
    if ( bp_is_active( 'logout' ) ) {
    	$profile_menu1['logout'] = '<li> <a href=" ' 
    . wp_logout_url('/url-page-to-be-redirected') . '/">' 
    . __( "Logout", "buddypress" ) 
    . '</a></li>';
    }
    </pr>
    
    

    5) I also tried to deactive remove “logout page in setting”==. which mean logout is empty optional.
    Then i got this blank page when logout:
    Example: I click “logout” button, when i’m opening page : ex.com/test-page

    https://ex.com/test-page/?_bl_nonce=906b27f34f&redirect_to=https://ex.com:443//test-page

    Any detail should i provide you?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15014

    Hi Julia,
    Can you please tell me if the logout button from the adminbar is working or not?

    Please visit Dashboard and from the adminbar select logout, is it working?

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #15015

    All reported was tested with “subcriber”

    Everything work good when i try to logout as admin (both theme frontend & backend logout).

    • This reply was modified 6 years, 6 months ago by smart life.
  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15017

    Please disable this plugin and check again.
    It seems to me you are redirecting to a page which might not be accessible for the normal users.

    Is there any restriction plugin? if yes, Please do check the permission for the Logout page.

  • Participant
    Level: Master
    Posts: 213
    smart life on #15055

    More detail again.
    Ex: i’m on page`1
    As an admin or subcriber when i “hover” to “logout button” . Right conner of pc, i saw

    domain.com/page1 _bl_nonce=432ea194cf&redirect_to=https://domain.com:443//page1

    Here is my theme logout button code (just coppy for you IF part, not full header menu code)

    
    if ( bp_is_active( 'logout' ) ) {
    	$profile_1['logout'] = '<li> <a href=" ' 
    . wp_logout_url('/url-page-to-be-redirected') . '/">' 
    . __( "Logout", "buddypress" ) 
    . '</a></li>';
    }
    
    So i think the issue at: 
    . wp_logout_url(‘/url-page-to-be-redirected’) . ‘/”>’
    . 
    

    Finaly hope it full detail. So how can i fix the issue?

    I want every time user click on logout will redirect to homepage

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #15056

    Can you please disable the branded login and check if your login/logout is working normal for the user? I am assuming that the problem is neither branded login nor the above code, It is something else.

    Please check and let me know.

    Thank you
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved