Support » Plugin: Woo Custom Stock Status » Problem with another plugin since last update

  • Resolved JLoureiro

    (@pattuka)


    Hello from Spain,

    I use the plugin “WooCommerce PDF Invoices & Packing Slips” at our shop and since the last update of Woo Custom Stock Status it stopped working. I get the error when an invoice or credit note is created or displayed. If I disable your plugin it works again.

    This is the error log:
    2020-04-09T09:30:33+00:00 CRITICAL Too few arguments to function Woo_Stock_Product::add_stock_status_in_order_confirmation(), 3 passed in /xxx/xxxx/xxxxx/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected

    And this is what appears when an invoice is created:

    #0 /xxx/xxxx/xxxxx/wp-includes/class-wp-hook.php(287): Woo_Stock_Product->add_stock_status_in_order_confirmation(7695, Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #1 /xxx/xxxx/xxxxx/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /xxx/xxxx/xxxxx/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-ips-templates/includes/class-wcpdf-templates-main.php(529): do_action('woocommerce_ord...', 7695, Object(WC_Order_Item_Product), Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #4 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-ips-templates/includes/wcpdf-templates-functions.php(56): WooCommerce_PDF_IPS_Templates_Main->get_order_details_data(Array, Array, Object(WPO\WC\PDF_Invoices\Documents\Invoice))
    #5 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-ips-templates/templates/Simple Premium/invoice.php(98): wpo_wcpdf_templates_get_table_body(Object(WPO\WC\PDF_Invoices\Documents\Invoice))
    #6 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(740): include('/xxx/xxxx...')
    #7 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(644): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template('/xxx/xxxx...', Array)
    #8 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(626): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #9 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(662): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #10 /xxx/xxxx/xxxxx/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(337): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
    #11 /xxx/xxxx/xxxxx/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
    #12 /xxx/xxxx/xxxxx/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #13 /xxx/xxxx/xxxxx/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #14 /xxx/xxxx/xxxxx/wp-admin/admin-ajax.php(175): do_action('wp_ajax_generat...')
    #15 {main}

    Could this problem be solved?

    Kind regards,
    Jaime Loureiro.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author softound

    (@softound)

    Hi,

    We are checking the issue and will fix soon.

    Plugin Author softound

    (@softound)

    We have fixed the issue and updated the plugin, please check and let us know.

    Hello,

    I’ve just updated and tried again and it’s working ok now.

    Many thanks for your quick help and great support 😉

    Regards,
    Jaime Loureiro.

    • This reply was modified 6 months, 2 weeks ago by JLoureiro.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with another plugin since last update’ is closed to new replies.