Getting FontNotFoundException on invoice download
-
I’m running wp on aws and getting this error when trying to download invoice or any pdf generator function.
I tried giving full permission to tmp but it seems like wp user cant access to this folder. Is there any option to use a subdir of wp-content folder?
Thanks
Here are details:
WordPress version 5.5.3
Current theme: Neve (version 2.8.2)
Current plugin: WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels (version 2.7.5)
PHP version 7.2.24-0ubuntu0.18.04.7Error Details
=============
An error of type E_ERROR was caused in line 28 of the file /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/lib/php-font-lib/src/FontLib/Font.php. Error message: Uncaught FontLib\Exception\FontNotFoundException: Font not found in: /tmp/DejaVuSans.ttf.tmp.600c26aed4e22 in /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/lib/php-font-lib/src/FontLib/Font.php:28
Stack trace:
#0 /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/lib/Cpdf.php(2843): FontLib\Font::load(‘/tmp/DejaVuSans…’)
#1 /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/src/Adapter/CPDF.php(1006): Cpdf->selectFont(‘/home/admin/web…’)
#2 /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-woocommerce/includes/vendor/dompdf/src/FontMetrics.php(310): Dompdf\Adapter\CPDF->get_font_height(‘/home/admin/web…’, 9)
#3 /home/admin/web/alyabee.com/public_html/wp-content/plugins/print-invoices-packing-slip-labels-for-wo
- The topic ‘Getting FontNotFoundException on invoice download’ is closed to new replies.