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.
Hi
I'm currently evaluating using the PRO trial but am getting the following error:
Fatal error: Call to undefined method Logger::configure() in D:\dev\workspace\xxxxxxxx\phpdocx\classes\AutoLoader.inc(65) : eval()'d code on line 44
I am initializing using :
require_once $root.'/phpdocx/classes/CreateDocx.inc';
$docx = new CreateDocx();
The sample script seem to run without issue.
Thanks in advance for any assistance you may be able to give.
Instead of the $root,
Can you use the relative path to the folder?
If you are running the file out of the \phpdocx\ folder, then just "./classes/CreateDocx.inc"
if you have it up a folder then prepend "../" for every folder up it is.
The code appear to prefer relative references over absolute.
Hello,
Did you copy every folder of the package? It seems you're missing the lib folder.
Regards.
Hi
Thanks for the response.
I have managed to get this working now. I was including CreateDocx.inc within a function. I have moved this out of the function and called at the start of my script.
Thanks