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

PHP7 - PHPexcel export issue #1268

Closed
ghost opened this issue Jul 24, 2017 · 3 comments
Closed

PHP7 - PHPexcel export issue #1268

ghost opened this issue Jul 24, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 24, 2017

Notice: Undefined variable: zipClass in /var/www/vhost/timesheet.grazitti.com/html/PHPExcel/Writer/Excel2007.php on line 227
--
 
Fatal error: Uncaught Error: Class name must be a valid object or a string in /var/www/vhost/timesheet.grazitti.com/html/PHPExcel/Writer/Excel2007.php:227 Stack trace: #0 /var/www/vhost/timesheet.grazitti.com/html/admin_report_specific_user.php(764): PHPExcel_Writer_Excel2007->save('/tmp/phpxltmpF0...') #1 {main} thrown in /var/www/vhost/timesheet.grazitti.com/html/PHPExcel/Writer/Excel2007.php on line 227

I am getting this issue. Please let me know solution and i am using 1.8.1 version.

@PowerKiKi
Copy link
Member

You are not using the official PHPExcel 1.8.1, because the variable $zipClass cannot be undefined at that line. See the code for yourself there.

Upgrade to PHPExcel 1.8.1.

@ghost
Copy link
Author

ghost commented Jul 25, 2017

Now i have used same Upgrade to PHPExcel 1.8.1. code which u have send me link. I am getting following error.

Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/vhost/timesheet.grazitti.com/html/PHPExcel/Writer/Excel2007.php:227 Stack trace: #0 /var/www/vhost/timesheet.grazitti.com/html/admin_report_specific_user.php(765): PHPExcel_Writer_Excel2007->save('/tmp/phpxltmpr3...') #1 {main} thrown in /var/www/vhost/timesheet.grazitti.com/html/PHPExcel/Writer/Excel2007.php on line 227

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

1 participant