Forum


Replies: 7   Views: 5773
Fatal error: class 'xsltprocessor' 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 lamador  · 28-04-2014 - 17:39

Hello, 



I'm trying to generate a PDF from a docx file with the generatePDF function, but I get this error message:



$:/var/www/.../phpdocx/examples/intermediate$ php DocxAndPdf.php 

PHP Fatal error:  Class 'XSLTProcessor' not found in /var/www/6conecta/components/com_seysconecta/lib/phpdocx/classes/TransformDoc.inc on line 266



 



I've tried also with the transformDocx function. In this case it works fine executing the example transform.php from the command line but if I do it in a script with the browser the proccess doesn't create the pdf file. I've cheked that the oppenoffcie is running.



$:/var/www/6conecta$ ps aux | grep openoffice

lamador   4139  0.0  0.0   2236   564 pts/3    S+   17:28   0:00 /bin/sh /opt/openoffice.org3/program/soffice -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard

lamador   4148 11.3  0.8 117728 35732 pts/3    Sl+  17:28   0:00 /opt/openoffice.org3/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard

 



Can you help me?