Forum


Replies: 4   Views: 6459
Yet another installation issue - free version throwing license error and more!
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 mightycpa  · 13-04-2013 - 03:35

I opened GenerateDocx.inc, and found line 46.  It was part of an if block shown below.  I added the error log error in an effort to see what the code was looking for:



        if (!isset($_SERVER['SERVER_NAME'])) {

            return;

        } else {

error_log(dirname(__FILE__) . '/code' );

            $xzerod = trim(file_get_contents(dirname(__FILE__) . '/code'));

            $xzerob = trim(gethostbyname($_SERVER['SERVER_NAME']));

            $xzeroc = trim($_SERVER['SERVER_NAME']);

        }



 



It wants this:



 /home2/managemy/public_html/tysonscup/phpword/classes/code



 



There are two problems:



1) There is no folder "code" in the classes folder



2) There is no file where the function can get contents



AND



Even if I add the folder "code", or I change the code to use "conf", then the license error comes up.  Supposedly, I don't need a license code for the free version; at least, there is no instruction for that.



This free version doesn't seem to work any more.  The last free version that seemed to work in the forums is about a year ago.