Fatal error: Uncaught exception 'DOMPDF_Exception' with message 'No block-level parent found. Not good.' system/library/dompdf/include/inline_positioner.cls.php:37
Laravel DOM-PDF Error – No block-level parent found. Not good. I received this error when using a system called FusionInvoice. This relates to DOM PDF which is a Laravel vendor to allow PDFs to be created.
php - Dompdf error "No block-level parent found. Not good." - Stack Overflow Dompdf error "No block-level parent found. Not good."
go to configuration file dompdf_config.custom.inc.php and uncomment define ("DOMPDF_ENABLE_HTML5PARSER", true); and check, basically it requires html5 parser enabled in your configuration file. Just uncomment define ("DOMPDF_ENABLE_HTML5PARSER", true); this line from dompdf_config.custom.inc.php this file.
There have been issues in the past where a bug in the HTML processing would result in the HTML content being nulled before by dompdf, but I believe those have been cleared up with the latest release. Do you see any notices or warnings thrown by PHP besides the initial one.
Remove <thead>
and <tbody>
tags
and remove space between <html><head>
, </head><body>
and </body></html>
It will works fine.!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With