I have upgraded to OC ver. 3.0.4.0 and after the upgrade i am unable to login my admin panel. Once entered the correct username/password the page just refreshes and the address bar updates to https.//MYDOMAINcom/admin/index.php?route=common/login&user_token=7pTQ76uKugGqEZldyIfBdoKWydBahVtj.
I have tried to find the solution in the forums, so i found three solution upto now:
1. viewtopic.php?t=217805
solution1: delete all contents (truncate oc_session) and created a primary key index for session_id
I didn't understand this one, although i have checked my session in php, it has several sessions, not sure what to do with them.
solution2: In phpmyadmin go to your oc_setting table and under the key column look for config_timezone, you can try setting the value back to UTC
i checked my setting table there is no config_timezone under it.
2. viewtopic.php?t=222369&start=60
solution3: configure the correct timezone: open the file system/config/default.php and specify the desired time zone instead of UTC in the line:
I have added the same timezone which was configured from admin panel, but it didn't work for me!
Please help!
Note: The username and password does not contain any special characters.
should be
https://
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
I have checked both OpenCart and PHP error logs, but this action (admin page refresh) is not triggering any new logs to the files. However if i switch to PHP ver. 8.0, bunch of logs appears for both OpencCart and PHP. I am on PHP 7.4 ver. currentlyADD Creative wrote: ↑Wed Dec 11, 2024 8:27 amHave you checked both your OpenCart and PHP error logs? Have you checked your web browsers developer tool for errors?
It is almost always better to do a new install rather than an upgrade.
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
htaccess file is disabled and all URLs are with https in admin/config.php. Enabling htaccess file also does not have any effect.ADD Creative wrote: ↑Wed Jan 22, 2025 9:23 pmAre your config.php and admin/config.php correct it regards to the URL and all being https. Do you have any redirects in your htaccess or hosting?
What do you exactly mean by new install? When i did the upgrade, basically i renamed all my previous folders (catalog, admin, system) to a different name and uploaded fresh copies of all these folders to my root directory. Only i have kept image folder and my config.php files
Fresh installdesignfuzon wrote: ↑Wed Jan 22, 2025 9:40 pmWhat do you exactly mean by new install? When i did the upgrade, basically i renamed all my previous folders (catalog, admin, system) to a different name and uploaded fresh copies of all these folders to my root directory. Only i have kept image folder and my config.php files
1. Back up your site files and database
2. Depending on your host and deal. Set up a development site either live or local.
3. Build OC3.0.x.x from scratch - install method on new database if necessary to keep old one - or hire a developer to assist.
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17
5. Install all the modifications / extension and use the error log to fix the errors.
You do not want your old config files and you can copy the images over afterward. OC will recreate the cached versions.
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
From what version did you "upgrade"?designfuzon wrote: ↑Wed Jan 22, 2025 9:40 pmWhat do you exactly mean by new install? When i did the upgrade, basically i renamed all my previous folders (catalog, admin, system) to a different name and uploaded fresh copies of all these folders to my root directory. Only i have kept image folder and my config.php files
And tell us more to this story... The way I read this, you just uploaded the files and didn't run the upgrade script?
Mike
cue4cheap not cheap quality
I will check this method. Do you think installing a fresh copy of OC ver. 4.1.0.0 in my situation would be a wise decision?by mona wrote: ↑Wed Jan 22, 2025 9:54 pmFresh installdesignfuzon wrote: ↑Wed Jan 22, 2025 9:40 pmWhat do you exactly mean by new install? When i did the upgrade, basically i renamed all my previous folders (catalog, admin, system) to a different name and uploaded fresh copies of all these folders to my root directory. Only i have kept image folder and my config.php files
1. Back up your site files and database
2. Depending on your host and deal. Set up a development site either live or local.
3. Build OC3.0.x.x from scratch - install method on new database if necessary to keep old one - or hire a developer to assist.
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site. https://www.opencart.com/index.php?rout ... sion_id=17
5. Install all the modifications / extension and use the error log to fix the errors.
You do not want your old config files and you can copy the images over afterward. OC will recreate the cached versions.
OC4 versions are still not suitable for production sites.
OC3.0.4.0 is tried and tested and works on php8.
Upgrading is not about the latest it is about the most stable and most secure.
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
I upgraded from version 3.0.2.0. Yes i have just uploaded the files and it automatically took me to the upgrade page after i entered mydomain.com/install.Cue4cheap wrote: ↑Wed Jan 22, 2025 9:56 pmFrom what version did you "upgrade"?designfuzon wrote: ↑Wed Jan 22, 2025 9:40 pmWhat do you exactly mean by new install? When i did the upgrade, basically i renamed all my previous folders (catalog, admin, system) to a different name and uploaded fresh copies of all these folders to my root directory. Only i have kept image folder and my config.php files
And tell us more to this story... The way I read this, you just uploaded the files and didn't run the upgrade script?
Mike
This method i have tried may be 3 or 4 times before, as it save times to backup the existing folders to local PC.
Just to be clear, the store front is working fine with all the products and categories, the only issue is with login.
Actually i followed your advice to upgrade to OC3.0.4.0, if you check this thread here
viewtopic.php?t=234822
But seems something went wrong during the upgrade! Now i am stuck on this login issue for both Admin and store front.
Secondly, i am not a developer, may be i know some basic skills to keep things going..
Generally yes, but do not copy the admin users or settings table.
Some of the settings table can be imported, but some are install specific - it is so easy to do those again anyway - especially if you keep your site live whilst you are doing it.
Most non-developers use JNeuhoff's import/export tool.
Extensions have to be reinstalled also once that is done you can copy over the data from the live site whilst you create your new faster, cleaner and updated store.
When you set up a new development site, add only your ip address to htaccess so only you can get to it. Then you get the time to get it right before your old site is replaced (and also any issues your host can revert to the old site).
As it is not live you can have all error logging so it is much quicker to fix.
Work methodically to collect all the extensions into a new folder on your PC. If you install them one by one you will see which support php8, which create errors and be able to fix the errors as they appear and you will know what and where to fix.
NOTE: After reviewing the previous post, your theme also may not be compatible with php8 or OC3.0.4.0, it is not a theme (from Opencart coding perspective) its a replacement.
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
Yes you are right, i think i did a mistake to do a upgrade rather doing a fresh install. I regret now! Anyways the main things i am looking for are products, categories, customers, orders and some custom information pages which i created like about us, delivery information etc. Modifications i don't need to be honest.by mona wrote: ↑Wed Jan 22, 2025 11:18 pmI never advise to "upgrade" always to reinstall - another very important point of a fresh install is clearing out any backdoors etc. and removing any excessive modifications that you dont need.
Generally yes, but do not copy the admin users or settings table.
Some of the settings table can be imported, but some are install specific - it is so easy to do those again anyway - especially if you keep your site live whilst you are doing it.
Most non-developers use JNeuhoff's import/export tool.
Extensions have to be reinstalled also once that is done you can copy over the data from the live site whilst you create your new faster, cleaner and updated store.
When you set up a new development site, add only your ip address to htaccess so only you can get to it. Then you get the time to get it right before your old site is replaced (and also any issues your host can revert to the old site).
As it is not live you can have all error logging so it is much quicker to fix.
Work methodically to collect all the extensions into a new folder on your PC. If you install them one by one you will see which support php8, which create errors and be able to fix the errors as they appear and you will know what and where to fix.
NOTE: After reviewing the previous post, your theme also may not be compatible with php8 or OC3.0.4.0, it is not a theme (from Opencart coding perspective) its a replacement.
Yes my previous theme was actually a replacement, i had to overwrite many core files to get it installed.
What i remember, my site had many extensions which i didn't even use for so long and i think it's the best time to go for a fresh install.
Things i am going to do:
1. Export the existing tables/rows using PhpMyAdmin for products, categories, customers, orders, etc.
2. Change PHP version to 8.0 from Cpanel
3. Delete (or rename) all existing OC core folders
4. Upload new folders/files to my root directory
5. Install with a new DB
6. After installation check front/back end for any abnormality.
7. Import one by one the required tables using PhpMyAdmin.
8. Check all data is normal.
Please let me know if i am still missing something.
Wish me luck!
Reset the password from database
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Users browsing this forum: Amazon [Bot] and 25 guests