• Resolved pedrtosimao

    (@pedrtosimao)


    Hi,

    I’m using this plugin but while enabled it throws a critical error when a costumer cancels an order.

    [17-Nov-2021 17:00:24 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Alg_WC_Cost_of_Goods_Orders::woocommerce_email_order_meta(), 2 passed in .../wp-includes/class-wp-hook.php on line 303 and exactly 3 expected in .../wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cog-orders.php:210
    Stack trace:
    #0 .../wp-includes/class-wp-hook.php(303): Alg_WC_Cost_of_Goods_Orders->woocommerce_email_order_meta(Object(Automattic\WooCommerce\Admin\Overrides\Order), true)
    #1 .../wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
    #2 .../wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #3 .../wp-content/plugins/woo-custom-emails/admin/class-wcemails-instance.php(248): do_action('woocommerce_ema...', Object(Automattic\WooCommerce\Admin\Overrides\Order), true)
    #4 .../wp-content/plugins/cost-of-goods-for-woocommerce/includes/class-alg-wc-cog-orders.php on line 210

    Temporarily fixed it by removing the $pain_text param from the function.

Viewing 1 replies (of 1 total)
  • Zohaib

    (@zohaibayub85)

    Hi,

    Can you please make sure you are using the latest version of the plugin. Please let me know if the problem persists after you update the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Critical error canceling orders’ is closed to new replies.