Cashier-stripe: Bump DOMPDF version to resolve "No block-level parent found. Not good." error when using <head>

Created on 10 Nov 2017  路  4Comments  路  Source: laravel/cashier-stripe

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

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):

<html><head>
</head><body>
</body></html>

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings