Product properties should not be accessed directly
-
I’m receiving the following ERROR:
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_gm_send_cart_data’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Ghostmonitor->send_cart_data_ajax, WC_Ghostmonitor->collect_ghostmonitor_data, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
PHP message: post was called incorrectly.I know why this is happen, also I’m hoping to fix it and have an update for this.
My current version of WooCommerce is 3.1.2
Thank you.
- The topic ‘Product properties should not be accessed directly’ is closed to new replies.