• petertely

    (@petertely)


    Hi,

    If order storage is set to WC_Order_Data_Store_CPT mode, the Parcel Panel plugin generates the following errors in the debug.log:

    • WC_Order_Data_Store_CPT::query was called incorrectly. The command query argument (meta_query) is not supported on the current command datastore. 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, ParcelPanel\Api\Orders->get_orders, wc_get_orders, WC_Order_Query->get_orders, WC_Data_Store->__call, WC_Order_Data_Store_CPT->query, wc_doing_it_wrong. This message was added in version 9.2.0.
    • PHP Warning: Attempt to read property “ID” on int in /wp-includes/post.php on line 7385
    • PHP Warning: Attempt to read property “ID” on int in /wp-includes/post.php on line 7472

    If order storage is set to High-Performance Order Storage (HPOS) mode, the Parcel Panel plugin generates the following error in the debug.log:

    • PHP Notice: Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.) in /wp-includes/functions.php on line 6085

    Environment:

    WordPress 6.6.2
    WooCommerce 9.3.3
    PHP 8.2.24
    Parcel Panel 4.3.9

    This issue, observed across several of our stores, is easily reproducible each time the Parcel Panel plugin is deactivated/reactivated.

    Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jessie

    (@ppjessie)

    Hi there,

    Thank you for reaching out.

    After review by our development team, here are our findings:

    1. First Issue: We followed your steps and successfully reproduced the issue. We plan to release compatibility updates for this in mid-November. However, please note that WooCommerce recommends using the HPOS (High-Performance Order Storage) option, so until our compatibility update is live, we suggest opting for HPOS if possible.
    2. Second Issue: We were unable to reproduce this issue. The PHP Notice you mentioned did not appear, and we believe the error may not necessarily be caused by our application (as shown in the screenshot).
      Note: We’ve already set PHP’s error level to error_reporting = E_ALL.

    If you continue to encounter this issue and are confident it is caused by Parcel Panel, please feel free to contact us with more detailed information.

    Best regards,
    ParcelPanel order tracking
    Jessie

    Thread Starter petertely

    (@petertely)

    Hello Jessie,

    Thank you for your response.

    It’s good to hear that you were able to reproduce the errors related to WC_Order_Data_Store_CPT. It’s unfortunate that you couldn’t reproduce those related to HPOS. The debug.log for the shops in HPOS mode where I use ParcelPanel shows the following error about ten times a day:

    PHP Notice: Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.) in /wp-includes/functions.php on line 6085

    and the following error 1 to 3 times a day:

    PHP Notice: The wpdb::prepare function was called incorrectly. The wpdb::prepare() query argument must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /wp-includes/functions.php on line 6085

    On these various shops, disabling ParcelPanel prevents new occurrences of these errors from appearing in the debug.log.

    Environment:

    WordPress 6.6.2
    WooCommerce 9.3.3
    PHP 8.2.24
    Parcel Panel 4.4.0
    LiteSpeed Cache 6.5.2 (preset “Advanced (recommended)”)

    Plugin Support Jessie

    (@ppjessie)

    Hi there,

    Thanks for your patience! I’m happy to let you know that the issues you mentioned have been fixed in our latest release, V4.4.1. Feel free to upgrade and check it out. We really appreciate your feedback!

    Best regards,
    ParcelPanel order tracking
    Jessie

    Thread Starter petertely

    (@petertely)

    Hi Jessie,

    It’s excellent if you’ve managed to fix all the errors mentioned in this post.
    I’ve just installed ParcelPanel 4.4.1 and will monitor over the next few days to see if the errors have indeed disappeared.

    Thank you for your excellent work.
    Peter

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