WC_Cart::get_checkout_url function is deprecated
-
Looks like this plugin needs a compatibility fix. I’m getting the following messages in error_log:
WC_Cart::get_checkout_url function is deprecated since version 2.5. Replace with wc_get_checkout_url
[17-Sep-2019 07:36:15 UTC] id 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_get_refreshed_fragments’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::get_refreshed_fragments, apply_filters(‘woocommerce_add_to_cart_fragments’), WP_Hook->apply_filters, WMC_Main_Class->wmc_fragments, require(‘/plugins/woo-minicart/frontend/wmc-default-fragment.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
[17-Sep-2019 07:36:15 UTC] sku 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_get_refreshed_fragments’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::get_refreshed_fragments, apply_filters(‘woocommerce_add_to_cart_fragments’), WP_Hook->apply_filters, WMC_Main_Class->wmc_fragments, require(‘/plugins/woo-minicart/frontend/wmc-default-fragment.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.
- The topic ‘WC_Cart::get_checkout_url function is deprecated’ is closed to new replies.