Replies: 6   Views: 4767
[docx v2.6] invalid or unitialized zip object
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by js  · 17-09-2012 - 08:45


I would like to use the template function in order to make life easier for my end users. However, as soon as I start using addTemplate('path/template.docx') the following warnings show up:
Warning: ZipArchive::addFile() [ziparchive.addfile]: Invalid or unitialized Zip object in /var/www/view_extensions/php_docx/v2.6_pro/classes/ on line 6148
Warning: ZipArchive::close() [ziparchive.close]: Invalid or unitialized Zip object in /var/www/view_extensions/php_docx/v2.6_pro/classes/ on line 4314

The files itself get created and seem to be OK (no error when opening them etc).

Any help would be appreciated.