Update to 8.6.1 aborts with Critical Error Attempted to load "ZipArchive"

Im assuming a php misconfiguration, but have been unable to fix. Error below

Note. This was run on a copy of SuiteCRM.

Install log as follows.
“”"
suitecrm:app:upgrade [-t|–target-version TARGET-VERSION]

root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm#
root@VM-Mint:/var/www/html/suitecrm# ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.6.1
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 134
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Attribute/AttributeBag.php on line 144
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Session::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 131
PHP Deprecated: Return type of Symfony\Component\HttpFoundation\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/suitecrm/vendor/symfony/http-foundation/Session/Session.php on line 141

SuiteCRM Upgrade

Running: backup-original-modules
step: backup-original-modules | status: done
Successfully backed up files
Running: check-package
step: check-package | status: done
Package found in path
Running: extract-package
17:31:49 CRITICAL [console] Error thrown while running command “suitecrm:app:upgrade -t ‘SuiteCRM-8.6.1’”. Message: “Class “ZipArchive” not found” [“exception” => Error { …},“command” => “suitecrm:app:upgrade -t ‘SuiteCRM-8.6.1’”,“message” => “Class “ZipArchive” not found”]

In PackageHandler.php line 67:

Attempted to load class “ZipArchive” from the global namespace.
Did you forget a “use” statement?

suitecrm:app:upgrade [-t|–target-version TARGET-VERSION]

root@VM-Mint:/var/www/html/suitecrm#
“”"

Pointers would be much appreciated…

My file was different, check your spelling and capitalization.

suitecrm-8-6-1

The php zip module is not installed or enabled.
Do you see it in the list when you run this?
php -m

To install and enable it on Mint (debian), try these commands:

sudo apt install php-zip
sudo apt install php8.2-zip
sudo apt install php-pecl-zip
sudo pecl install zip
sudo phpenmod zip
1 Like

Hello Larry,

once the environment is ready, the upgrade works ok.
But I had some issues with the lower / upper case of the docs.

Check out my video, to see if it helps:

Thank you for the suggestions, Sorry for delay. I’m having major computer issues, it may take a while to show it who is the boss.

1 Like

In attempting to fix hardware and subsequent issues I managed to trash the entire system, backups and all. That will teach me to work when tired. Luckily it wasnt a production system., and I should be able to duplicate…