That’s definitely more actions than we’d expect to see. You mentioned errors regarding WP Cron. Can you post an example of those errors too?
Thanks!
]]>Here are some errors from hosting error file, DB and WP/WC itself…
https://ibb.co/yVBTwX7
https://ibb.co/5BbKyVk
https://ibb.co/3Sm0T7v
https://ibb.co/WHCjGcB
https://ibb.co/0trkhNX
Thanks.
]]>Thanks for sending those over. If you go to Tools > Site Health are you seeing any warnings about possible issues?
If not, please install the WP Crontrol plugin. It’ll add a new section to the Tools menu called “Cron events.” Once that’s available, go there and see if there are any cron tasks that are late to run. Also, if there are any errors detected with WP Cron, they should be listed at the top of the screen.
Let us know what you find out.
]]>In Site Health there is no issues, all good here.
In WP Cron events, here are tasks…
https://ibb.co/MP5RdZb
https://ibb.co/c3C04yk
https://ibb.co/pQVm3TT
If this was my site, here’s what I would do.
1. Set up a staging site to test with so nothing happens to the live site.
2. Delete the pending scheduled actions.
3. Deactivate WooCommerce.
4. Activate WooCommerce again.
If that still causes problems, I would do the same thing again, except before activating WooCommerce, I would install the standalone Action Scheduler plugin and see what happens when it’s active without WooCommerce.
Let us know how it goes if you try this.
]]>Thank you.
]]>Sounds good! Let us know how it goes.
]]>Sorry for late reply due to holidays. I just tried all the above, when the WooCommerce is deactivated (with all plugins deactivated as well when others are activated), there is no DB and logs entries, the problem is solved. As soon as I activate WooCommerce, the DB and logs are starting to grow…
EDIT:
While WooCommerce is active, the database action_scheduler_log is growing enourmus, and W3 Total Cache was the reason for host/logs error file (deactivated and it stops growth, only 5 lines of some errors)
text/plain ferro-pack_com.php.error.log ( ASCII text, with very long lines )
[29-Dec-2021 15:46:30 UTC] WordPress database error Can't DROP INDEX <code>PRIMARY</code>; check that it exists for query ALTER TABLE <code>wp_woocommerce_sessions</code> DROP PRIMARY KEY, DROP KEY <code>session_id</code>, ADD PRIMARY KEY(<code>session_id</code>), ADD UNIQUE KEY(<code>session_key</code>) made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::install, WC_Install::create_tables
[29-Dec-2021 15:46:30 UTC] WordPress database error Incorrect table definition; there can be only one auto column and it must be defined as a key for query ALTER TABLE wp_woocommerce_sessions CHANGE COLUMN <code>session_id</code> session_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::install, WC_Install::create_tables, dbDelta
[29-Dec-2021 15:46:30 UTC] WordPress database error Duplicate entry '0' for key 'PRIMARY' for query ALTER TABLE wp_woocommerce_sessions ADD PRIMARY KEY (<code>session_id</code>) made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::install, WC_Install::create_tables, dbDelta
[29-Dec-2021 15:46:31 UTC] WordPress database error Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO <code>wp_actionscheduler_groups</code> (<code>slug</code>) VALUES ('action-scheduler-migration') made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Action_Scheduler\Migration\Controller->schedule_migration, Action_Scheduler\Migration\Scheduler->schedule_migration, as_schedule_single_action, ActionScheduler_ActionFactory->single, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action, ActionScheduler_DBStore->get_group_id, ActionScheduler_DBStore->create_group
[29-Dec-2021 15:47:34 UTC] WordPress database error Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO <code>wp_actionscheduler_groups</code> (<code>slug</code>) VALUES ('action-scheduler-migration') made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, Action_Scheduler\Migration\Controller->schedule_migration, Action_Scheduler\Migration\Scheduler->schedule_migration, as_schedule_single_action, ActionScheduler_ActionFactory->single, ActionScheduler_ActionFactory->store, ActionScheduler_HybridStore->save_action, ActionScheduler_DBStoreMigrator->save_action, ActionScheduler_DBStore->save_action, ActionScheduler_DBStore->get_group_id, ActionScheduler_DBStore->create_group
]]>
Good to know you found the cause that generated numerous error logs. As for the last errors you shared it sounds like a MariaDB issue.
Please be sure to run a WooCommerce core and WC database update to version 6.0.0 if you haven’t done it yet.
Here’s a guide on how to safely update WooCommerce: https://woocommerce.com/document/how-to-update-woocommerce/.
Thanks.
]]>