Forum


Replies: 3   Views: 1854
Warning message in generatedocx.php
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  · 03-12-2019 - 19:46

Hello,

phpdocx uses $_SERVER['SERVER_NAME'] (https://www.php.net/manual/en/reserved.variables.server.php) for license checking. Maybe your server is not returning that information (https://stackoverflow.com/questions/465504/server-addr-undefined-index). Please set it to your server configuration or manually. The same GenerateDocx class is used for CreateDocx and CreateDocxFromTemplate (this class extends CreateDocx).

If you can't add that information, please edit GenerateDocx.php and comment that line.

Regards.