• Resolved Gal Baras

    (@galbaras)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ahmadshyk

    (@ahmadshyk)

    Thank you to report the issue.
    Just released the updated version (1.0.3).

    Thread Starter Gal Baras

    (@galbaras)

    Sorry, but a couple of the errors are not gone, just changed. I’ve narrowed it down to when a product is removed from the mini-cart (missing parentheses on function calls, lines 51 and 55 of frontend/wmc-default-fragment.php):

    [18-Sep-2019 02:11:18 UTC] get_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.

    [18-Sep-2019 02:11:18 UTC] get_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.

    Plugin Author ahmadshyk

    (@ahmadshyk)

    Should be fixed now. Thank you for your valuable feedback.

    Let me know if there’s any other problem.

    Thank you!

    Thread Starter Gal Baras

    (@galbaras)

    Awesome support. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WC_Cart::get_checkout_url function is deprecated’ is closed to new replies.