Jump to content

Classes ZipArchive


Recommended Posts

Bonjour,

 

J'essai de faire l'installation de Prestashop mais il m'indique l'erreur suivante:

 

Fatal error: Class 'ZipArchive' not found in /var/www/vhosts/.../.../classes/Language.php on line 996.

 

J'ai vérifié avec mon hébergeur et il me confirme que mon extension ZipArchive est activé.

 

Avez-vous une solution à ce sujet?

  • Like 1
Link to comment
Share on other sites

Bonjour

 

J'ai un problème similaire lors de l'installation:

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /www/prestashop_1700/classes/Language.php:996

 

 

J'utilise Ubuntu 16.10 et php PHP Version 7.0.12-1+deb.sury.org~xenial+1, c'est à dire les dernières versions disponibles.

Je ne peux pas installer le paquet php7.0-zip car il y a un problème de dépendance avec la version de PHP.

 

Je ne peux donc pas installer Prestashop 1.7 en l'état.

 

Merci pour votre éclairage

Link to comment
Share on other sites

Thanks for you answer.

 

sudo apt-get install php7.0-zip

Returns an error:

 php7.0-zip : Dépend: php7.0-common (= 7.0.8-3ubuntu3) mais 7.0.12-1+deb.sury.org~xenial+1 devra être installé

 

php 7.0.12 is install on my server, but php7.0-zip is compatible with php 7.0.8.

 

So I have to force the package installation:
 

Download packages php7.0-zip, libzip4:

$ aptitude download libzip4

$ aptitude download php7.0-zip

 

Install these packages:

$ sudo dpkg -i --force-all libzip4_1.1.2-1.1_amd64.deb

$ sudo dpkg -i --force-all php7.0-zip_7.0.8-3ubuntu3_amd64.deb

 

It now works :)

Link to comment
Share on other sites

  • 7 months later...

Having same issue !!!

I have cPanel access 

[PrestaShop] Fatal error in module file :/home/safiedsa/public_html/..../modules/agilekernel/classes/AgileZipper.php:
Class 'ZipArchive' not found

So far tried ( PS 1.6.1.12 )

1) Installed and Tested ZipArchive by server people. So its already enabled

Any solution ?

 

Edited by Viral.w3nuts (see edit history)
Link to comment
Share on other sites

You should contact the author of the agilekernel module directly for support to find out what the module requirements are.  Then make sure your hosting environment has those requirements met.

 

If the module requires the ZipArchive extension, and you continue to receive the "Class 'ZipArchive' not found" error, then your hosting provider has not properly configured PHP

http://www.php.net/manual/en/book.zip.php

http://www.php.net/manual/en/zip.installation.php

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...