Fatal error InvalidArgumentException, Action Scheduler
-
To optimize a client site, I modified the WooCommerce
action_scheduler_rention_period
andaction_scheduler_cleanup_batch_size
filters to cause the completed actions to clear out faster than the default 31 days.
When I visited WooCommerce > Status > Scheduled Actions I received a fatal error message on the specific screen. Other areas of the admin dashboard were not affected.PHP Fatal error: Uncaught InvalidArgumentException: Invalid action ID. No status found. in wp-content\plugins\seo-by-rank-math\vendor\woocommerce\action-scheduler\classes\data-stores\ActionScheduler_DBStore.php:861
I browsed away from the screen and returned and the error seemed to clear. And the logs beyond the time period I specified have cleared up. I’m testing this in local dev, but I would hate for this to cause problems for the client in production.
- The topic ‘Fatal error InvalidArgumentException, Action Scheduler’ is closed to new replies.