• Resolved Jayb75

    (@jayb75)


    Hello

    The plugin is excellent ! Works perfectly !

    Just a little thing : when i logout from my admin session, it redirects me to {NAME_SITE}/wp-admin/about.php?loggedout=true

    So, as I am not logged anymore, i have the cheating message error “Alors, on triche ?”

    I would like to be simply redirected to the homepage when i log out

    I can do it by editing wp-login.php but of course it’s not the best long term solution.

    Maybe it would be possible with hook / filters ?

    Maybe a possible improvment for a future version of the plugin ?

    Anyway, thanks for this very useful plugin

    https://www.ads-software.com/plugins/sf-move-login/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Grégory Viguier

    (@greglone)

    Hello.

    wp-admin/about.php?
    I can’t see how the plugin could do that, you should be redirected to {NAME_SITE}/login?loggedout=true. Another plugin must be messing around :/
    Which link do you click when it happens?

    Greg

    Thread Starter Jayb75

    (@jayb75)

    I just click on the right top “Se déconnecter”

    the code on wp-login.php is :

    if ( ! empty( $_REQUEST[‘redirect_to’] ) ) {
    $redirect_to = $requested_redirect_to = $_REQUEST[‘redirect_to’];
    } else {
    $redirect_to = ‘wp-login.php?loggedout=true’;
    $requested_redirect_to = ”;
    }

    It seems i don’t go in the second statement but in the first ??

    Thread Starter Jayb75

    (@jayb75)

    In fact it happens when i click on logout (Se deconnecter)
    when i am in the admin

    If i am on the website, it’s ok. it redirects me to
    {SITE_NAME}/?loggedout=true

    Plugin Author Grégory Viguier

    (@greglone)

    Ok.

    This “Se deconnecter” link, what is its URL? It should be {SITE_NAME}/logout?_wpnonce=xxxxxxxxx (or whatever you set in the settings page).

    Thread Starter Jayb75

    (@jayb75)

    The link is

    {SITE_NAME}/deco?_wpnonce=c5dd6216b8&redirect_to=http%3A%2F%2F{SITE_NAME}%2Fwp-admin%2Foptions-general.php%3Fpage%3Dmove-login%26loggedout%3Dtrue

    deco is the term i choose for the rewrited link “logout” in “move login” options

    Plugin Author Grégory Viguier

    (@greglone)

    Ok, that &redirect_to=... is the problem of course.
    I don’t know where it comes from, but not from my plugin :/
    All I can imagine is a conflict with some other plugin, but which one?

    When you deactivate Move Login, is this &redirect_to=... still there?

    Thread Starter Jayb75

    (@jayb75)

    When i deactivate Move Login :

    {SITE_NAME}/wp-login.php?action=logout&_wpnonce=1aa465f66b&redirect_to=http%3A%2F%2F{SITE_NAME}%2Fwp-admin%2Fplugins.php%3Fplugin_status%3Dall%26loggedout%3Dtrue%23038%3Bpaged%3D1%26%23038%3Bs

    Plugin Author Grégory Viguier

    (@greglone)

    Now we’re sure the problem does not come from Move Login. It seems another plugin adds your current URL as a redirection to the logout URL.

    When I said “or whatever you set in the settings page”, redirect_to was https://{SITE_NAME}/wp-admin/options-general.php?page=move-login&loggedout=true.
    When I ask “When you deactivate Move Login…”, redirect_to became https://{SITE_NAME}/wp-admin/plugins.php?plugin_status=all&loggedout=true....

    Thread Starter Jayb75

    (@jayb75)

    You are right. The plugin is “bbpress” forum. i don’t understand why it reacts on my logout link.
    Anyway thank you for your support

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘When logout, i am redirected to wp-admin.php so error shown’ is closed to new replies.