Forum


Replies: 1   Views: 229
Multimerge comments error
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 SYS_A1086-Workflow  · 04-05-2020 - 08:24

When I use MultiMerge and there are comments in the files I get the following error:

Fatal error: Uncaught Error: Call to a member function setAttribute() on null in /opt/app/a1679/apache-tst/htdocs/plugins/phpdocx/classes/MultiMerge.inc on line 1659

Is there a way to avoid this error?

Can I remove all comments with a function?

Posted by admin  · 04-05-2020 - 09:05

Hello,

What type of comments are added to the DOCX? commentExtended types from new versions of MS Word are supported since phpdocx 9.5 (https://www.phpdocx.com/news/post/phpdocx-v9-5-release-notes/219).

You are using an Advanced 6.5 license, you can use DOCXPath to remove specific Word contents in the document using removeWordContent (https://www.phpdocx.com/api-documentation/docx-path/remove-elements-in-docx). If you send to contact[at]phpdocx.com two DOCX samples that return the error when merging with phpdocx 6.5 will check them.

Regards.