• Resolved priyam1234

    (@priyam1234)


    Hey

    In the past few days, I’ve been facing some serious database-related issues on my Hostinger server. I have more than 10 domains hosted, and each project is built on WordPress with different concepts. All of them use the WooCommerce plugin, though the versions vary because I only update WooCommerce when delivering new feature updates.

    Since the last 3–4 days, I’ve started seeing database errors across all projects. Here are some of the logs:



    ================================================

    [02-Sep-2025 05:56:48 UTC] WordPress database error Duplicate key name ‘claim_id_status_priority_scheduled_date_gmt’ for query ALTER TABLE wp_actionscheduler_actions ADD KEY claim_id_status_priority_scheduled_date_gmt (claim_id,status,priority,scheduled_date_gmt) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_DBStore->init, ActionScheduler_Abstract_Schema->register_tables, ActionScheduler_Abstract_Schema->update_table, dbDelta

    [02-Sep-2025 05:47:36 UTC] WordPress database error Commands out of sync; you can’t run this command now for query SELECT option_name, option_value FROM wp_options WHERE option_name IN (‘_transient_timeout_jetpack_autoloader_plugin_paths’) made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Autoloader…



    ===================

    For debugging, I tried:

    • Updating WooCommerce to the latest version in some projects
    • Deleting failed Action Scheduler entries

    However, the same errors reappear after some time.

    Could you please suggest the best steps to properly debug and resolve this issue?
    For reference, my server is running PHP version 8.2.

    Thanks in advance for your guidance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the database error messages you are encountering. From the errors provided, it seems there are two main issues:

    1. Duplicate key error on the wp_actionscheduler_actions table

    The error:

    Duplicate key name ‘claim_id_status_priority_scheduled_date_gmt’ for query ALTER TABLE wp_actionscheduler_actions ADD KEY claim_id_status_priority_scheduled_date_gmt (claim_id,status,priority,scheduled_date_gmt)

    indicates that an attempt to add an index key that already exists is happening during a database table update for the Action Scheduler. This typically happens if a plugin update or database migration attempts to add an index that’s already present.

    Backup your database first before attempting anything.

    – For the Action Scheduler duplicate key error:

    You can verify in your database if the index claim_id_status_priority_scheduled_date_gmt already exists on wp_actionscheduler_actions. If it does, it’s safe to skip or remove the failed ALTER TABLE statement from any update scripts or let your site ignore this error as it’s non-critical.

    Alternatively, run this SQL to check existing indexes and confirm:


    SHOW INDEX FROM wp_actionscheduler_actions;

    2. “Commands out of sync” error for Jetpack transient query

    The error:

    Commands out of sync; you can’t run this command now for query SELECT option_name, option_value FROM wp_options WHERE option_name IN ('_transient_timeout_jetpack_autoloader_plugin_paths')

    suggests a conflict or corruption in the database communication likely caused by Jetpack or an associated autoloader.

    This sometimes happens due to a plugin conflict or outdated Jetpack version. Please:

    – Make sure Jetpack is updated to its latest version

    – Try deactivating and reactivating Jetpack and check if the error persists

    If you still face the same issue, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    If you have a few minutes, we’d love if you could leave us a review: https://wordpress.org/support/plugin/woocommerce/reviews/

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

You must be logged in to reply to this topic.