Forum


Replies: 2   Views: 2226
Warning: a non-numeric value encountered
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 Sven May  · 05-08-2019 - 14:48

Dear All,

I am using PhpDocx 4.5. I know that this is an old version of PhpDocx, but our customer is satisfied with this version.

My problem is that I would like to upgrade my Php version from 7.0 to 7.2.

I've did the Php version change after I've tried to genrate Word doc with PhpDocx but I got this error:

Warning: A non-numeric value encountered

With this stack:

Exception trace:
 Phpdocx\Transform\HTML2WordML->_wordMLUnits() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:1355
 Phpdocx\Transform\HTML2WordML->closePreviousTags() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:801
 Phpdocx\Transform\HTML2WordML->_render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:1273
 Phpdocx\Transform\HTML2WordML->_render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:1273
 Phpdocx\Transform\HTML2WordML->_render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:1273
 Phpdocx\Transform\HTML2WordML->_render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:1273
 Phpdocx\Transform\HTML2WordML->_render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Transform/HTML2WordML.inc:604
 Phpdocx\Transform\HTML2WordML->render() at /home/developer/www/configmanager/Symfony/vendor/phpdocx/Classes/Phpdocx/Create/CreateDocx.inc:3946
 Phpdocx\Create\CreateDocx->embedHTML() at /home/developer/www/myproject/myworddocgenerator/DocxGenerator.php:387

Any suggestion to solve it without to edit code of PhpDocx?

Thank you!