WooCommerce product errors
-
This morning I was logged into my cPanel and looked at my WordPress error_log file. This file is flooded with entries that look like this:
product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WC_REST_CRUD_Controller->get_items, WC_REST_Products_V2_Controller->prepare_object_for_response, WC_REST_Products_V2_Controller->get_product_data, WC_REST_CRUD_Controller->fetch_fields_using_getters, WC_REST_Products_V2_Controller->api_get_price_html, WC_Product_Variable->get_price_html, apply_filters('woocommerce_get_price_html'), WP_Hook->apply_filters, lw_hide_variation_price, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
How do I resolve this issue?
- The topic ‘WooCommerce product errors’ is closed to new replies.