Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Error: Class 'ZipArchive' not found #10

Open
ergonlogic opened this issue Sep 26, 2017 · 2 comments
Open

Error: Class 'ZipArchive' not found #10

ergonlogic opened this issue Sep 26, 2017 · 2 comments

Comments

@ergonlogic
Copy link

The full error is:

Error: Class 'ZipArchive' not found in PHPExcel_Writer_Excel2007->save() (line 227 of /var/aegir/platforms/demtools-civicrm-dev-20170926/sites/all/modules/contrib/civicrm/extensions/ca.bidon.civiexportexcel/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php).

It looks likely that this is just a missing PHP extension. Digging into the upstream project that's in use here, they do document some PHP extensions as requirements: https://github.com/PHPOffice/PHPExcel#requirements

So, this looks like simply a documentation issue.

@ergonlogic
Copy link
Author

It looks like this was sufficient to resolve this issue:

sudo apt install php-zip
sudo service apache2 restart

@mattwire
Copy link

mattwire commented Sep 26, 2017 via email

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

2 participants