Guard against Fatal Errors in `OrdersTableQuery`
Author: nerradCreated May 24, 2025Updated Sep 18, 2026
LabelsBugData Structure/CRUD/Backend Processingneeds: engineering
In logs we are saw some reporting of fatal error spikes in src/Internal/DataStores/Orders/OrdersTableQuery.php. The stack trace for most of these errors had this:
/srv/htdocs/wp-content/plugins/code-snippets/php/snippet-ops.php(584) : eval()'d code(8): wc_get_orders(Array)The likely suspect here is that this snippet plugin is providing bad arguments to wc_get_orders which in turn is triggering the fatal error. Some type checks should be added here (at least that's where I think the error is getting triggered).
Source: woocommerce/woocommerce