• Resolved carmpocalypse

    (@carmpocalypse)


    Hello,

    While performing a ‘Bulk Deletion’ of completed tasks in WooCommerce > Status > Scheduled Actions, I received a Critical Error:

    Error Details
    
    An error of type E_ERROR was caused in line 724 of the file /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php. Error message: Uncaught InvalidArgumentException: Unidentified action 5382 in /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:724
    Stack trace: 0 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php(505): ActionScheduler_DBStore->delete_action(5382) 1 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php(190): ActionScheduler_ListTable->bulk_delete(Array, '('5382','5383',…') 2 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php(727): ActionScheduler_Abstract_ListTable->process_bulk_action() 3 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_AdminView.php(107): ActionScheduler_Abstract_ListTable->process_actions() 4 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_AdminView.php(88): ActionScheduler_AdminView->get_list_table() 5 /home/xxxx/public_html/wp-includes/class-wp-hook.php(308): ActionScheduler_AdminView->process_admin_ui('') 6 /home/xxxx/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) 7 /home/xxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 8 /home/xxxx/public_html/wp-admin/admin.php(237): do_action('load-tools_page…') 9 /home/xxxx/public_html/wp-admin/tools.php(40): require_once('/home/xxxx/p…') 10 {main} thrown

    Additional info:
    WordPress version 6.1.2
    Current plugin: WooCommerce (version 7.6.1)
    PHP version 8.2.6

    *I since updated to WooCommerce (version 7.7.0)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ron Rennick

    (@wpmuguru)

    @carmpocalypse Do you get this error every time you bulk delete actions?

    Plugin Author Barry

    (@barryhughes-1)

    Thanks for reporting this, @carmpocalypse.

    Is it something you can replicate, or that you have been encountering regularly, and would you be happy to share a list of other plugins that are active on your site?

    It may not be relevant, but what sort of actions were you deleting—any specific hook, or just a mix of old actions?

    Thanks so much!

    Thread Starter carmpocalypse

    (@carmpocalypse)

    @wpmuguru
    This was the first time that this ever happened.

    @barryhughes-1
    I can try and replicate it when I get 4 full pages of completed actions, this was the first time it has ever happened. I was deleting WooCommerce actions:
    woocommerce_cleanup_draft_orders
    woocommerce_run_product_attribute_lookup_regeneration_callback
    woocommerce_run_update_callback
    woocommerce_update_db_to_current_version
    woocommerce_run_on_woocommerce_admin_updated

    I was doing full pages at once and doing them rather quickly.


    Saif

    (@babylon1999)

    Hello @carmpocalypse,

    I tried deleting at least 10 pages of completed actions while changing server settings but I was unable to replicate the issue.

    I check the affected line and noticed it checks for the $delete actions and generates an error if the deletion of an action fails or no rows are deleted in the database. Therefore, the cause might be related to a database connection problem or a limitation on the number of queries that can be made (pure speculation not based on anything). :?)

    Can you please confirm if this happens when deleting pages slowly?

    Also, are you able to replicate the issue when deactivating all plugins except WooCommerce?

    Look forward to hearing back from you.

    Plugin Author Barry

    (@barryhughes-1)

    I logged an enhancement request since it does feel like we could guard against this sort of condition and handle it with a little more grace (however, it so far feels like something that will only happen very rarely, in most cases).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Critical Error’ is closed to new replies.