Forum


Replies: 3   Views: 2997
Error while trying to write ... please check write access.
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 admin  · 05-05-2017 - 06:34

Hello,

The file DOCXStructure.inc included in phpdocx 7 is the same than phpdocx 6.5. It just add a new option to return the structure of the class instead of creating the DOCX file, but the lines you refer in this file:

if (!is_writable($path) || !is_readable($path)) {
   die('Error while trying to write to ' . $path . ' please check write access.');
}

are the same in both phpdocx 7 and phpdocx 6.5.

We recommend you to check if the server is returning a wrong false. For example if you are using Samba you need to configure it correctly:

https://bugs.php.net/bug.php?id=68926

Anyway, as all payment licenses of phpdocx are open source (not free source; so you can change the code but not redistribute it), you could remove that lines from DOCXStructure.inc. That lines only check if the file can be written correctly, but you can comment or remove them.

Regards.