Forum


Replies: 3   Views: 3412
Fatal error on debian server but fine local with mamp
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  · 10-02-2014 - 17:40

I have sucessfully installed PHPDocx on my local test environment, OS X with MAMP and I can download a proper named docx file, so everything works like a charme.



Unfortuately it doesn't on our remote Debian server. What I get as result is




Fatal error: Uncaught exception 'Exception' with message 'Issue reading: http://domain.com/html_file.php?id=POxl2Y&lang=en' in /path_to/phpdocx_pro_conv/lib/dompdfParser/include/parserhtml.cls.php:325 Stack trace: #0 /path_to/phpdocx_pro_conv/lib/dompdfParser/include/parserhtml.cls.php(882): PARSERHTML->load_html_file('http://domain.co...') #1 /path_to/phpdocx_pro_conv/classes/HTML2WordML.inc(581): PARSERHTML->getDompdfTree('http://domain.co...', true, '*', false, 'http://domain.co...') #2 /path_to/phpdocx_pro_conv/classes/HTML2WordML.inc(554): HTML2WordML->renderDompdf('http://domain.co...', true, '*', false, 'http://domain.co...') #3 /path_to/phpdocx_pro_conv/classes/CreateDocx.inc(5805): HTML2WordML->render('http://domain.co...', Array) #4 /path_to/html_file.php(11): CreateDocx->embedHTML('http://domain.co...', Array) #5 {main} thrown in /path_to/phpdocx_pro_conv/lib/dompdfParser/include/parserhtml.cls.php on line 325


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->createDocxAndDownload('tmp/'.$file_name.'', null, ''.$file_name.'');


Can anyone give me a hint what causes this?