Forum


Replies: 3   Views: 4814
Call to undefined method logger::configure()
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 tonyj@resourcetrack.co.uk  · 11-09-2014 - 15:39

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.

Posted by jc.021286  · 11-09-2014 - 17:39

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.

Posted by admin  · 12-09-2014 - 06:45

Hello, Did you copy every folder of the package? It seems you're missing the lib folder. Regards.

Posted by tonyj@resourcetrack.co.uk  · 12-09-2014 - 07:54

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