2.8.0 & 2.8.1 – get_payment_method() = Fatal Error
-
———————–
Dev – WooCommerce v3.x.x compatibility – PDF INVOICING & PACKING SLIPS – Email Options – get_payment_method().
———————–get_payment_method() on the PDF Invoicing Module is causing a Fatal error when checking out, but ONLY if you are purchasing Gift Cards or Vouchers. People get the SERVER ERROR message on the checkout page, but still get charged and the order gets created. Emails of confirmation are also sent to admin and customer.
Regular products do not trigger the error.
I installed the dev version you guys posted on another thread, but the problem persists… This is what the log says:
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #5 /home/******/home/********/public_html/wp-content/plugins/woocommerce-jetpack-master/includes/functions/wcj-functions.php on line 34, referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #4 /home/********/public_html/wp-content/plugins/woocommerce-pdf-product-vouchers/includes/emails/class-wc-pdf-product-vouchers-email-voucher-recipient.php(193): WC_Email->get_attachments(), referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #3 /home/********/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(296): apply_filters(‘woocommerce_ema…’, Array, ‘wc_pdf_product_…’, Array), referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #2 /home/********/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array), referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #1 /home/********/public_html/wp-includes/class-wp-hook.php(298): WCJ_PDF_Invoicing_Emails->add_pdf_invoice_email_attachment(Array, ‘wc_pdf_product_…’, Array), referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] #0 /home/********/public_html/wp-content/plugins/woocommerce-jetpack-master/includes/pdf-invoices/submodules/class-wcj-pdf-invoicing-emails.php(56): wcj_order_get_payment_method(Array), referer: https://**********.com/shop/checkout/
[Tue May 23 11:39:54 2017] [error] [client **.**.**.***] PHP Fatal error: Uncaught Error: Call to a member function get_payment_method() on array in /home/********/public_html/wp-content/plugins/woocommerce-jetpack-master/includes/functions/wcj-functions.php:34, referer: https://********.com/shop/checkout/———————–
The problem is the PDF Invoicing Module, If I disable it, the problem goes away… but no PDFs are created or sent, and we need them.
can you guys help?? or should I just wait for a fix/patch??
Thanks in advance! 🙂
- The topic ‘2.8.0 & 2.8.1 – get_payment_method() = Fatal Error’ is closed to new replies.