Post by clivejo » Tue Oct 11, 2022 7:07 am

When I click the Upgrade button from admin interface, the process seems to get stuck on "Copying files..." It doesn't show any error messages or progress any further no matter how long I leave it.

Only entry in error logs is:

Code: Select all

Error:  Undefined constant ZipArchive::RDONLY
File: /admin/controller/tool/upgrade.php
Line: 155
Anyone shed some light on what is wrong?

Newbie

Posts

Joined
Mon Jun 06, 2022 4:22 am

Post by ADD Creative » Tue Oct 11, 2022 9:38 pm

Could be your PHP version or an issue with your PHP zip extension.

www.add-creative.co.uk


Guru Member

Posts

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

Post by soydemadrid » Sat Nov 12, 2022 6:26 pm

Hi have the exact same problem. Here is the error in my logs:

2022-11-12 10:11:01 - TypeError: dirname(): Argument #2 ($levels) must be of type int, string given
File: /public_html/admin/controller/tool/upgrade.php
Line: 171

New member

Posts

Joined
Thu May 07, 2015 3:03 pm

Post by ADD Creative » Sat Nov 12, 2022 6:32 pm

soydemadrid wrote:
Sat Nov 12, 2022 6:26 pm
Hi have the exact same problem. Here is the error in my logs:

2022-11-12 10:11:01 - TypeError: dirname(): Argument #2 ($levels) must be of type int, string given
File: /public_html/admin/controller/tool/upgrade.php
Line: 171
Looks like a bug. See. https://github.com/opencart/opencart/pull/11605

www.add-creative.co.uk


Guru Member

Posts

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

Post by shobu » Wed Apr 19, 2023 10:31 pm

I have the same problem trying to upgrade from 4.0.1.1 to 4.0.2.1 gets stuck at "Copying files", i manually change the line
$directories = explode('/', dirname($destination, '/')); to
$directories = explode('/', dirname($destination));
and now i am stuck on "Apply patches..."

Newbie

Posts

Joined
Sun Aug 31, 2014 3:56 pm

Post by motofox » Thu Apr 20, 2023 1:24 am

Same problem, trying to auto upgrade from within the admin panel from 4.0.1.1 to 4.0.2.1 just says copying files and never changes and no update

New member

Posts

Joined
Wed Nov 19, 2014 10:44 pm

Post by straightlight » Thu Apr 20, 2023 8:23 am

motofox wrote:
Thu Apr 20, 2023 1:24 am
Same problem, trying to auto upgrade from within the admin panel from 4.0.1.1 to 4.0.2.1 just says copying files and never changes and no update
viewtopic.php?t=230640#p856250

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by alexgthess » Thu Apr 20, 2023 11:24 pm

the automatic upgrade via admin panel stucks at Copying files...

and manually upgrade via ftp stucks at patch 2 of 9 ....

Attachments

Firefox_Screenshot_2023-04-20T15-19-29.400Z.png

Firefox_Screenshot_2023-04-20T15-19-29.400Z.png (12.93 KiB) Viewed 2081 times


Newbie

Posts

Joined
Sat Apr 11, 2015 6:20 pm

Post by straightlight » Fri Apr 21, 2023 2:29 am

alexgthess wrote:
Thu Apr 20, 2023 11:24 pm
the automatic upgrade via admin panel stucks at Copying files...

and manually upgrade via ftp stucks at patch 2 of 9 ....
See with the latest modifications of OC 4, not the previouses.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by motofox » Fri Apr 21, 2023 8:48 pm

straightlight wrote:
Thu Apr 20, 2023 8:23 am
motofox wrote:
Thu Apr 20, 2023 1:24 am
Same problem, trying to auto upgrade from within the admin panel from 4.0.1.1 to 4.0.2.1 just says copying files and never changes and no update
viewtopic.php?t=230640#p856250

fair enough, but if no one ever uses it then no bugs will ever be found.

opencart 4.0.1.1 is working great for me other than the auto upgrade. my installation is very basic however

New member

Posts

Joined
Wed Nov 19, 2014 10:44 pm

Post by straightlight » Fri Apr 21, 2023 11:13 pm

motofox wrote:
Fri Apr 21, 2023 8:48 pm
straightlight wrote:
Thu Apr 20, 2023 8:23 am
motofox wrote:
Thu Apr 20, 2023 1:24 am
Same problem, trying to auto upgrade from within the admin panel from 4.0.1.1 to 4.0.2.1 just says copying files and never changes and no update
viewtopic.php?t=230640#p856250

fair enough, but if no one ever uses it then no bugs will ever be found.

opencart 4.0.1.1 is working great for me other than the auto upgrade. my installation is very basic however
As it has been like this since pretty much the beginning of time, it is also why we encourage people to address new issues from latest releases on the Github Opencart repository.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: SohBH and 2 guests