Post by jwestlake » Tue Nov 08, 2022 4:18 am

Hi all,

It's been quite a while since I upgraded, mainly due to the fact that every time I try, it fails for some reason or another. So, I've tried yet again to go to the latest version 4.0.1.1. Our store is fairly simple, I have a dark theme installed (which I changed back to default before proceeding), maybe one or two other mods.

I successfully uploaded all the files, went to the /install URL, got the expected Upgrade page. When I click the "Upgrade" button, I get these warnings in the console and nothing else happens:

Code: Select all

<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/demo): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/demo): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2014-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2014-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2015-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2015-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/Banners): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/Banners): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2018-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2018-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2017-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2017-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2019-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2019-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2012-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2012-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2013-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography/2013-Calendar): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data/astrophotography): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>414</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>419</b>
<b>Warning</b>: unlink(/home/trlblzr/mystore.mytest.com/image/data): Is a directory in <b>/home/trlblzr/mystore.mytest.com/install/controller/upgrade/upgrade_1.php</b> on line <b>318</b>{"text":"Patch 1 has been applied (1 of 8)","next":"https:\/\/mystore.mytest.com\/install\/index.php?route=upgrade\/upgrade_2"}
Any ideas? Looking at the referenced php file, it's in this section where the warnings come from:

Code: Select all

 foreach ($i as $f) {
                        if ($f->isFile() && !file_exists("$dest/" . $f->getFilename())) {
                                @rename($f->getRealPath(), "$dest/" . $f->getFilename());
                        } elseif (!$f->isDot() && $f->isDir()) {
                                $this->recursive_move($f->getRealPath(), "$dest/$f");

                                @unlink($f->getRealPath());
                        }
                }
Many thanks in advance!

jw

Newbie

Posts

Joined
Sat Jun 02, 2012 12:54 am

Post by by mona » Tue Nov 08, 2022 4:58 am

Upgrade to OC 3

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 jwestlake » Tue Nov 08, 2022 5:07 am

by mona wrote:
Tue Nov 08, 2022 4:58 am
Upgrade to OC 3
3 first then 4, or are you saying stick with 3?

Newbie

Posts

Joined
Sat Jun 02, 2012 12:54 am

Post by by mona » Tue Nov 08, 2022 5:13 am

stick with 3 since 4 is not advisable for production yet

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 jwestlake » Tue Nov 08, 2022 6:12 am

by mona wrote:
Tue Nov 08, 2022 5:13 am
stick with 3 since 4 is not advisable for production yet
10-4, thanks for the info. I’ll go with the the latest 3.x.

Newbie

Posts

Joined
Sat Jun 02, 2012 12:54 am

Post by johnp » Tue Nov 08, 2022 6:24 am

+1 for version 3.

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 15 guests