shadz3rg / php-stamp

The XSL-way templating library for Word DOCX documents.
MIT License
161 stars 35 forks source link

Release 8.1.21 #17

Open vami7ir opened 1 year ago

vami7ir commented 1 year ago

After the release of PHP 8.1.2, template generation stopped working, gives the following error: Uncaught TypeError: PHPStamp\Templator::searchAndReplace(): Argument #1 ($nodeList) must be of type DOMNodeList, bool given, called in. After a little research, we managed to find out that the problem is in the formation of the template in the file "Processor.php" line "35" $template->appendChild($document->documentElement); How to solve this problem?

shadz3rg commented 1 year ago

Hey, there is not so much activity lately in this project but i'll try to make it compatible with modern PHP release, stay tuned.

shadz3rg commented 10 months ago

Please test new v1 major version, if problem still persists please attach your source document with reprodusable behavior.