Cron job “woocommerce_cancel_unpaid_orders” problem
-
Hello,
I have a problem with the cron job “woocommerce_cancel_unpaid_orders”. This cron job sometimes disappear and the orders stay at the “Pending Payment” status instead of being canceled (I have set “Hold stock” value to 60 minutes). When I go to the Woocommerce settings > inventory and save again the settings, “woocommerce_cancel_unpaid_orders” is re-created and all is working fine. The problem is that after sometime this cron job will not be automatically re-created and the orders will stay at “Pending”.
The first time this happened was 2 months ago after all plugins update, the cron job disappeared. 1 month ago it happened again, also after plugins update. Few days ago the cron job disappeared for unknown reason as there was no update at all.
In the Woocommerce logs I have this issue:
2022-09-14T09:12:42+00:00 ERROR Spec is invalid because a rule is invalid in feed 2022-09-14T09:12:42+00:00 ERROR stdClass Object ( [type] => wcadmin_active_for [operation] => > [months] => 11 ) 2022-09-14T09:12:42+00:00 ERROR stdClass Object ( [slug] => googlelistings_signals2022_hasGLA [type] => marketing [status] => unactioned [is_snoozable] => 0 [source] => woocommerce.com [locales] => Array ( [0] => stdClass Object ( [locale] => en_US [title] => Show off your products with Ads on Google [content] => You’re ready to grow with ads. Google optimizes for performance across your products; you only pay for results. If you’re new to Google, you can earn up to $500 in ad credits (T&Cs apply). <a href="https://woocommerce.com/my-account/create-a-ticket/">Contact support</a> if you need guidance with Google Listings & Ads. ) ) [actions] => Array ( [0] => stdClass Object ( [name] => googlelistings_signals2022_hasGLA_click [locales] => Array ( [0] => stdClass Object ( [locale] => en_US [label] => Connect Google Listings & Ads ) ) [url] => admin.php?page=wc-admin&path=marketing [url_is_admin_query] => 1 [is_primary] => 1 [status] => unactioned ) ) [rules] => Array ( [0] => stdClass Object ( [type] => publish_after_time [publish_after] => 2022-09-12 07:23:39 ) [1] => stdClass Object ( [type] => publish_before_time [publish_before] => 2022-10-12 23:59:00 ) [2] => stdClass Object ( [type] => plugins_activated [plugins] => Array ( [0] => google-listings-and-ads ) ) [3] => stdClass Object ( [type] => wcadmin_active_for [operation] => > [months] => 11 ) [4] => stdClass Object ( [type] => product_count [operation] => > [value] => 76 ) [5] => stdClass Object ( [type] => order_count [operation] => > [value] => 38 ) [6] => stdClass Object ( [type] => total_payments_value [days] => last_year [value] => 3700 [operation] => > ) ) )
Do you have any idea of what could cause this cron job to not be automatically re-created?
Thanks.
- The topic ‘Cron job “woocommerce_cancel_unpaid_orders” problem’ is closed to new replies.