Forum


Replies: 2   Views: 3172
Cannot extract default template
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 frust  · 27-11-2012 - 12:34

hi

when i try to create a hello world docx file on the server, i get following error message:

[code]
Message: ZipArchive::extractTo() [ziparchive.extractto]: Unable to access uploads/tmp//150b4ae5a014a6/word/_rels

Filename: classes/CreateDocx.inc

Line Number: 1091
[/code]

i had to relocate the temp folder becouse I have no write permissions on /tmp

[code]$docx = new CreateDocx(PHPDOCX_BASE_TEMPLATE,"uploads/tmp"); [/code]

the script creates the subfolder in tmp, but zip seems to have issues with the permissions. (755)