Uncaught exception 'Exception' with message 'Could not close zip

Topics: Developer Forum, User Forum
Feb 23, 2011 at 3:48 PM

Iám getting the error below...?

[Wed Feb 23 16:46:18 2011] [error] [client IP-Adres] PHP Fatal error:  Uncaught exception 'Exception' with message 'Could not close zip file /var/www/html/Tests/05featuredemo.xlsx.' in /var/www/html/Classes/PHPExcel/Writer/Excel2007.php:344\nStack trace:\n#0 /var/www/html/Tests/05featuredemo.php(42): PHPExcel_Writer_Excel2007->save('/var/www/html/T...')\n#1 {main}\n  thrown in /var/www/html/Classes/PHPExcel/Writer/Excel2007.php on line 344, referer: http://IP-Adres/Tests/

Coordinator
Feb 24, 2011 at 10:19 PM

Generally this means one of 3 things:

  1. The directory where you're trying to save the file doesn't exist
  2. The directory/file has permissions that preclude you from writing to it
  3. The file is already open in some other application, or has a lock on it

 

Mar 2, 2011 at 7:53 AM

It was the write rights of the directory that where wrong. thanks for the reply

Jun 5, 2014 at 8:30 PM
Edited Jun 5, 2014 at 8:31 PM
For anyone looking for this error who isn't helped by the above suggestions, check one more thing:

'4. The drive where you're trying to save the file is full.'

That would have saved me a headache of a morning :)