php - PHPExcel Writter Excel2007 -


i using phpexcel lib generating excel file of table of mysql database. m getting fatal error when call function excel generation. error comming given below.

 fatal error: uncaught exception 'exception'  message 'could not close zip file dfeefxmevtunsbkoeptpydyiysengrqi.xlsx.'  in /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/core/lib/phpexcel/writer/excel2007.php:337   stack trace:  #0 /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/core/lib/class.iexportmodule.php(81): phpexcel_writer_excel2007->save('dfeefxmevtunsbk...')  #1 /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/core/lib/class.exportmodule_lang.php(59): iexportmodule->_download_excel2007()  #2 /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/controllers/export.get.create.php(12): exportmodule_lang->export()  #3 /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/export.php(17): require_once('/home/testcente...')  #4 {main} thrown in /home/testcente2/domains/topcats-backend-testcenter.nl/public_html/dev/core/lib/phpexcel/writer/excel2007.php on line 337 

hello friends please tell me why error occurred , how can fix error?

from phpexcel reference

requirements

  • php version 5.2.0 or higher
  • php extension php_zip enabled **
  • php extension php_xml enabled
  • php extension php_gd2 enabled (if not compiled in)

all part of php package (zip) on http://www.php.net/downloads.php, should enabled in php.ini

** php_zip needed phpexcel_reader_excel2007, phpexcel_writer_excel2007, phpexcel_reader_oocalc. in other words, if need phpexcel handle .xlsx or .ods files need zip extension, otherwise not.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -