Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Class 'ZipArchive' not found #1342

Closed
FabiGjuzi opened this issue Nov 1, 2017 · 3 comments
Closed

Class 'ZipArchive' not found #1342

FabiGjuzi opened this issue Nov 1, 2017 · 3 comments

Comments

@FabiGjuzi
Copy link

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/html/PHPExcel-1.8/Classes/PHPExcel/Writer/Excel2007.php:220 Stack trace: #0 /var/www/html/PHPExcel-1.8/Examples/33chartcreate-stock.php(142): PHPExcel_Writer_Excel2007->save('/var/www/html/P...') #1 {main} thrown in /var/www/html/PHPExcel-1.8/Classes/PHPExcel/Writer/Excel2007.php on line 220

@FabiGjuzi
Copy link
Author

None of the above worked for me.

@rupsk1607
Copy link

You have to add below code in phpexcel/Classes/PHPExcel.php
PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP);

note: we should keep library dependent class on the same folder where the library is located, in this case on phpexcel folder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants