-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Error with zip #965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi again, If you change zip engine, it seems like you run many times and it doesn't break I make this exchange in the configuration Settings::setZipClass( 'PclZip' ); but file.docx is corrupt Thanks. |
More info... I write in ZipArchive.php, method Close() (+-line 162) the next:
Then execute and this is the output
The code is based in samples -> Sample_07_TemplateCloneRow.php
Finally i tried with phpword.ini
I read this issues but i can not find the correct solution... Ideas, suggestions, help, please? Carles. |
Hi there, I just had the problem. Simply change rights to the folder was successfully. |
@florianp-dev which folder rights needs to be changed for? /tmp? |
Got this error when trying to open a .doc and not .docx (only open docx!) |
any updates ? |
before this i run my application on php 7.4 but using php 8 to install this library. |
Hi Masters,
Many times, if you repeat and repeat the program (for exemple with F5), the system gives an error message that can not close the temporary file.
The following message appears on the screen:
Fatal error: Uncaught exception 'PhpOffice\PhpWord\Exception\Exception' with message 'Could not close zip file C:\Users\songoku\AppData\Local\Temp\Php9D8B.tmp.' in C:\xampp\htdocs\z\doc\src\PhpWord\Shared\ZipArchive.php:163 Stack trace: #0 C:\xampp\htdocs\z\doc\src\PhpWord\TemplateProcessor.php(412): PhpOffice\PhpWord\Shared\ZipArchive->close() #1 C:\xampp\htdocs\z\doc\src\PhpWord\TemplateProcessor.php(430): PhpOffice\PhpWord\TemplateProcessor->save() #2 C:\xampp\htdocs\z\doc\S07c.php(63): PhpOffice\PhpWord\TemplateProcessor->saveAs('reporting/outpu...') #3 {main} thrown in C:\xampp\htdocs\z\doc\src\PhpWord\Shared\ZipArchive.php on line 163
Any idea how I can solve this situation ?
Thanks for you help.
Carles
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: