{"id":18095587,"date":"2024-10-25T10:30:15","date_gmt":"2024-10-25T10:30:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/debug-log-errors-5\/"},"modified":"2024-10-25T10:30:15","modified_gmt":"2024-10-25T10:30:15","slug":"debug-log-errors-5","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/debug-log-errors-5\/","title":{"rendered":"debug.log errors"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If order storage is set to <strong>WC_Order_Data_Store_CPT<\/strong> mode, the Parcel Panel plugin generates the following errors in the debug.log:<\/p>\n\n\n\n<ul>\n<li>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(&#8216;wp-blog-header.php&#8217;), wp, WP-&gt;main, WP-&gt;parse_request, do_action_ref_array(&#8216;parse_request&#8217;), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, rest_api_loaded, WP_REST_Server-&gt;serve_request, WP_REST_Server-&gt;dispatch, WP_REST_Server-&gt;respond_to_request, ParcelPanel\\Api\\Orders-&gt;get_orders, wc_get_orders, WC_Order_Query-&gt;get_orders, WC_Data_Store-&gt;__call, WC_Order_Data_Store_CPT-&gt;query, wc_doing_it_wrong. This message was added in version 9.2.0.<\/li>\n\n\n\n<li>PHP Warning: Attempt to read property &#8220;ID&#8221; on int in \/wp-includes\/post.php on line 7385<\/li>\n\n\n\n<li>PHP Warning: Attempt to read property &#8220;ID&#8221; on int in \/wp-includes\/post.php on line 7472<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If order storage is set to <strong>High-Performance Order Storage (HPOS)<\/strong> mode, the Parcel Panel plugin generates the following error in the debug.log:<\/p>\n\n\n\n<ul>\n<li>PHP Notice: Function WP_User_Query::query was called <strong>incorrectly<\/strong>. User queries should not be run before the <code>plugins_loaded<\/code> hook. Please see <a href=\"https:\/\/developer.wordpress.org\/advanced-administration\/debug\/debug-wordpress\/\">Debugging in WordPress<\/a> for more information. (This message was added in version 6.1.1.) in \/wp-includes\/functions.php on line 6085<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Environment:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress 6.6.2<br \/>WooCommerce 9.3.3<br \/>PHP 8.2.24<br \/>Parcel Panel 4.3.9<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This issue, observed across several of our stores, is easily reproducible each time the Parcel Panel plugin is deactivated\/reactivated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you in advance.<\/p>\n","protected":false},"template":"","class_list":["post-18095587","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18095587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18095587\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18095587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}