• Resolved Jaap de Wit

    (@hitec4ever)


    Hi,

    I see this error in the logs. It contains info about order weight. Is this plugin related? If so, how can this be fixed?

    [Tue Nov 08 13:44:25.145129 2022] [proxy_fcgi:error] [pid 30420:tid 140522630915840] [client 52.91.232.240:0] AH01071: Got error 'PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Order 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_Orders_V2_Controller->prepare_object_for_response, apply_filters('woocommerce_rest_prepare_shop_order_object'), WP_Hook->apply_filters, Woo_Order_Weight_Admin->woo_api_order_response, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.'

    Cheers,
    Jaap

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andreas Karman

    (@andreaskarman)

    Hi Jaap,

    Seems like it is plugin related. I’m working to resolve the errors and release an update of the plugin as fast as possible!

    Plugin Author Andreas Karman

    (@andreaskarman)

    @hitec4ever, this should now be resolved with the new 0.6.4 update. Please try it out and get back to me with any additional feedback!

    Thread Starter Jaap de Wit

    (@hitec4ever)

    @andreaskarman thanks for the update. I haven’t seen the error anymore.

    Cheers,
    Jaap

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce error’ is closed to new replies.