Title: debug.log errors
Last modified: October 25, 2024

---

# debug.log errors

 *  Resolved [petertely](https://wordpress.org/support/users/petertely/)
 * (@petertely)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/debug-log-errors-5/)
 * 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](https://developer.wordpress.org/advanced-administration/debug/debug-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.3PHP 8.2.24Parcel 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](https://wordpress.org/support/users/ppjessie/)
 * (@ppjessie)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/debug-log-errors-5/#post-18106288)
 * 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`.
 * ![](https://i0.wp.com/cdn.parcelpanel.com/woocommerce/assets/plugin/email/11983/
   20241031/84c3e518b5847a56f5472a768368aad1.png?ssl=1)
 * 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 trackingJessie
 *  Thread Starter [petertely](https://wordpress.org/support/users/petertely/)
 * (@petertely)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/debug-log-errors-5/#post-18107140)
 * 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.3PHP 8.2.24Parcel Panel 4.4.0LiteSpeed Cache 
   6.5.2 (preset “Advanced (recommended)”)
 *  Plugin Support [Jessie](https://wordpress.org/support/users/ppjessie/)
 * (@ppjessie)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/debug-log-errors-5/#post-18153129)
 * 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 trackingJessie
 *  Thread Starter [petertely](https://wordpress.org/support/users/petertely/)
 * (@petertely)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/debug-log-errors-5/#post-18155251)
 * 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)

The topic ‘debug.log errors’ is closed to new replies.

 * ![](https://ps.w.org/parcelpanel/assets/icon-256x256.png?rev=3449305)
 * [ParcelWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce](https://wordpress.org/plugins/parcelpanel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/parcelpanel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/parcelpanel/)
 * [Active Topics](https://wordpress.org/support/plugin/parcelpanel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/parcelpanel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/parcelpanel/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [petertely](https://wordpress.org/support/users/petertely/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/debug-log-errors-5/#post-18155251)
 * Status: resolved