• Resolved akshat05

    (@akshat05)


    Hi,

    I’m using a custom theme and I have added and customized a few woocommerce template in my theme, in my debug.log file, I’m getting this:

    height was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::add_to_cart, WC_Cart->add_to_cart, do_action(‘woocommerce_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->calculate_totals, WC_Cart_Totals->__construct, WC_Cart_Totals->calculate, WC_Cart_Totals->calculate_shipping_totals, WC_Cart_Totals->get_shipping_from_cart, WC_Cart->calculate_shipping, WC_Shipping->calculate_shipping, WC_Shipping->calculate_shipping_for_package, WC_Shipping_Method->get_rates_for_package, WC_Pont_Shipping_Method->calculate_shipping, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

    Please can anybody help me to understand this message? How can I determine if this is from the theme or any plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    The error message seems to be related to a shippping plugin you have installed – specifically one that’s running a WC_Pont_Shipping_Method function.

    Of course, it’s possible that you manually added that functionality in your theme although that would be unusual ??

    Hope it helps.

    Thread Starter akshat05

    (@akshat05)

    Thanks, I just wanted to confirm, now I’m sure that it’s coming from the plugin ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘debugging an error message added in version 3.0’ is closed to new replies.