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?