Support » Plugin: WooCommerce PDF Invoices » Completing Orders invoice error.

  • So I have this problem: When I go to orders and change to completed, I get this error page, yet the status is indeed changed. Any ideas what the problem might be?

    Fatal error: Uncaught Error: Call to undefined function BEWPI() in /home/socia464/public_html/kedas.gr/wp-content/uploads/woocommerce-pdf-invoices/templates/invoice/simple/minimal/body.php:78 Stack trace: #0 /home/socia464/public_html/kedas.gr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(221): require() #1 /home/socia464/public_html/kedas.gr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(241): BEWPI_Abstract_Document->buffer('/home/socia464/...') #2 /home/socia464/public_html/kedas.gr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(176): BEWPI_Abstract_Document->get_html() #3 /home/socia464/public_html/kedas.gr/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(311): BEWPI_Abstract_Document->generate('F') #4 /home/socia464/public_html/kedas.gr/wp-content/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php(556): BEWPI_Abstract_Invoice->generate() #5 /home/soc in /home/socia464/public_html/kedas.gr/wp-content/uploads/woocommerce-pdf-invoices/templates/invoice/simple/minimal/body.php on line 78

Viewing 1 replies (of 1 total)
  • Update:

    In the referred line 78, we replaced BEWPI()->templater() with $templater which is declared at the start of the file and everything seems to be in order. So this works in creating the PDF invoices and now emails with the pdf printed are sent correctly as well.

    <?php echo $templater->get_meta( '{tax_registration_number_field}' ); ?>

    Kind of worried we broke something somewhere though, it’s not good practice to change the plugins directly either anyway. Any ideas would rock 🙂

    • This reply was modified 6 months, 1 week ago by Sociality.
Viewing 1 replies (of 1 total)
  • The topic ‘Completing Orders invoice error.’ is closed to new replies.