xlsx not getting generated while running test code..

Topics: Developer Forum
Nov 8, 2011 at 6:12 AM

while executing the http://code.google.com/p/gschooloa/source/browse/trunk/Tests/01simple.php?r=2  sample code given in test folder of php excel im getting following error

 

 

06:08:50 Create new PHPExcel object 06:08:50 Set properties 06:08:50 Add some data 06:08:50 Rename sheet 06:08:50 Write to Excel2007 format

Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file /abc.xlsx.' in /var/www/Classes/PHPExcel/Writer/Excel2007.php:346 Stack trace: #0 /var/www/Tests/01simple.php(77): PHPExcel_Writer_Excel2007->save('/abc.xlsx') #1 {main} thrown in /var/www/Classes/PHPExcel/Writer/Excel2007.php on line 346 

 

 

other details: 

Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty

PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May  2 2011 23:18:30) Copyright (c) 1997-2009 The PHP GroupZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

 

Pls help...

 

Nov 9, 2011 at 10:30 AM

Your script have rights to write in '/' ?