-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Describe the bug
I recently updated from 3.0.15 to 3.0.18 and PDF generation stopped working with an error:
"Undefined array key ''" on line 4752 in dompdf\dompdf\lib\Cpdf.php
The stack trace points to this line:
$font = $this->fonts[$this->currentFont];
I found an issue on dompdf but it doesn't really help as those options are not exposed in Gift Voucher.
- PDF generation from Commerce (like an order receipt) still works fine.
- Downgrading to 3.0.15 restored the functionality
- This is on a linux cloud host but not Craft Cloud
I can see some changes were made around 3.0.16 for Craft Cloud PDFs so I assume they are the culprit.
Steps to reproduce
- Install 3.0.18
- Download a PDF
- See an error
Craft CMS version
4.16.11
Plugin version
3.0.18
Multi-site?
Yes
Metadata
Metadata
Assignees
Labels
No labels