Page 1 of 1

Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Tue Oct 11, 2022 7:07 am
by clivejo
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?

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Tue Oct 11, 2022 9:38 pm
by ADD Creative
Could be your PHP version or an issue with your PHP zip extension.

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Sat Nov 12, 2022 6:26 pm
by soydemadrid
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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Sat Nov 12, 2022 6:32 pm
by ADD Creative
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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Wed Apr 19, 2023 10:31 pm
by shobu
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..."

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Thu Apr 20, 2023 1:24 am
by motofox
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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Thu Apr 20, 2023 8:23 am
by straightlight
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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

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

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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Fri Apr 21, 2023 2:29 am
by straightlight
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.

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Fri Apr 21, 2023 8:48 pm
by motofox
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

Re: Upgrade 4.0.0.0 to 4.0.1.1 gets stuck at "Copying files"

Posted: Fri Apr 21, 2023 11:13 pm
by straightlight
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.