• Resolved luisfernandoca

    (@luisfernandoca)


    ———————–
    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! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    I’ve just made some more changes to the plugin. Please download the new development version (https://booster.io/dev/). Please let me know if this is fixed.

    Best regards,
    Tom

    If you like Booster, please leave us a rating.

    Thread Starter luisfernandoca

    (@luisfernandoca)

    Awesome! thanks for the quick response! 🙂 …that fixed half of the problem 🙂 …like I mentioned before, it was happening with Gift Cards and Vouchers, I use 2 different plugins for that:

    Gift Cards: YITH WooCommerce Gift Cards Premium
    Vouchers: WooCommerce PDF Product Vouchers

    The error-log entry on the original post is what I used to get when trying to buy vouchers, that is FIXED now, thanks 🙂 …but buying gift cards still triggers the server error on the checkout page. The order is created and I get charged, and emails are sent with their attachments. This is the error log, still get_payment_method() in wcj-functions.php:34

    [Tue May 23 15:40:32 2017] [error] [client **.**.**.***] #4 /home/*******/public_html/wp-content/plugins/yith-woocommerce-gift-cards-premium/lib/emails/class-yith-ywgc-email- in /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 15:40:32 2017] [error] [client **.**.**.***] #3 /home/*******/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(296): apply_filters(‘woocommerce_ema…’, Array, ‘ywgc-email-send…’, Object(YWGC_Gift_Card_Premium)), referer: https://*******.com/shop/checkout/
    [Tue May 23 15:40:32 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 15:40:32 2017] [error] [client **.**.**.***] #1 /home/*******/public_html/wp-includes/class-wp-hook.php(298): WCJ_PDF_Invoicing_Emails->add_pdf_invoice_email_attachment(Array, ‘ywgc-email-send…’, Object(YWGC_Gift_Card_Premium)), referer: https://*******.com/shop/checkout/
    [Tue May 23 15:40:32 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(Object(YWGC_Gift_Card_Premium)), referer: https://*******.com/shop/checkout/
    [Tue May 23 15:40:32 2017] [error] [client **.**.**.***] PHP Fatal error: Uncaught Error: Call to undefined method YWGC_Gift_Card_Premium::get_payment_method() in /home/*******/public_html/wp-content/plugins/woocommerce-jetpack-master/includes/functions/wcj-functions.php:34, referer: https://*******.com/shop/checkout/

    I just disabled the PDF Module but we really need it. Do you have a fix for this? 🙂

    Thanks!

    Sorry missed that – please try once again (https://booster.io/dev/).

    Best regards,
    Tom

    Thread Starter luisfernandoca

    (@luisfernandoca)

    Thanks! downloading now… I will let you know as soon as I test it on gift cards, vouchers and regular products to make sure it works.

    Thread Starter luisfernandoca

    (@luisfernandoca)

    it works!! that fixes everything, thank you very much 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2.8.0 & 2.8.1 – get_payment_method() = Fatal Error’ is closed to new replies.