Post by designfuzon » Tue Dec 10, 2024 5:54 am

Hi,
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.
Last edited by designfuzon on Wed Jan 22, 2025 9:01 pm, edited 1 time in total.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by IP_CAM » Tue Dec 10, 2024 7:18 pm

https.//
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by ADD Creative » Wed Dec 11, 2024 8:27 am

Have you checked both your OpenCart and PHP error logs? Have you checked your web browsers developer tool for errors?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by designfuzon » Wed Jan 22, 2025 9:03 pm

ADD Creative wrote:
Wed Dec 11, 2024 8:27 am
Have you checked both your OpenCart and PHP error logs? Have you checked your web browsers developer tool for errors?
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. currently

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by by mona » Wed Jan 22, 2025 9:21 pm

Not all your extensions will be compatible with php8

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ADD Creative » Wed Jan 22, 2025 9:23 pm

Are 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?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by designfuzon » Wed Jan 22, 2025 9:37 pm

ADD Creative wrote:
Wed Jan 22, 2025 9:23 pm
Are 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?
htaccess file is disabled and all URLs are with https in admin/config.php. Enabling htaccess file also does not have any effect.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Jan 22, 2025 9:40 pm

by mona wrote:
Wed Jan 22, 2025 9:21 pm
Not all your extensions will be compatible with php8

It is almost always better to do a new install rather than an upgrade.
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

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Jan 22, 2025 9:42 pm

i just found out, the issue is same if i try to login my store front as a customer! :(

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by by mona » Wed Jan 22, 2025 9:54 pm

designfuzon wrote:
Wed Jan 22, 2025 9:40 pm
by mona wrote:
Wed Jan 22, 2025 9:21 pm
Not all your extensions will be compatible with php8

It is almost always better to do a new install rather than an upgrade.
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 install

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.
Last edited by by mona on Wed Jan 22, 2025 9:56 pm, edited 1 time in total.

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Cue4cheap » Wed Jan 22, 2025 9:56 pm

designfuzon wrote:
Wed Jan 22, 2025 9:40 pm
by mona wrote:
Wed Jan 22, 2025 9:21 pm
Not all your extensions will be compatible with php8

It is almost always better to do a new install rather than an upgrade.
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
From what version did you "upgrade"?
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


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by designfuzon » Wed Jan 22, 2025 9:59 pm

by mona wrote:
Wed Jan 22, 2025 9:54 pm
designfuzon wrote:
Wed Jan 22, 2025 9:40 pm
by mona wrote:
Wed Jan 22, 2025 9:21 pm
Not all your extensions will be compatible with php8

It is almost always better to do a new install rather than an upgrade.
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 install

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.
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?

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by by mona » Wed Jan 22, 2025 10:02 pm

A RESOUNDING NO !!

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by designfuzon » Wed Jan 22, 2025 10:09 pm

Cue4cheap wrote:
Wed Jan 22, 2025 9:56 pm
designfuzon wrote:
Wed Jan 22, 2025 9:40 pm
by mona wrote:
Wed Jan 22, 2025 9:21 pm
Not all your extensions will be compatible with php8

It is almost always better to do a new install rather than an upgrade.
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
From what version did you "upgrade"?
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
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.
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.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Jan 22, 2025 10:14 pm

by mona wrote:
Wed Jan 22, 2025 10:02 pm
A RESOUNDING NO !!

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.
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..

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by designfuzon » Wed Jan 22, 2025 10:44 pm

if i fresh install OC 3.0.4.0 with a new DB, and export the required tables from previous DB and import them to new DB, will it work? or there is something i am missing?

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by by mona » Wed Jan 22, 2025 11:18 pm

I 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.

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by designfuzon » Wed Jan 22, 2025 11:57 pm

by mona wrote:
Wed Jan 22, 2025 11:18 pm
I 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 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.

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!

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm

Post by xxvirusxx » Thu Jan 23, 2025 4:12 pm

designfuzon wrote:
Wed Jan 22, 2025 10:09 pm
the only issue is with login.
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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by designfuzon » Thu Jan 23, 2025 7:52 pm

xxvirusxx wrote:
Thu Jan 23, 2025 4:12 pm
designfuzon wrote:
Wed Jan 22, 2025 10:09 pm
the only issue is with login.
Reset the password from database
its not about password, the login page is in refresh loop for both front end/back end.

New member

Posts

Joined
Fri Aug 28, 2015 7:42 pm
Who is online

Users browsing this forum: Amazon [Bot] and 25 guests