• Resolved usualhouse

    (@usualhouse)


    Hi,

    I installed Cart Weight for WooCommerce plugin yesterday, but the following error appears in the server logs today. It looks like there is some conflict between Cart Weight for WooCommerce and Kadence WooCommerce Email Designer plugins. I need both plugins. Can you help with this issue?

    PHP Fatal error: Uncaught Error: Call to a member function get_weight() on bool in /public/wp-content/plugins/cart-weight-for-woocommerce/public/class-cart-weight-for-woocommerce-public.php:130\nStack trace:\n#0 /public/wp-includes/class-wp-hook.php(287): CWFW_Cart_Weight_For_Woocommerce_Public->cwfw_add_custom_weight_data(‘new:line_items0’, Object(WC_Order_Item_Product), Object(WC_Order), false)\n#1 /public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)\n#2 /public/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#3 /public/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/email-order-items.php(158): do_action(‘woocommerce_ord…’, ‘new:line_items0’, Object(WC_Order_Item_Product), Object(WC_Order), false)\n#4 /public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/ in /public/wp-content/plugins/cart-weight-for-woocommerce/public/class-cart-weight-for-woocommerce-public.php on line 130

    Waiting for your reply.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    I’m not seeing anything in that output that makes me think this is related to Kadence, just because a Kadence file is listed in the trace doesn’t mean it’s something the Kadence plugin is causing, for example, there are woocommerce core files listed as well.

    However, it is possible that third party plugins can have errors when you try to preview emails with the mockup order. This is because the mockup order is not a real order and so plugins can be expecting real order data when outputting or building their output and the mockup order won’t have that.

    If you were previewing while using a mockup order and that is the only time an error shows in your error log that could be the cause. This would be fixed by selecting a real order to preview with in the email customizer.

    Ben

    Thread Starter usualhouse

    (@usualhouse)

    Hello Ben,

    Thanks for the advice.

    problem solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_weight() on bool’ is closed to new replies.