This bug still exists in 3.0.3.7. I just encountered it on a brand-new install on a VPS. I can replicate this problem 100% of the time with a few simple steps:gabosom wrote: ↑Wed Jul 26, 2017 9:34 pmhi everyone,
I installed OpenCart 3.0.2.0 on https://infinityfree.net/ and went through the install process like a charm, no errors or anything. However, when I try to login to the admin panel I see an incredibly odd behavior - it never logs in when I use the correct credentials!
This is the behavior I see:
* If I use an incorrect username/password I get an error (which is correct)
* If I use the correct username/password this is what I see:
** I get redirected again to the login page
** I see a user token as a query parameter in the URL
** In the sessions table in the database, I see two different entries getting created every time I try to login with the correct credentials:
*** One only contains "false"
*** The other contains the actual token I see in my URI
** The active session ID in my cookie is using the ID for the one set to "false" in the database even though it has the token for the other one
* I don't see any errors anywhere
I tried enabling errors by adding these to my php.ini
error_reporting = E_ALL
display_errors = 1;
I haven't fiddled with the .htaccess at all since I'm not familiar with what changes I'd need to do.
I'm not sure if this is a hosting config issue or an problem with OpenCart.
Any ideas on how to move forward or what I can do to troubleshoot?
1. Install OpenCart.
2. Log on with your administrator password.
3. Go to the store settings.
4. Change the system time from the default to America/Los Angeles.
Boom! Done. You'll get the login page and from that point on, you will never be able to log in again. Typing a correct administrator username and password fails silently and takes you back to the login screen.
Every single time.