Closed FabiGjuzi closed 6 years ago
None of the above worked for me.
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.
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