• I seem to be having a recurring issue, that I notice others have brought up but not necessarily found a solution for…

    I can’t log out.

    The logout link doesn’t work.

    The logout page has been created automatically, and still exists, (Title “Log Out” permalink “/logout”) but when the page is accessed via the log out link it just brings up the error message:

    “You are attempting to log out of Site Name

    Do you really want to log out?” (Where the final two words “log out” are a link).

    I click the link to confirm I want to log out and nothing happens. It just refreshes the same page.

    The only way I can actually log out of the site is to completely clear my cookies.

    The URL for the link activates the nonce (link looks something like this: “/logout/?_wpnonce=3e5ca4c09f/”) but it just doesn’t work.

    At all.

    Any ideas what could be causing this? Or a workaround so I can just go back to using the normal WordPress log out?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Try switching /logout/? to /wp-login.php?, keeping the same nonce. Does it work then?

    Thread Starter jonwatson87

    (@jonwatson87)

    Unfortunately not, no.

    It redirects me to the login page, where it asks for my password again, SUGGESTING I’ve been logged out, but when I click the link below to go “Back to Site Name” it hasn’t actually logged me out.

    I can still access the dashboard without logging in, and the admin toolbar still appears at the top, on the front end.

    It looks like any of your plugin might be causing the issue, if you had made any changes to plugins (update/install) try disabling that plugin. Or you can try disabling the plugin to see if that works.

    Hi,
    i am also facing this issue when TML is active. I tried to reinstall WordPress to check whether there is any corrupted files but no result. i am able to log out only when disabling the TML plugin. I also tried to reinstall TML too. But the result is same.. May i know what may be causing this issue and how to fix this?

    Hi,

    I am facing the same issue. My website is a bunch of pages as view-only for visitors. I am the ONLY person who will be logging in/out. I have the same issue. But, then, I don’t mind disabling the plugin – since I am the only person logging in :-).

    I will report back if there is a plugin conflict issue.f

    Thx !

    • This reply was modified 6 years, 7 months ago by k2learner.

    SOLVED!!

    • I first disabled all other plugins EXCEPT TML. I still had the same issue.I compared with my other websites that I have built where it works smoothly. The Logout link was https://mydomainname.com/logout/?_wpnonce=xxxxxxxx. But the URL generated looked different.
    • I disabled TML and URL reverted back to WordPress logout link and it worked fine.
    • SOLUTION: I deleted TML completely, logged out, logged in back again, reinstalled TML. Logout link generated correctly and it works fine. I suspect it got botched up when exporting from Windows and importing into Linux Hosting provider but I could be wrong.

    I ran into this problem too.
    Turned out it was due to having these values set in the wp-config.php

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

    I commented these out and the logout started working again. Had to clear my cookies for it to start working though.

    This might be helpful as well. If you installed the 7.0 and want to rollback to an older version. You can do so but remember the permalinks get all messed up.

    – I uninstalled version 7.0 and installed 6.4.16 and I was still not able to log out until I went to my permalinks and clicked saved to get it to revamp the permalinks and then it worked again.

    This might work for some and not others but its worth a try. And get prepared if you like Theme My Login and want what they have to offer 49 bucks is not to bad for a version 7.0. Only thing I don’t like is they said something about not letting you use pages to shortcode – I like the way it is so I can customize the page with a shortcode. I did not like this ON THE FLY crap with the login, lostpassword, register pages. I like it so I can put the shortcode in it and customize the pages as I see fit.

    You could also point your log out link here: https://your-domain.com/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fyourdomain.com%2

    Thanks envyskins, you solved this for me. After rollback, I couldn’t log out of the site. Saving Permalinks solved the problem. Now I need to decide what to do in future re TML!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t log out’ is closed to new replies.