Forum


Replies: 1   Views: 1613
File edit not working
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  · 23-01-2020 - 19:46

Hello,

What version of PHP are you using? PHP 5.4 or previous?

Although we recommend you to update to a newer version of PHP (5.6 or 7), to fix it with old versions of PHP, please edit classes/TransformDocAdvHTML.php and replace that line (3099):

if ($this->complexField !== null && $this->complexField['type'] == 'FORMTEXT' && !empty(trim($childNode->nodeValue))) {

by:

$childNodeValue = trim($childNode->nodeValue);
if ($this->complexField !== null && $this->complexField['type'] == 'FORMTEXT' && !empty($childNodeValue)) {

Regards.