When downloading an invoice, No block-level parent found. Not good. is thrown if the HEAD is present in the invoice template.
Example:
https://github.com/barryvdh/laravel-dompdf/issues/389
Fix has been committed below:
https://github.com/dompdf/dompdf/commit/ad41b6dd17ba774b017407ffba09c14a66665723
Same issue here. But Cashier requires dompdf 7.0.0 so I cannot upgrade to a newer version that fixes this issue.
Removing whitespace between the following elements solves the problem for me in the receipt.blade.php (that you need to publish to edit):
<html><head>
</head><body>
</body></html>
That did resolve the issue, but would be good to get an actual fix rather than hacking the html everytime
Closing this issue because it's already solved, old or not relevant anymore. Feel free to reply if you're still experiencing this issue.
Most helpful comment
Removing whitespace between the following elements solves the problem for me in the
receipt.blade.php(that you need to publish to edit):