• Resolved alyabee

    (@alyabee)


    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.7

    Error 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

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @alyabee,

    Could you please try installing our mPDF addon and see if issue persists.

    Once installed, go to Invoice/Packing > General Settings > PDF library and choose MPDF. Then try downloading an invoice and see if the error persits.

Viewing 1 replies (of 1 total)
  • The topic ‘Getting FontNotFoundException on invoice download’ is closed to new replies.