error on production server

66 views
Skip to first unread message

viral

unread,
Aug 19, 2010, 6:57:46 AM8/19/10
to dompdf
Hi,
I am using dompdf V0.5.1.

I was having no issues when i was using the dompdf on my development
machine, everything was working fine. but when i upload the stuffs on
production server, the things went wrong.

I have following screen, when i hit the export to PDF button on my php
page:

dompdf.cls.phpframe_tree.cls.phpstylesheet.cls.phpframe.cls.phpstyle.cls.phpattribute_translator.cls.phpframe_factory.cls.phppage_frame_decorator.cls.phpframe_decorator.cls.phppage_frame_reflower.cls.phpframe_reflower.cls.phpblock_frame_decorator.cls.phpblock_positioner.cls.phppositioner.cls.phpblock_frame_reflower.cls.phptext_frame_decorator.cls.phpinline_positioner.cls.phptext_frame_reflower.cls.phptable_frame_decorator.cls.phpcellmap.cls.phptable_frame_reflower.cls.phptable_row_group_frame_decorator.cls.phpnull_positioner.cls.phptable_row_group_frame_reflower.cls.phptable_row_frame_decorator.cls.phptable_row_frame_reflower.cls.phptable_cell_frame_decorator.cls.phptable_cell_positioner.cls.phptable_cell_frame_reflower.cls.phpcanvas_factory.cls.phpcpdf_adapter.cls.phpcanvas.cls.phprenderer.cls.phpabstract_renderer.cls.phpfont_metrics.cls.php
Warning: Division by zero in /home/XXX/lib/dompdf/include/
cellmap.cls.php on line 501
Warning: Division by zero in /home/XXX/lib/dompdf/include/
cellmap.cls.php on line 509
Warning: Invalid argument supplied for foreach() in /home/XXX/lib/
dompdf/include/table_cell_frame_reflower.cls.php on line 72
block_renderer.cls.phptext_renderer.cls.phptable_cell_renderer.cls.phpimage_cache.cls.phpUnable
to stream pdf: headers already sent

could any one please help me out? Am i missing some thing. I have
checkded the dom extensions on server, they are enabled.

following is the php code:
function exportToPDF(){
$data = $_REQUEST['pdftext'];

if (isset($data) && !empty($data)) {
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//
EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link media="print" rel="STYLESHEET" href="http://'.
$_SERVER['HTTP_HOST'].'//css/pdf_print.css" type="text/css" />
</head><body>';
$html .= $data;
$html .= "</body></html>";
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($reportname." Report.pdf");
}
}

thanks in advance
VB

Fabien Ménager

unread,
Aug 19, 2010, 7:48:02 AM8/19/10
to dompdf
This may be due to a malformed table, with colspans or rowspans. Does
it work with the latest beta ?
Message has been deleted

Ashish Singh

unread,
Jul 13, 2013, 11:16:59 AM7/13/13
to dom...@googlegroups.com
Hey,

I am facing the same issue when i have upload my site on Godaddy server, Although its working fine with blue host (cpanel).

Have anyone any idea about it.

BrianS

unread,
Jul 15, 2013, 10:40:27 AM7/15/13
to dom...@googlegroups.com
This is an old thread, best to start a new thread with details on your specific problem (dompdf version, php error messages, sample html document, etc.).
Reply all
Reply to author
Forward
0 new messages