Skip to content
Code and Bytes Code and Bytes

Code and Bytes
Code and Bytes

PHPExcel: Uncaught exception ‘Exception’ with message ‘Could not close zip file

Posted on 18 November, 20125 April, 2014

Empezando a usar la libreria PHPExcel me encontré con el siguiente problema:

15:45:52 Create new PHPExcel object
15:45:52 Set document properties
15:45:52 Add some data
15:45:52 Rename worksheet
15:45:52 Write to Excel2007 format
Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file /var/www/osmon/scripts/gui/hotspot/final/Tests/01simple.xlsx.' in /var/www/osmon/scripts/gui/hotspot/final/Classes/PHPExcel/Writer/Excel2007.php:378 Stack trace: #0 /var/www/osmon/scripts/gui/hotspot/final/Tests/01simple.php(80): PHPExcel_Writer_Excel2007->save('/var/www/osm...' #1 {main} thrown in /var/www/osmon/scripts/gui/hotspot/final/Classes/PHPExcel/Writer/Excel2007.php on line 378

La solución al problema es tan simple como asignar permisos de escritura a la carpeta Tests en la cual se va a escribir (guardar) el archivo de excel.

Otras posibles razones de este error son:
1. El directorio donde se desea guardar no existe.
2. El archivo se encuentra abierto por otra aplicación.

Linux PHP linuxphpphpexcel

Post navigation

Previous post
Next post

Related Posts

Error al instalar Wine: The following signatures couldn’t be verified because the public key is not available

Posted on 17 January, 2020

Cuando ejecutamos sudo apt-get update aparece el error: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F W:…

Read More

Solución: apache2 could not open error log file /var/log/apache2/error.log

Posted on 3 March, 201323 December, 2014

Si al tratar de subir el servicio apache2 aparece este mensaje: Starting web server: apache2(2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log. Unable to open logs Action ‘start’ failed. The Apache error log may have more information. failed!

Read More

Powerbi: Host is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’

Posted on 26 February, 20189 April, 2020

Powerbi muestra el error Host ‘host_name‘ is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’ luego de solicitar la actualización. La solución es cambiar el valor predeterminado el cual es 10 SET GLOBAL max_connect_errors=10000; Para consultar el cambio: show variables like “max_connect_errors”;

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Buscar

Categorias

  • AI (2)
  • Asterisk (9)
  • Bases de datos (1)
  • DevOps (4)
  • Git (2)
  • HTML (1)
  • Laravel (6)
  • Linux (67)
  • MCP Server (1)
  • Mikrotik (3)
  • MySQL (5)
  • n8n (1)
  • Personal (4)
  • PHP (15)
  • Python (2)
  • Software recomendado (1)
  • Tips (1)
  • VSCode (4)
  • vTiger (4)
  • Windows (10)
  • Wordpress (4)
©2026 Code and Bytes | WordPress Theme by SuperbThemes