Forum


Replies: 1   Views: 33
Domnode::insertbefore(): document fragment is empty

Posted by jaina112  · 30-03-2025 - 18:12

I use phpdocx 10 premium.

I make a word using a template.
The following warning is given in replaceVariableHTML.
DOMNode:: insertBefore(): Document Fragment is empty

I make a word from HTML.
The options are as follows.
'customListStyles' => true,
'strictWordStyles' => true,
'disableWrapValue' => true,
'removeLineBreaks' => true,
'wordStyles' => array
  '.listA' => 'listA'
)

Warning seems to be over a list when I do not appoint a class at making.

What is the method of preventing you from giving warning?

※The warning was not given in phpdocx9.
gras