Jump to content

ArgumentCountError when using 1-click Upgrade 8.0.3 -> 8.0.4


WebWeber

Recommended Posts

When I try to upgrade from 8.0.3 to 8.0.4 with 1-Click Upgrade 4.15 it crashes every time during backup.

[INTERNAL] /var/www/vhosts/mysite/modules/autoupgrade/classes/UpgradeTools/Translator.php line 90 - ArgumentCountError: 2 arguments are required, 1 given #0 [internal function]: sprintf('var/cache.old/d...') #1 /var/www/vhosts/mysite/modules/autoupgrade/classes/UpgradeTools/Translator.php(90): call_user_func_array('sprintf', Array) #2 /var/www/vhosts/mysite/modules/autoupgrade/classes/UpgradeTools/Translator.php(68): PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator->applyParameters('var/cache.old/d...', Array) #3 /var/www/vhosts/mysite/modules/autoupgrade/classes/ZipAction.php(107): PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator->trans('%filename% adde...', Array, 'Modules.Autoupg...') #4 /var/www/vhosts/mysite/modules/autoupgrade/classes/TaskRunner/Upgrade/BackupFiles.php(80): PrestaShop\Module\AutoUpgrade\ZipAction->compress(Array, '/var/www/vhosts...') #5 /var/www/vhosts/mysite/admin617r465gf/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\BackupFiles->run() #6 {main}

 

Quote

Serverdaten Linux #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

PHP-Version 8.0.28

Memorylimit 512M

max_execution_time: 180

Upload (max. filesize) 128M

info_outline database

MySQL-Version 8.0.33

MySQL-Server 10.35.46.17

 

Edited by WebWeber (see edit history)
Link to comment
Share on other sites

I have found a solution that works,

 

just comment the lines 101-108 of ZipAction.php, it's only log information. 

 

/modules/autoupgrade/classes/ZipAction.php

            /*$this->logger->debug($this->translator->trans(
                '%filename% added to archive. %filescount% files left.',
                [
                    '%filename%' => $archiveFilename,
                    '%filescount%' => count($filesList),
                ],
                'Modules.Autoupgrade.Admin'
            ));*/

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...