Excel Export ZipArchive class error

QuestionsExcel Export ZipArchive class error
Andrés Zuleta asked 4 years ago

Hi,

Thank you for your tool.

Could you please give me a hand with this error:

I am trying to export a grid but I am getting this message: “Class ‘ZipArchive’ not found in /home/xxxxx/public_html/xxx/xxxxxx/phpgrid/lib/inc/excel/PHPExcel/Writer/Excel2007.php on line 227

Thank you!!!

https://imgur.com/a/NLVC7oc

1 Answers
Abu answered 4 years ago

Pasting from faq:

Q) How to can i resolve: Class ‘ZipArchive’ not found?

On blank export and on checking error_log if you see
“PHP Fatal error:  Class ‘ZipArchive’ not found in /home/user/public_html/phpgrid/lib/inc/excel/PHPExcel/Writer/Excel2007.php on line 225”

There are 2 options for fix.

First is it to install zip php extension that is required by phpexcel library.
Other one is to rename ‘PHPExcel’ folder in <phpgrid>/lib/inc/excel/ with ‘_PHPExcel’

If this path is not found, our system uses older excel exporting library which might work without zip extension.

Your Answer

1 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?