Forum


Replies: 4   Views: 3956
'the chosen extension is not supported'
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 melino  · 11-02-2014 - 06:54

I am trying to convert use the PDF converter with MAMP, but all I get is




Fatal error: Uncaught exception 'Exception' with message 'The chosen extension is not supported' in /path_to/phpdocx_pro_conv/classes/PhpdocxLogger.inc:56 Stack trace: #0 /path_to/phpdocx_pro_conv/classes/TransformDocAdv.inc(136): PhpdocxLogger::logger('The chosen exte...', 'fatal') #1 /path_to/pdf.php(35): TransformDocAdv->transformDocument('imports/test.do...', NULL, 'imports/test.pd...') #2 {main} thrown in /path_to/phpdocx_pro_conv/classes/PhpdocxLogger.inc on line 56


Anyone with a hint?


Posted by jorgelj  · 11-02-2014 - 09:25

Hello,



Please post your script.



Regards.


Posted by melino  · 11-02-2014 - 10:31

The download script is:



$query_string = $_SERVER['QUERY_STRING'];

require_once ("path_to/phpdocx_pro_conv/classes/CreateDocx.inc");

$docx = new CreateDocx();

$docx->enableCompatibilityMode();



$html = 'http://domain.com/html_file.php?'.$query_string.'';

$docx->embedHTML($html, array('isFile' => true));

$file_name = $row['contract_name'].' (Long Agreement)';



$docx->createDocx('tmp/'.$file_name.'');

$docx->transformDocx('tmp/'.$file_name.'', ''.$file_name.'');



 


Posted by jorgelj  · 12-02-2014 - 08:59

Hello,



Please check your other post:



http://www.phpdocx.com/forums/issues/fatal-error-debian-server-fine-local-mamp



Regards.