-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Hello,
I have a problem with templates, using a WAMP server.
I don't have any issue with the same process with a LAMP server.
It's a LOCAL application, NOT on the internet.
Word documents have been tested with LibreOffice and OpenOffice, same results.
I'm working with the Sample_07_TemplateCloneRow example.
With Linux :
It works perfectly,
I can open the file via http://...., but it is a "read only" version (that's fine, but NOT what I need)
I can open, read and modify the "/results/Sample_07_TemplateCloneRow.docx" file in his folder (direct access in the folder)
With Windows 7 (I tried with 2 different computers, same issue)
I can open the file via http://, it works but it's NOT what I need !
I can save the document in my "downloads" folder. After that, I can open the new document but it is NOT what I need neither !
I CANNOT open the "c:/[...]/results/Sample_07_TemplateCloneRow.docx", the file is "corrupted" (access denied) but it IS this one I need to open !
After many, many, many tests, I found a way to open those files :
right-click on the file -> Properties -> Security -> Modify -> Add a user -> I added my windows "username" (my OS is in french, i'm not quite sure with the english labels !)
and then, it works, I can open my "c:/[...]/results/Sample_07_TemplateCloneRow.docx"
It works, but it's really not an easy way for a daily use.
Templates (07 & 23) are the only ones who makes troubles.
IE, "/results/Sample_06_Footnote.docx" didn't need any manipulation before beeing open and have no owner neither.
I have no problem with other generated files with or without PHPWord, only with those using TemplateProcessor.
I do not understand what's the problem and think a little bit ironic to have rights/permissions issues with windows...
Has someone a solution with this issue ?
How can I solve it ?
Without this problem, PHPWord is awesome !
Windows 7 64bits
Wamp Server 2.5
Apache 2.4.9 (Win 32)
php 5.5.12
PHPWord Master 0.12.0