The MU forums have moved to WordPress.org

logout problem (users can't logout) - runing on 2006-04-06 nightly (4 posts)

  1. Le-Fay
    Member
    Posted 18 years ago #

    Hello good people of the wordpress MU community.
    After having some problems with the last nightlies I've installed 2006-04-06 nightly (which suppose to be a stable enough release).
    The only problem I'm encountering is a logout problem on the admin screens.
    When a user click on the logout link she is sent right back to the admin screen still logged in.
    I've found some info on similar problem in the forums but no fix for the bug.

    Any suggestions?

  2. jeffery2k9
    Member
    Posted 15 years ago #

    Hai man,
    I dont know about about wpmu but am using wp 2.7
    and i was having a problem with logout...
    When user clicks on logout its get redireted to the home page but user is still logged in...
    It displays the msg

    "You Attempting to logout of the siteurl
    Please try again"

    where please try again is a hyperlink and when the user clickc it just redirection to the home page occurs without loggingout....

    However I was able resolve this using the following steps...

    1)My logout links comes from a plugin called
    "usersidebarpanel"
    the path to it seems something like

    "wp-content\plugins\usersidebarpanel"

    2)Inside usersidebarpanel there is a file called as
    "functions.php"

    3)edit this file as follows

    In this page somewhere about lines 61,93,100
    there is a piece of code as given below

    echo '<li><a href="'.get_bloginfo('wpurl').'/wp-login.php?action=logout&amp;redirect_to='.get_option('siteurl').'" title="'.$usp_language['logout'].'" >'.$usp_language['logout'].'</a></li>';

    4)Replace This code with the following code given below

    echo '<li><a href="'.wp_logout_url(get_permalink()).'" title="'.$usp_language['logout'].'" >'.$usp_language['logout'].'</a></li>';

    5)Thats it and check out...

  3. xyzzy
    Member
    Posted 15 years ago #

    I've noticed this problem with a 2.7 install. Users can not log out after leaving comments.

    The code in my comments.php file looks like this:

    <a href="<?php echo wp_logout_url(get_permalink()); ?>"
    title="Log out of this account">Log out &raquo;</a>

    The user clicks on that link and gets a page that says:

    You are attempting to log out of [blog name]
    
    Please try again.
  4. xyzzy
    Member
    Posted 15 years ago #

    I am all set. I had been updating the wrong theme. Oops. The code above worked for me. Sorry!

About this Topic