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  · 12-04-2013 - 22:19

I did as the instructions asked for the free version:




  • Extracted the files.

  • Ran check.php, everything is ok. 

  • Placed everything in the new folder "phpword". 

  • Created a new docs folder

  • Gave it 755 permissions. Tried 777 too.

  • Looked in the examples folder, but it is empty

  • Copied the four lines from the simplest example, changed the include path and saved it in a file:

  • <?php

    require_once('./phpword/classes/CreateDocx.inc');

    $docx = new CreateDocx();

    $docx->addText('Hello world!');

    $docx->createDocx('../roster_doc/hello_world');

    ?>

  • Ran my little test



BOOM!



[12-Apr-2013 14:13:13] PHP Warning:  file_get_contents(/home2/xxxxxxxx/public_html/tysonscup/phpword/classes/code) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in /home2/managemy/public_html/tysonscup/phpword/classes/GenerateDocx.inc on line 46

[12-Apr-2013 14:13:13] PHP Fatal error:  Uncaught exception 'Exception' with message 'There is not a valid license' in /home2/xxxxxxxxy/public_html/tysonscup/phpword/classes/PhpdocxLogger.inc:56

Stack trace:

#0 /home2/xxxxxxxxx/public_html/tysonscup/phpword/classes/CreateDocx.inc(1088): PhpdocxLogger::logger('There is not a ...', 'fatal')

#1 /home2/xxxxxxxxxxy/public_html/tysonscup/test_file.php(3): CreateDocx->__construct()

#2 {main}

  thrown in /home2/xxxxxxxxxx/public_html/tysonscup/phpword/classes/PhpdocxLogger.inc on line 56



Help!