Cron background job causes error
-
Currently running WordPress 6.6.2 with Woocommerce 9.3.3 on PHP 5.8 and also tested with PHP 7.3. I suspect that this error has been with this installation for a long while. Basically the following is being logged with the debug log once per request:
Cron unschedule event error for hook: woocommerce_plugin_background_installer, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {"schedule":false,"args":["stripe",{"name":"Stripe","image":"http:\/\/domain.name\/wp-content\/plugins\/woocommerce\/assets\/images\/stripe.png","description":"**REDACTED**","class":"featured featured-row-first","repo-slug":"woocommerce-gateway-stripe"}]}
I’ve tried using the
wp
CLI to remove the event and also edited thecron
entry inwp_options
database table but this entry in the cron keeps coming back.As I’ve inherited this installation, I don’t know if the Stripe plugin has been installed at some point but it’s not installed at the moment even though I’ve installed and removed it just to see if it would solve the issue, but it did not.
wp cron event list
gives the following output:+----------------------------------------------+---------------------+-----------------------+---------------+
| hook | next_run_gmt | next_run_relative | recurrence |
+----------------------------------------------+---------------------+-----------------------+---------------+
| woocommerce_plugin_background_installer | 2017-05-12 09:11:09 | now | Non-repeating |Any ideas how I get rid of this error?
- You must be logged in to reply to this topic.