• Resolved Katrina Massey

    (@katrinadtl)


    To optimize a client site, I modified the WooCommerce action_scheduler_rention_period and action_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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @katrinadtl,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Can you please share the Filter code which you have added to change the batch_size & the retention_period?

    Looking forward to helping you.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello,

    Assuming you are using the latest version of all the plugins, themes & WordPress, and the issue is resolved, we are closing this topic. If the issue is still not resolved, please feel free to open a new support topic or reply to this topic and we will be more than happy to assist.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error InvalidArgumentException, Action Scheduler’ is closed to new replies.