How to trace errors in debug.log for WooCommerce 3.0?

admin2025-04-18  0

I found a debug log error that states:

price was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Form_Handler::add_to_cart_action, WC_Form_Handler::add_to_cart_handler_variable, WC_Cart->add_to_cart, do_action('woocommerce_add_to_cart'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart->calculate_totals, do_action('woocommerce_before_calculate_totals'), WP_Hook->do_action, WP_Hook->apply_filters, after_before_calc_totals, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

I cannot find where to start with this.

All the templates in the theme are updated to the latest. I am currently looking in the functions.php to find out if it the error is there. But still having no luck.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744950166a276285.html

最新回复(0)