• Resolved nikdow

    (@nikdow)


    This WP site doesn’t have the WC plugin loaded, and yet we are seeing these errors:

    [21-Apr-2025 19:34:46 UTC] WordPress database error Table 'bmw.wpkkk_actionscheduler_actions' doesn't exist for query UPDATE wpkkk_actionscheduler_actions SET claim_id=0, last_attempt_gmt='2025-04-21 19:34:46', last_attempt_local='2025-04-22 05:34:46' WHERE claim_id = 0 AND scheduled_date_gmt <= '2025-04-21 19:34:46' AND status='pending' ORDER BY priority ASC, attempts ASC, scheduled_date_gmt ASC, action_id ASC LIMIT 25 made by do_action_ref_array('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_HybridStore->stake_claim, ActionScheduler_DBStore->stake_claim, ActionScheduler_DBStore->claim_actions
    [21-Apr-2025 19:34:46 UTC] PHP Fatal error: Uncaught RuntimeException: Unable to claim actions. Database error: Table 'bmw.wpkkk_actionscheduler_actions' doesn't exist. in /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:942
    Stack trace: 0 /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(799): ActionScheduler_DBStore->claim_actions(0, 25, NULL, '', '') 1 /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(221): ActionScheduler_DBStore->stake_claim(25, NULL, Array, '') 2 /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(160): ActionScheduler_HybridStore->stake_claim(25) 3 /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_QueueRunner.php(139): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron') 4 /home/lamp/wordpress/core/wp6.8/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run('WP Cron') 5 /home/lamp/wordpress/core/wp6.8/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) 6 /home/lamp/wordpress/core/wp6.8/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 7 /home/lamp/wordpress/core/wp6.8/wp-cron.php(191): do_action_ref_array('action_schedule…', Array) 8 {main}

    thrown in /home/lamp/wordpress/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 942

    I’m anticipating a reply that some other plugin must be doing bad things. But if WC isn’t loaded, why is SMTP calling /vender/woocommerce? Could a check be made before calling, to prevent this error, no matter how it is caused?

    Thanks!

    • This topic was modified 7 months, 3 weeks ago by nikdow.
    • This topic was modified 7 months, 3 weeks ago by nikdow.
    • This topic was modified 7 months, 3 weeks ago by nikdow. Reason: upgraded to WP6.8

    The page I need help with: [log in to see the link]

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

    (@paddyam)

    Hi @nikdow,

    The WP Mail SMTP plugin makes use of the Action Scheduler library by WooCommerce which explain why the log points to vendor/woocommerce/action-scheduler/. This allows the plugin to manage and schedule cron jobs cron jobs on the site.

    The error that you’re seeing indicates that one of the required tables bmw.wpkkk_actionscheduler_actions used to store the scheduled items is missing on your site.

    To troubleshoot and fix the missing table issue, you can install the Action Scheduler Plugin.This will re-create the tables, and in the case where the tables do not get created, I’d recommend checking with your host for any limitations on your database preventing database table creation.

    I hope this helps.

    Thread Starter nikdow

    (@nikdow)

    Thanks for the guidance, plugin installed and after increasing the access of the database user, it ran OK. We run wp-mail-smtp on all our sites, so will keep an eye out for this error on any other sites.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘error in /vendor/woocommerce but WC not loaded’ is closed to new replies.