Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doing it wrong #162

Open
Dekadinious opened this issue Dec 19, 2024 · 4 comments
Open

Doing it wrong #162

Dekadinious opened this issue Dec 19, 2024 · 4 comments

Comments

@Dekadinious
Copy link

[19-Dec-2024 12:30:05 UTC] Funksjonen WC_Order_Data_Store_CPT::query ble kalt feil. Ordespørringsargumentet (meta_query) er ikke støttet i dette ordredatalageret. do_action_ref_array('vipps_cron_cleanup_hook'), WP_Hook->do_action, WP_Hook->apply_filters, Vipps->cron_cleanup_hook, Vipps->delete_old_cancelled_orders, wc_get_orders, WC_Order_Query->get_orders, WC_Data_Store->__call, WC_Order_Data_Store_CPT->query, wc_doing_it_wrong Se Feilsøking i WordPress for mer informasjon. (Denne meldingen ble lagt i versjon 9.2.0.) in /www/any/wp-includes/functions.php on line 6114

@iverok
Copy link
Collaborator

iverok commented Dec 19, 2024

Is this for a HPOS site, or using the old posts-based order storage?

@Dekadinious
Copy link
Author

Still on the old posts-based order storage :)

@iverok
Copy link
Collaborator

iverok commented Dec 19, 2024

Aha, that explains it. The code in question does support the legacy storage, but it adds the meta_query argument for HPOS. The legacy query does indeed not support meta_query; I guess they added a "doing it wrong" instead of adding support for it.

The message is harmless; I'll silence it for next version of the plugin. Thanks for reporting!

@Dekadinious
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants