• I am testing Order tracking, i get this text above my options:

    Order properties should not be accessed directly. Backtrace: do_action(‘woocommerce_page_wc-orders’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\Admin\Orders\PageController->output, Automattic\WooCommerce\Internal\Admin\Orders\Edit->display, Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes, do_meta_boxes, YITH_WooCommerce_Order_Tracking->show_order_tracking_metabox, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Could you tell us which version of the plugin you use? Do you have HPOS active?

    Let us know any news.

    Best regards.

    Hi @juaancmendez,

    I’m having the same issue. It works fine when I changed to WordPress posts storage (legacy). Is this plugin not compatible with HPOS?

    Function ID was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘woocommerce_page_wc-orders’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\WooCommerce\Internal\Admin\Orders\PageController->output, Automattic\WooCommerce\Internal\Admin\Orders\Edit->display, Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes, do_meta_boxes, YITH_WooCommerce_Order_Tracking->show_order_tracking_metabox, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong Please see?Debugging in WordPress?for more information. (This message was added in version 3.0.) in?/public_html/wp-includes/functions.php?on line?6078

    YITH WooCommerce Order & Shipment Tracking – Version 2.26.0
    WooCommerce – Version 8.9.3
    HPOS – Yes

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    We have prevented this warning from appearing in the logs by having HPOS active, and this fix will be available in the next version of the plugin that will be released this week.

    If you need to test the change, you will need to replace the following line of code:

    \wp-content\plugins\yith-woocommerce-order-tracking\includes\class.yith-woocommerce-order-tracking.php:326

    $data                = get_post_custom( $post->ID );

    For this:

    $order = wc_get_order( $post );

    if ( ! $order ) {
    return;
    }

    $order_id = $order->get_id();
    $data = get_post_custom( $order_id );

    Check it out and tell us any news, please.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.