Page 1 of 2

Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Tue Jan 14, 2025 6:31 pm
by oberheimer
I have started to upgrade, but now the Applying patches... are just loading.
Can someone help me out?

Re: Upgrading to 4.1 from 4.0.2.3?

Posted: Tue Jan 14, 2025 7:32 pm
by Hourglasss
oberheimer wrote:
Tue Jan 14, 2025 6:31 pm
I have started to upgrade, but now the Applying patches... are just loading.
Can someone help me out?
you mean this? Image


if so make sure to increase max upload etc in php.ini

Re: Upgrading to 4.1 from 4.0.2.3?

Posted: Tue Jan 14, 2025 7:51 pm
by oberheimer
Hourglasss wrote:
Tue Jan 14, 2025 7:32 pm
oberheimer wrote:
Tue Jan 14, 2025 6:31 pm
I have started to upgrade, but now the Applying patches... are just loading.
Can someone help me out?
you mean this? Image


if so make sure to increase max upload etc in php.ini
Image
Yes, that's what I meant. I will try increasing it and see if it helps.

I get a few errors

"
[14-Jan-2025 09:50:43 UTC] PHP Warning: require_once(/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in/system/vendor.php on line 9
[14-Jan-2025 09:50:43 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /system/vendor.php:9
Stack trace:
#0 /system/framework.php(8): require_once()
#1 /install/index.php(42): require_once('//...')
#2 {main}
thrown in /system/vendor.php on line 9
[14-Jan-2025 11:46:35 UTC] PHP Warning: require_once(/system/storage/vendor/aws/aws-sdk-php/src/functions.php): Failed to open stream: No such file or directory in /system/vendor.php on line 9
[14-Jan-2025 11:46:35 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/system/storage/vendor/aws/aws-sdk-php/src/functions.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /system/vendor.php:9
Stack trace:
#0 /system/framework.php(8): require_once()
#1 /install/index.php(42): require_once('/home/whgsmags/...')
#2 {main}
thrown in /system/vendor.php on line 9
"

Re: Upgrading to 4.1 from 4.0.2.3?

Posted: Tue Jan 14, 2025 8:58 pm
by oberheimer
It looks like it is looking for the storage folder under /system/ but it has moved
There was a similar error when I searched, and that was on line 6

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Fri Jan 17, 2025 6:41 pm
by hectorsolutions
Did you find any solutions with this?
I have the same issue. Ι Tried to update from 4.0.2.3 to 4.1. and stuck on "Applying patches..." for ever.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Fri Jan 17, 2025 7:06 pm
by oberheimer
No, not yet. I fixed all the errors I got in admin. It might be a bug in the update. I will continue to use opencart 4.0.2.3 for now.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Fri Jan 17, 2025 8:14 pm
by paulfeakins
oberheimer wrote:
Fri Jan 17, 2025 7:06 pm
No, not yet. I fixed all the errors I got in admin. It might be a bug in the update. I will continue to use opencart 4.0.2.3 for now.
You might be better off installing a fresh 4.1.0.0 and moving your data over.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Fri Jan 17, 2025 8:31 pm
by oberheimer
paulfeakins wrote:
Fri Jan 17, 2025 8:14 pm
oberheimer wrote:
Fri Jan 17, 2025 7:06 pm
No, not yet. I fixed all the errors I got in admin. It might be a bug in the update. I will continue to use opencart 4.0.2.3 for now.
You might be better off installing a fresh 4.1.0.0 and moving your data over.
Yes, I was thinking about that, but I might wait for 4.1.0.1
I use the stock theme, so it shouldn't be too hard. I have just changed some colors.
The buttons in 4.1 look wrong on the category pages, so that needs to be fixed first. It should look like 4.0.2.3

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Mon Jan 20, 2025 6:59 pm
by paulfeakins
oberheimer wrote:
Fri Jan 17, 2025 8:31 pm
I might wait for 4.1.0.1
Probably a good idea as we are aware of some bugs.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Mon Jan 20, 2025 9:27 pm
by JNeuhoff
oberheimer wrote:
Fri Jan 17, 2025 8:31 pm
I use the stock theme, so it shouldn't be too hard. I have just changed some colors.
The buttons in 4.1 look wrong on the category pages, so that needs to be fixed first. It should look like 4.0.2.3
The buttons on a OC 4.1.0.0 category page (List, Grid, Add to Cart, Add to Wish List, Compare this Product) look fine with the default theme.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Tue Jan 21, 2025 3:55 pm
by oberheimer
JNeuhoff wrote:
Mon Jan 20, 2025 9:27 pm
oberheimer wrote:
Fri Jan 17, 2025 8:31 pm
I use the stock theme, so it shouldn't be too hard. I have just changed some colors.
The buttons in 4.1 look wrong on the category pages, so that needs to be fixed first. It should look like 4.0.2.3
The buttons on a OC 4.1.0.0 category page (List, Grid, Add to Cart, Add to Wish List, Compare this Product) look fine with the default theme.
I meant these buttons

Image

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Wed Mar 19, 2025 5:53 pm
by ru-lefthanded
Any fix for this yet?? - MX O4 upgrade tool hasnt been updated recently so hoping that someone has found a way to upgrade from 4.02.3 to 4.1 without needing to start all over again with a fresh install of 4.1

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Wed Mar 19, 2025 7:53 pm
by paulfeakins
ru-lefthanded wrote:
Wed Mar 19, 2025 5:53 pm
Any fix for this yet?? - MX O4 upgrade tool hasnt been updated recently so hoping that someone has found a way to upgrade from 4.02.3 to 4.1 without needing to start all over again with a fresh install of 4.1
Really at this point non-developers should be using 3.0.4.0.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Wed Mar 19, 2025 11:48 pm
by Cue4cheap
paulfeakins wrote:
Wed Mar 19, 2025 7:53 pm
ru-lefthanded wrote:
Wed Mar 19, 2025 5:53 pm
Any fix for this yet?? - MX O4 upgrade tool hasnt been updated recently so hoping that someone has found a way to upgrade from 4.02.3 to 4.1 without needing to start all over again with a fresh install of 4.1
Really at this point non-developers should be using 3.0.4.0.
Well to be fair the upgrade doesn't work in that version from any lower version either.
Who knows why no one hasn't fixed the upgrade in any of the versions, or made a "how to" with a conversion chart that says use this tool for the products, categories, and customer accounts (ala export import tool), then for going from version X to Y you copy this table to this table with Z changes.
Mike

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Wed Mar 19, 2025 11:53 pm
by JNeuhoff
There is never going to be a perfect upgrade tool, simply because of too many poor quality extensions. Extensions don't even have built-in upgrades either, not even a simple version support checker.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Thu Mar 20, 2025 8:31 pm
by paulfeakins
Cue4cheap wrote:
Wed Mar 19, 2025 11:48 pm
Well to be fair the upgrade doesn't work in that version from any lower version either.
Generally it's best to start fresh and migrate the data.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Mon Mar 24, 2025 5:54 pm
by ru-lefthanded
paulfeakins wrote:
Thu Mar 20, 2025 8:31 pm
Cue4cheap wrote:
Wed Mar 19, 2025 11:48 pm
Well to be fair the upgrade doesn't work in that version from any lower version either.
Generally it's best to start fresh and migrate the data.
Whilst a fresh install may be best, it means that you have to go back & install all the extensions / language changes / etc - as well as re-keying any settings in extensions, copying customer / order / etc databases over - etc. etc ... All of which is time consuming and / or adds cost.

The 4.0 upgrade tool worked perfectly until 4.1 came along - which implies that something was changed (directory??) in 4.1 - if such a change is needed, then is it unreasonable to suggest that a viable workaround is created at the same time to ensure that upgrades can continue to be made simply & effectively.

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Mon Mar 24, 2025 6:24 pm
by paulfeakins
oberheimer wrote:
Fri Jan 17, 2025 8:31 pm
Yes, I was thinking about that, but I might wait for 4.1.0.1
It's out!

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Mon Mar 24, 2025 8:09 pm
by ru-lefthanded
So upgrade to 4.1.0.2 did indeed start now - got as far as doing patch 3 & then came up with
Error: Error: Duplicate entry '0' for key 'oc_setting.PRIMARY'
Error No: 1062
INSERT INTO `oc_setting` SET `key` = 'config_image_default_width', `value` = '300', `code` = 'config', `serialized` = '0', `store_id` = '0'
File: /home/customer/www/xxx/public_html/system/library/db/mysqli.php Line: 122 Backtrace: 0 File: /home/customer/www/xxx/public_html/system/library/db.php Line: 54 Class: Opencart\System\Library\DB\MySQLi Function: query Backtrace: 1 File: /home/customer/www/xxx/public_html/install/controller/upgrade/upgrade_4.php Line: 373 Class: Opencart\System\Library\DB Function: query Backtrace: 2 File: /home/customer/www/xxx/public_html/system/engine/action.php Line: 96 Class: Opencart\Install\Controller\Upgrade\Upgrade4 Function: index Backtrace: 3 File: /home/customer/www/xxx/public_html/system/framework.php Line: 259 Class: Opencart\System\Engine\Action Function: execute Backtrace: 4 File: /home/customer/www/xxx/public_html/install/index.php Line: 42 Function: require_once

Is the "INSERT INTO" telling me what the issue is or how to fix it?? - if the latter, it just reproduced the error! - either way... how do I fix?

Re: Upgrading to 4.1 from 4.0.2.3, Error line 9

Posted: Tue Mar 25, 2025 4:27 pm
by Hourglasss
Im having issues updating to latest version to, from Version 4.1.0.0 to 4.1.0.3

it keeps getting stuck at patch 6 out of 11 it also ungrays the continue button for some rreason:

Image