Notification “Function called incorrectly”
-
Query Monitor reports several “called incorrectly” notices on every page load when CTX Feed / Product Feed for WooCommerce (v8.0.9) is active. All originate from the same root cause: the plugin bootstraps on the plugins_loaded hook, too early for both WordPress translations and Action Scheduler.
1) Translation loading for the woo-feed domain (and even the woocommerce domain) is triggered too early, via CTXFeed\V8\Dashboard\WidgetRegistry::registerDefaults() calling __() during DashboardServiceProvider::boot() (Dashboard/WidgetRegistry.php:45).
2) CTXFeed\V8\Feed\FeedServiceProvider::register_recurring_backfill() (Feed/FeedServiceProvider.php:277 and :283) calls as_has_scheduled_action() and as_schedule_single_action() before the Action Scheduler data store is initialized. This looks more serious than a log notice — it may mean the recurring backfill action isn’t reliably scheduled.
Both chains trace back to Bootstrap::init() -> boot_v8() running on plugins_loaded (woo-feed.php:254). Deferring the relevant service provider boot logic to init (or later, after Action Scheduler is ready) should resolve all four notices.
Thanks,
Dmitry
You must be logged in to reply to this topic.