Updating a template not working with .doc file

Jan 28, 2012 at 12:47 PM

Im trying to update a template using a .doc file exported from Google docs onto my server and get the following error :

Warning: ZipArchive::getFromName() [ziparchive.getfromname]: Invalid or unitialized Zip object in /home/aksystem/public_html/docit/PHPWord/Template.php on line 74


Warning: ZipArchive::addFromString() [ziparchive.addfromstring]: Invalid or unitialized Zip object in /home/aksystem/public_html/docit/PHPWord/Template.php on line 105

Warning: ZipArchive::close() [ziparchive.close]: Invalid or unitialized Zip object in /home/aksystem/public_html/docit/PHPWord/Template.php on line 108

Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file.' in ...PHPWord/Template.php:109 Stack trace: #0 ../createtemplate.php(23): PHPWord_Template->save('test.doc') #1 {main} thrown in .../PHPWord/Template.php on line 109

 

When I use a standard .doc file saved through Office for Mac 2008 I get an Internal Server Error 500. But all works fine with .docx files though?

I would really appreciate some help with this.

Thanx