So, I tried to update a test site that was OC3.0.2.0 to OC4.0.0.0 and that was a massive failure. So, I decided to make a clean installation of OC4.0.0.0, downloaded from the github (06/14/2022). I created a new database, went to the site which invokes the installer (everything was checked), and did the installation. I deleted the INSTALL folder and then went to the site.... works perfectly. Then I decided to go to the admin page, entered my credentials, and I get no response at all... no error message, nothing. I have the correct username/password (its the same one I have used forever, saved in the browser). I tried entering garbage and I also do not get an error message on screen, or in a log anywhere. So, I decided to click on the "forgotten password" link and I get an Opencart generated page that says "Page not found" with this error at the very top of the display:
Warning: Undefined array key "user_token" in /homepages/xx/xxxxxxxxxx/htdocs/dev.test.com/admin/controller/error/not_found.php on line 13Warning: Undefined array key "user_token" in /homepages/xx/xxxxxxxxxx/htdocs/dev.test.com/admin/controller/error/not_found.php on line 18
I am hosting this on IONOS, using PHP Version 8.1.6. In the PHP.ini file I have: display_errors = 1 and error_reporting = E_ALL lines uncommented, so I would expect to be getting some type of error log but I don't see anything anywhere (like I normally would with OC3.x).
At this point I can't get into the admin page, but the main website all works as expected. Any ideas?
If that upgrade is not for testing purpose, then better don't make upgrade yet.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
One thing that is quite different with OC4 vs. OC3 installation is the permissions. With OC3.x you had to set permissions for several directories and files, whereas with OC4 the installation instructions state that you only need to make the config files as 777. Is this a mistake?
I would suggest the use of opencart-3 from the Github Opencart repository prior to upgrade to OC 4 in order to let time for OC 4 to evolve: https://www.github.com/opencart/opencart-3 .JimDrew wrote: ↑Wed Jun 15, 2022 10:37 pmOf course the plan is to upgrade existing OC3.0.2.0 sites that I control. I am just doing testing until I see it all work correctly. The upgrade yielded a ton of errors, which I just figured were due to the numerous patches made over the last few years. This is why I started with a brand new clean installation and database. Like I said, the website itself seems to work fine - everything works just like you would expect. I just can't get into the admin page. I don't get the normal "login error" message that you see with OC3.0.2.0 when you enter the wrong credentials, no matter what data I put there, and trying to reset the password gives me the error shown above.
One thing that is quite different with OC4 vs. OC3 installation is the permissions. With OC3.x you had to set permissions for several directories and files, whereas with OC4 the installation instructions state that you only need to make the config files as 777. Is this a mistake?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I did another full install from scratch today with the exact same results. I don't think it's something I am doing. I am really wondering about the permissions thing. If whoever is in charge of debugging OC4 wants to take a look around the server I can provide SFTP access.
Don't leave those files set to 777 on your server. Just in case: The permission 777 means that any user on your operating system can modify, execute, and write to the files posing a significant security risk to your system. An unauthorized user could use this to modify files to compromise your systemJimDrew wrote: ↑Wed Jun 15, 2022 10:37 pm
One thing that is quite different with OC4 vs. OC3 installation is the permissions. With OC3.x you had to set permissions for several directories and files, whereas with OC4 the installation instructions state that you only need to make the config files as 777. Is this a mistake?
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com
I have had exactly the same experience... attempted an upgrade from 3.0.2.0 to OC4.0.0.0 which kind of worked after patching the installer files, manually installing missing default OpenCart extensions, and fumbling with the Admin folder rename and 'storage` folder configuration. In my case I was unable to checkout with a subscription product, and User control panel pages don't display.JimDrew wrote: ↑Wed Jun 15, 2022 10:21 amSo, I tried to update a test site that was OC3.0.2.0 to OC4.0.0.0 and that was a massive failure. So, I decided to make a clean installation of OC4.0.0.0, downloaded from the github (06/14/2022). I created a new database, went to the site which invokes the installer (everything was checked), and did the installation. I deleted the INSTALL folder and then went to the site.... works perfectly. Then I decided to go to the admin page, entered my credentials, and I get no response at all... no error message, nothing. I have the correct username/password (its the same one I have used forever, saved in the browser). I tried entering garbage and I also do not get an error message on screen, or in a log anywhere. So, I decided to click on the "forgotten password" link and I get an Opencart generated page that says "Page not found" with this error at the very top of the display:
Warning: Undefined array key "user_token" in /homepages/xx/xxxxxxxxxx/htdocs/dev.test.com/admin/controller/error/not_found.php on line 13Warning: Undefined array key "user_token" in /homepages/xx/xxxxxxxxxx/htdocs/dev.test.com/admin/controller/error/not_found.php on line 18
I am hosting this on IONOS, using PHP Version 8.1.6. In the PHP.ini file I have: display_errors = 1 and error_reporting = E_ALL lines uncommented, so I would expect to be getting some type of error log but I don't see anything anywhere (like I normally would with OC3.x).
At this point I can't get into the admin page, but the main website all works as expected. Any ideas?
I decided to try a Clean, Fresh install of OC4.0.0.0 on a staging server. The install went well, but I cannot login to Admin. I have the exact same experience and errors as listed by the OP.
Instead of suggesting that we install v 3.x, would it be possible for someone to offer suggestions on how we can log into the Admin panel on version 4.0.0.0?
Thanks
RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.
Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't.
In the same vain, one might suggest instead of asking for a solution to be provided, one might come back with a fix. Nevertheless, there are more issues than just this and it would be helpful if you provided your complete set up as I personally have a feeling that there might be additional cross browser issues (and I might be wrong).
Have you searched the forum for all the comments posted and tried them all out yet?
This for example viewtopic.php?t=228495&p=843586
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Regarding the inability to login to the Admin area, I will post a solution if I can discover the problem. I made several unsuccessful attempts to resolve the login issue. I'll file a bug report, here are the details:
**What version of OpenCart are you reporting this for?**
OpenCart: 4.0.0.0
SHA: 2c10247de9af4c97484623f596d759e42704d848
**Describe the bug**
After performing a fresh install with new empty database, I am unable to login to the Admin area. The storefront appears and is functioning as expected.
What section does it affect?
Admin Login
**To Reproduce**
Steps to reproduce the behavior:
1. Install OpenCart 4.0.0.0 (2c10247de9af4c97484623f596d759e42704d848)
2. After successful install click the link to go to the Admin panel
3. The login screen is presented
4. Enter Login credentials and press Login button
5. Nothing happens.
**Expected behavior**
I expect that after entering Admin login credentials and pressing the Login button that I should be taken to the Admin panel.
**Server / Test environment:**
- Deployed to a STAGING server. Behind an .htaccess protected site allowing only my ip.
- Operating system: AlmaLinux v8.6.0
- PHP version: 8.1
- DB: 10.5.16-MariaDB
- Browser(s) tested: macOS FireFox 99.0.1 and Chrome 100.0.4896.75
**Additional context**
The issue may be javascript related because pressing the Login button without entering ANY credentials, simply does nothing. There is no error or warning to complete the input fields when they are left empty. When entering valid credentials, the Login button temporarily displays spinner, then nothing. There are no error logs anywhere that I can find.
As an attempt to login, I press the "Forgotten" password link on the login page. The result is an Opencart generated page that says "Page not found" with this error at the very top of the display:
Warning: Undefined array key "user_token" in /admin/controller/error/not_found.php on line 13Warning: Undefined array key "user_token" in /admin/controller/error/not_found.php on line 18
I have since installed latest master: 13697b4b066aeaba81281ff2a316999e6af14aac
Same issue exists with Login button not logging into Admin
New Error on forgotten password page: Could not call registry key model_user_user! in /system/engine/controller.php on line 25
I see that there is another commit to the master branch that addresses "unfinished" 2FA, so it may be that I am now running a half-finished enhancement. I will keep installing updates in effort to establish a semi-stable version with admin access.
My javascript skills are not great, but I have been looking through common.js in effort to locate the problem. Any suggestions are appreciated.
Thank you
RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.
Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't.
I would like to know how people are actually able to get into the Admin page... we can't. I realize that OC4.0.0.0 is in testing, but we can't test anything if we can't log into the Admin page!

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
It is crazy that users have to know that there is such a difference on Github vs. the download from opencart.com in order to get a version that works for them
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com
redirect "https://www.XXXXX.com/admin/index.php?r ... e6464e5be6"
If I try to access the admin page from either Microsoft Edge or Google Chrome, then I do in fact get the Admin page! WHY would Firefox not work? That is the browser that I use, as do millions of people.
I will have to recommend to the developers that they should make the option to move the storage to some other location an option and not a requirement. We should be able to place (or rename, which is what I do) the storage folder where ever we like.
As I suspected, the previous commit that I had installed was unfinished. There are already newer commits, so it is important for anyone testing (myself included) to realize that there could be an occasional commit that breaks something. I would suggest installing the latest commit and if something is broken, wait a day or 2 to see if there are other commits related to a particular issue. The code base is being updated frequently, so it is currently a moving target.
Have fun, OC 4 is getting better every day!
RGB World - FREE and Commercial Extensions
For custom work or support, please use our Contact Form or visit our Support Forum.
Favorite Quote: There are 10 types of people in the world. Those who understand binary and those who don't.
Users browsing this forum: DuckDuckGo [Bot] and 5 guests