dompdf error muncul pesan
Fatal error: Uncaught Error: Call to undefined method DOMText::getAttribute() in C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\cellmap.cls.php:437 Stack trace: #0 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\cellmap.cls.php(399): Cellmap->add_frame(Object(Text_Frame_Decorator)) #1 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\cellmap.cls.php(399): Cellmap->add_frame(Object(Table_Row_Group_Frame_Decorator)) #2 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\table_frame_reflower.cls.php(520): Cellmap->add_frame(Object(Table_Frame_Decorator)) #3 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\frame_decorator.cls.php(715): Table_Frame_Reflower->get_min_max_width() #4 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\frame_reflower.cls.php(193): Frame_Decorator->get_min_max_width() #5 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\frame_decorator.cls.php(715): Frame_Reflower->get_min_max_width() #6 C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\cellmap.cls.php(524): Frame_Decorator->get_min_max_width() # in C:\xampp\htdocs\tnde\library\dompdf-0.6.1\include\cellmap.cls.php on line 437
disebabkan karena ada tags yang tidak dikenal seperti
<tbody> dan</tbody>
coba hilangkan dengan perintah str_replace
$arrRemove = array(“<tbody>”, “</tbody>”);
echo str_replace($arrRemove, “”, $row[“isi”]);
semoga bermanfaat, wassalam.