Forum


Replies: 4   Views: 7048
Fatal error class not found
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 niek  · 06-11-2013 - 14:35

Hi,



I Copied the community-files to the server. When i want to execute a simple test-script:



require_once (get_stylesheet_directory() . '/phpdocx/classes/CreateDocx.inc');

$docx = new CreateDocx();

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

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

 



I receive this error:



Fatal error: Class 'LoggerRendererMap' not found in /home/user/domains/-url-/public_html/site/wp-content/themes/theme1/phpdocx/lib/log4php/LoggerHierarchy.php on line 82



It finds the CreateDocx.inc', so the pathreference works. It doesn't find the other scripts in the lib (sub)folders.



when i copy the loggerrenderermap.php to the log4php it gives a next error referring to antother document in the subfolder



Puzzling and searching internet whole day. Any help would be great!



 



 


Posted by jorgelj  · 06-11-2013 - 15:13

Hello,



Please extract the content of the library to a folder, and run one of the included examples. For example easy/Text.php:



$ php Text.php



We have downloaded the community version and it generate the DOCX without error.



Regards.


Posted by niek  · 06-11-2013 - 16:49

Thanks for the quick response !!



 



If i entered http://www.url/site/wp-content/phpdocx/examples/easy/Text.php



i receive a white screen no actions...


Posted by jorgelj  · 07-11-2013 - 09:14

Hello,



DOCX files are generated in the systemfile. Please check the path where you're saving the document.



Regards. Jorge.