I am trying integrating old PHP project into Laravel v10 and using PHPWord v1.2.
I have PHPWord v0.17 in old project and using TemplateProcessor without any problem and creating all my Word files (5 to 20 files depending criteria) successfully, but while integrating to Laravel + PHPWord v1.2 I am getting error "ZipArchive::close(): Renaming temporary file failed: Permission denied{ "message": "Invalid or uninitialized Zip object"," for some files and it fails to create files randomly and sometimes it works correctly without any issue. I know the template file is ok and can be opened without any issue and works in old project.
Here is the function i use for teh templating, I call it for each file i need to create with an order.
Hi all,
I am trying integrating old PHP project into Laravel v10 and using PHPWord v1.2.
I have PHPWord v0.17 in old project and using TemplateProcessor without any problem and creating all my Word files (5 to 20 files depending criteria) successfully, but while integrating to Laravel + PHPWord v1.2 I am getting error "
ZipArchive::close(): Renaming temporary file failed: Permission denied{ "message": "Invalid or uninitialized Zip object",
" for some files and it fails to create files randomly and sometimes it works correctly without any issue. I know the template file is ok and can be opened without any issue and works in old project.Here is the function i use for teh templating, I call it for each file i need to create with an order.
Any help appreciated to solve this.
Regards,