Have a look at https://www.uncannyowl.com/knowledge-base/front-end-login/ for some info about how to handle accidentally locking yourself out. Basically what you’ll want to do is find a way back in (via your host allowing it or by disabling the plugin by FTP), reenabling the plugin, making sure your login page is set up correctly and with the [uo_login_ui] shortcode, and then testing it out in an incognito window while still signed in.
Thread Starter
38kali
(@38kali)
Thank you for the reply. I was able to get back in, but I still don’t understand because it seems as though I have it set up correctly.
I have a “self-study login” page I created, which has the shortcode [uo_login_ui].
In the Settings I have Front End Login activated and pointed to this new “self-study login” page. Isn’t that what the directions say I need?
I also have Log In/Log Out Redirects on, which upon logout directs people back to the “self-study login” page and to a page with their subscribed courses upon successful login. The help text specifies this is for non-admin users only.
So why when I just try and get to my wp-admin page I am directed to the login page for my self-study login?
Hi, if you’re not logged in and trying to visit /wp-admin/ then this is expected behaviour; users need to log in from the page defined as the login page. But if you mean you’re logged in, say as an admin and attempts to visit /wp-admin/ are redirecting to the login page, you have a bigger problem. I’m afraid if that is the case though then it’s extremely unlikely that it’s related to our plugin.
Thread Starter
38kali
(@38kali)
No, it’s not the latter.
If I’m logged in as admin then I’m fine. If I log out and try to log back in, the wp-admin page becomes the one I defined for your plugin. This is totally FINE, as long as I can log in as an admin, and as long as I can click “forgot password” if I need to. However when I try to log back in as admin, I’m told I’m using an invalid username/password (which I am not, because when I deactivate the plugin the same combo works fine).
Our login form uses WordPress functions only for that, so there shouldn’t be any difference compared to the regular WordPress login. And is this behaviour for admins only or any user account? Do make sure that the page isn’t cached in any way, that there are no other login forms and that no other plugins rely on whatever URL you’re using for the login page.
Thread Starter
38kali
(@38kali)
After updating LearnDash LMS plugin I am again faced with this issue and am locked out of my site. 🙁
I have this same issue. I have installed the plugin. I have a Login page setup. I used the short code [uo_login_ui] on that page. my admin account was auto-verified. I created a test user and I verified that user. I turned on Front End Login and set it for my Login page. I open the page in an incognito window and am unable to login using my admin or test usernames. I get “Oops! Invalid username and/or password.” every time.
Thread Starter
38kali
(@38kali)
When this happened to me yet again recently, seemingly when I updated the plugin. I messaged learnDash with an error that my hosting company said was being thrown by one of their files. They said that it was an issue with their core. They are releasing a new version today I believe, but they sent me the updated zip file yesterday and I just installed it. We’ll see if that solves the problem but you may want to upgrade update the learnDash LMS plug-in.