Title: Error message when creating invoice
Last modified: April 1, 2022

---

# Error message when creating invoice

 *  [dreejt](https://wordpress.org/support/users/dreejt/)
 * (@dreejt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-message-when-creating-invoice/)
 * Hi,
 * I’m receiving an error when I try to create an invoice. WordPress did send the
   e-mail below. I tried downgrading my php version to 8.0 and also 7.4 but this
   did not solve the problem. Hope you can help me out finding a solution.
 * WordPress versie 5.9.2
    Huidig thema: Soap7 custom made theme Huidige plugin:
   Invoices for WooCommerce (versie 3.1.9) PHP versie 8.1.3
 * Foutdetails
    =========== Een fout van het type E_ERROR werd veroorzaakt op regelnummer
   297 van het bestand /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-
   invoices/vendor/mpdf/mpdf/classes/otl.php. Foutmelding: Uncaught MpdfException:
   Can’t open file /home/ploi/www.soap7.com/web/app/uploads/woocommerce-pdf-invoices/
   mpdf/ttfontdata/dejavusanscondensed.GSUBGPOStables.dat in /home/ploi/www.soap7.
   com/web/app/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/otl.php:
   297 Stack trace: #0 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-
   invoices/vendor/mpdf/mpdf/mpdf.php(16209): otl->applyOTL() #1 /home/ploi/www.
   soap7.com/web/app/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(
   15102): mPDF->WriteHTML() #2 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-
   pdf-invoices/vendor/mpdf/mpdf/mpdf.php(15032): mPDF->_getHtmlHeight() #3 /home/
   ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/includes/abstracts/
   abstract-document.php(190): mPDF->SetHTMLFooter() #4 /home/ploi/www.soap7.com/
   web/app/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.
   php(319): BEWPI_Abstract_Document->generate() #5 /home/ploi/www.soap7.com/web/
   app/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php(363):
   BEWPI_Abstract_Invoice->generate() #6 /home/ploi/www.soap7.com/web/wp/wp-includes/
   class-wp-hook.php(307): BE_WooCommerce_PDF_Invoices->admin_pdf_callback() #7 /
   home/ploi/www.soap7.com/web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()#
   8 /home/ploi/www.soap7.com/web/wp/wp-includes/plugin.php(474): WP_Hook->do_action()#
   9 /home/ploi/www.soap7.com/web/wp/wp-admin/admin.php(175): do_action() #10 /home/
   ploi/www.soap7.com/web/wp/wp-admin/post.php(12): require_once(‘…’) #11 {main}
   thrown
 * Also my debug log shows the following error:
 *     ```
       Stack trace:
       #0 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(16209): otl->applyOTL()
       #1 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(15102): mPDF->WriteHTML()
       #2 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php(15032): mPDF->_getHtmlHeight()
       #3 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(190): mPDF->SetHTMLFooter()
       #4 /home/ploi/www.soap7.com/web/app/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(319): BEWPI_Abstract_Document->generate()
       #5 /home/ploi/www.soap7.com/web/app/plugins/wo" while reading response header from upstream, client: 217.21.206.111, server: www.soap7.com, request: "GET /wp/wp-admin/post.php?post=12730&action=edit&bewpi_action=create&nonce=b044f7e695 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "www.soap7.com", referrer: "https://www.soap7.com/wp/wp-admin/post.php?post=12730&action=edit"
       ```
   

The topic ‘Error message when creating invoice’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dreejt](https://wordpress.org/support/users/dreejt/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-message-when-creating-invoice/)
 * Status: not resolved