Apr 13, 2012 at 2:36 AM
Edited Apr 13, 2012 at 2:37 AM
|
I'm using PHPWord for my website developed with CakePHP. Everything's ok when I tested the PHPWord function at localhost. But after I hosted the website at the server, when I try to open the downloaded .docx file, it gave me
an error as the post title said. The details of the error is like:
Microsoft Office cannot open this file because some parts are missing or invalid.
I tried to save the file as .doc, the file can be opened but what I got is:
Fatal error: Class 'ZipArchive' not found in C:\wamp\www\mysite\app\vendors\PHPWord\PHPWord\Writer\Word2007.php on line
70.
Does it has something to do with the URL? Why did the error point to an URL that was actually refering to a localhost address?
I've googled around and found no solutions to the problem. I don't even know what the problem is!
So somebody PLEASE HELP!
|