Forum


Replies: 1   Views: 3891
Migration 3.7 => 4.0
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 simon  · 09-06-2014 - 16:07

Hello, I have on one website version 3.7, as I migrate all my info on a new area, I bought a new version (4) Since then, nothing works. I removed the class: DocxUtilities which apparently no longer exists Then, in one place, I had this: / / $ Docx2 CreateDocx = new (); / / $ Docx2-> setTemplateSymbol ('@'); / / $ Docx2-> addtemplate ($ name. 'Docx.'); I lai transformed into $ docx2 = new CreateDocxFromTemplate ($ name. 'docx.'); $ docx2-> setTemplateSymbol ('@'); but I get the following error: Warning: ZipArchive::addFromString(): Invalid or unitialized Zip object in /var/www/vhosts/.........fr/httpdocs/docx3.7/classes/CreateDocx.inc on line 5930 // Fatal error: Uncaught exception 'Exception' with message 'Error while inserting the [Content_Types].xmlinto the zip' in // /var/www/vhosts/.........fr/httpdocs/docx3.7/classes/PhpdocxLogger.inc:55 Stack trace: // #0 /var/www/vhosts/.........fr/httpdocs/docx3.7/classes/CreateDocx.inc(5935): PhpdocxLogger::logger('Error while ins...', 'fatal') // #1 /var/www/vhosts/.........fr/httpdocs/docx3.7/classes/CreateDocx.inc(3213): CreateDocx->saveToZip(Object(DOMDocument), '[Content_Types]...') // #2 /var/www/vhosts/.........fr/httpdocs/action/creer_model.php(683): CreateDocx->createDocx('/tmp/full_nikky...') // #3 {main} thrown in /var/www/vhosts/.........fr/httpdocs/docx3.7/classes/PhpdocxLogger.inc on line 55 Can you tell me what's the reason?

Posted by jorge  · 10-06-2014 - 06:56

Hello, The DocxUtilities are included in the corporate and enterprise license. About your issue, I see this message: ------------------------------------------- Warning: ZipArchive::addFromString(): Invalid or unitialized Zip object in ------------------------------------------- It seems your DOCX doesn't exist. Maybe is not .docx but .Docx, check the path with uppercase and lowercase. Regards.