-
- 24,544 Posts
That would be one option. If it doesn't work, you know it's not a plugin problem. If you knew which plugins might fire on login, you could just do those.
I was hoping it would be the 'name' field of the context table, since that's a common cause of login failure.
If you put in the wrong credentials, do you get an error message on the login screen?
discuss.answer
Quote from: BobRay at Feb 04, 2016, 06:32 AMThat would be one option. If it doesn't work, you know it's not a plugin problem. If you knew which plugins might fire on login, you could just do those.
I was hoping it would be the 'name' field of the context table, since that's a common cause of login failure.
If you put in the wrong credentials, do you get an error message on the login screen?
Yeh, everything worked on the server prior to migration, so I'm assuming we're not dealing with plugin problems, but anything is possible at this point. Tomorrow we're going to have the server admin set us up with an empty database and we're going to do an install of a fresh MODX on the server and install only the Login snippet and try with that fresh setup. If it works, then we know it's a plugin issue we're having on the main site. If not, then we have other problems.
When I put in the wrong credentials I get nothing back. Same thing...the screen just refreshes.
Precision Web Development ... SmashStack.com
-
- 24,544 Posts
-
- 24,544 Posts
I should have mentioned deleting all files in the core/cache directory and clearing your browser cache and cookies. Sometimes it works. You could also check the paths and URLs in the core/config/config.inc.php file.
Quote from: BobRay at Feb 04, 2016, 06:41 AMI should have mentioned deleting all files in the core/cache directory and clearing your browser cache an cookies. Sometimes it works. You could also check the paths and URLs in the core/config/config.inc.php file.
Yeh, those were the first steps we tried...98% of the time that fixes the problem but this issues looks like a much bigger problem. Thanks for the advice though.
Precision Web Development ... SmashStack.com
Quote from: BobRay at Feb 04, 2016, 06:38 AMThere's also a long discussion of the issue here: https://forums.modx.com/thread/30690/modx-manager---always-redirects-back-to-login#dis-post-166401
Awesome...gonna review that thread. Thanks for the find.
Precision Web Development ... SmashStack.com
Hi Kris,
If you're not getting any feedback when entering wrong credentials as well, that sounds like the POST might not be making it through properly. One possible reason for that which could occur following a migration is that there's something in the htaccess (or a plugin) that's causing a redirect to happen, which loses the posted data. Try opening the browser dev tools on the net(work) tab before submitting the login form, and see if there's any additional redirects happening that shouldn't.
Quote from: markh at Feb 04, 2016, 11:44 AMHi Kris,
If you're not getting any feedback when entering wrong credentials as well, that sounds like the POST might not be making it through properly. One possible reason for that which could occur following a migration is that there's something in the htaccess (or a plugin) that's causing a redirect to happen, which loses the posted data. Try opening the browser dev tools on the net(work) tab before submitting the login form, and see if there's any additional redirects happening that shouldn't.
Yeh, that thought came to mind too as we've seen that type of thing happen before as well...we'll test that out shortly.
Precision Web Development ... SmashStack.com