Critical Error in ActionScheduler_DBStore.php
-
Hi,
The wp_actionscheduler_logs table in my MySQL db is filling up to over 2Gb in seconds. If I use PhpMyadmin to empty the table (TUNCATE), the db reduces in size, but then immediately fills again.
My host (Siteground) had a 1Gb limit on my db size so will place limits on my db if I can’t resolve this.
Woocommerce logs are showing a critical error as follows:
2025-05-01T10:23:29+00:00 Critical Uncaught RuntimeException: Unable to release actions from claim id 1731106. in /home/customer/www/learning-to-see.co.uk/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:1128
Additional context
{
"error": {
"type": 1,
"file": "/home/customer/www/learning-to-see.co.uk/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php",
"line": 1128
},
"remote-logging": true,
"backtrace": [
"",
"#0 /home/customer/www/learning-to-see.co.uk/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(440): ActionScheduler_DBStore->release_claim(Object(ActionScheduler_ActionClaim))",
"#1 /home/customer/www/learning-to-see.co.uk/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(195): ActionScheduler_HybridStore->release_claim(Object(ActionScheduler_ActionClaim))",
"#2 /home/customer/www/learning-to-see.co.uk/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(158): ActionScheduler_QueueRunner->do_batch(25, 'WP Cron')",
"#3 /home/customer/www/learning-to-see.co.uk/public_html/wp-includes/class-wp-hook.php(324): ActionScheduler_QueueRunner->run('WP Cron')",
"#4 /home/customer/www/learning-to-see.co.uk/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)",
"#5 /home/customer/www/learning-to-see.co.uk/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)",
"#6 /home/customer/www/learning-to-see.co.uk/public_html/wp-cron.php(191): do_action_ref_array('action_schedule...', Array)",
"#7 {main}",
"thrown"
]
}I can’t access the scheduled actions page at /tools.php?page=action-scheduler&status=past-due&order=asc, the page gives me a critical error.
The most recent plugin-woocommerce log shows a large number of rows as folow:
2025-04-30T00:01:00+00:00 Warning Empty patterns received from the PTK Pattern StoreI’m assuming this is related to the fetch_patterns entry in the wp_actionscheduler_actions table in the db, this is the data from the relevant row in that table:
0
fetch_patterns
pending
2025-04-30 16:41:40
2025-04-30 16:41:40
[]
O:30:"ActionScheduler_SimpleSchedule":2:{s:22:"*...
7
0
2025-05-01 11:06:48
2025-05-01 11:06:48
0
NULL
10Previously, it was this table, wp_actionscheduler_actions, that was causing a db size issue. Yesterday I deleted all actions that weren’t pending, exported the table and then imported it to reclaim disk space. That seemed to solve the db size issue.
But ovenight, the wp_actionscheduler_logs table has filled up (it was previously about 200MB, now over 2GB). Before this it was around 200MB.
I’ve tried disabling all plugins, but still can’t access the Scheduled Actions page in Woocommerce – it still gives me a critical error.
If anyone can help me with this problem I’d be most grateful! It’s the log file filling up that’s the problem.
The rows in the wp_actionscheduler_logs table all seem to be the same, with this message: “action ignored via Async Request”. A new row is added multiple times per second – I’m not sure how many, but it fills the first page at 50 rows viewed.
System Status:
<details><summary>System Status Report</summary>
<br>### WordPress Environment ###<br><br>WordPress address (URL): [Redacted]<br>Site address (URL): [Redacted]<br>WC Version: 9.8.3<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ✔ 3.9.2<br>Log Directory Writable: ✔<br>WP Version: 6.8.1<br>WP Multisite: –<br>WP Memory Limit: 768 MB<br>WP Debug Mode: –<br>WP Cron: ✔<br>Language: en_US<br>External object cache: –<br><br>### Server Environment ###<br><br>Server Info: Apache<br>PHP Version: 8.3.20<br>PHP Post Max Size: 256 MB<br>PHP Time Limit: 120<br>PHP Max Input Vars: 3000<br>cURL Version: 8.9.1<br>OpenSSL/3.2.4<br><br>SUHOSIN Installed: –<br>MySQL Version: 8.0.39-30<br>Max Upload Size: 256 MB<br>Default Timezone is UTC: ✔<br>fsockopen/cURL: ✔<br>SoapClient: ✔<br>DOMDocument: ✔<br>GZip: ✔<br>Multibyte String: ✔<br>Remote Post: ✔<br>Remote Get: ✔<br><br>### Database ###<br><br>[REDACTED]<br><br>### Post Type Counts ###<br><br>amn_mi-lite: 2<br>amn_om: 3<br>attachment: 3377<br>custom_css: 1<br>displayed_gallery: 4<br>display_type: 8<br>envira: 1<br>nav_menu_item: 10<br>nf_sub: 4<br>ngg_album: 2<br>ngg_gallery: 7<br>ngg_pictures: 46<br>page: 439<br>portfolio: 7<br>post: 567<br>product: 42<br>product_variation: 6<br>revision: 6<br>shop_coupon: 1<br>shop_order: 46<br>shop_order_refund: 1<br>ultimate-auction: 9<br>wp_global_styles: 2<br>wp_navigation: 1<br><br>### Security ###<br><br>Secure connection (HTTPS): ✔<br>Hide errors from visitors: ✔<br><br>### Active Plugins (17) ###<br><br>Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick ...: by Nicolas Jonas – 10.6.12<br>Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.7<br>Kit (formerly ConvertKit): by Kit – 2.8.0<br>Envira Gallery Lite: by Envira Gallery Team – 1.10.0<br>Genesis Connect for WooCommerce: by StudioPress – 1.1.2<br>Genesis Custom Footer: by Nuts and Bolts Media – 1.0.1<br>Genesis Grid: by Bill Erickson – 1.4.2<br>Genesis Blocks Pro: by WP Engine – 3.1.7<br>Genesis Simple Hooks: by StudioPress – 2.3.0<br>Genesis Simple Sidebars: by StudioPress – 2.2.3<br>Gravity Forms: by Gravity Forms – 2.9.7.2<br>Gravity Forms Kit Add-On: by Gravity Forms – 1.1.0<br>Redirection: by John Godley – 5.5.2<br>Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.6<br>Speed Optimizer: by SiteGround – 7.7.2<br>WooCommerce: by Automattic – 9.8.3<br>WP Crontrol: by John Blackbourn – 1.19.0<br><br>### Inactive Plugins (7) ###<br><br>NextGEN Gallery: by Imagely – 3.59.12<br>Page Builder by SiteOrigin: by SiteOrigin – 2.31.6<br>Solid Backups – Legacy: by SolidWP – 9.1.16<br>WooCommerce - ShipStation Integration: by WooCommerce – 4.5.1<br>WooCommerce Simple Auction: by wpgenie – 3.0.5<br>WooCommerce Stripe Gateway: by Stripe – 9.4.1<br>WPForms Lite: by WPForms – 1.9.5.1<br><br>### Settings ###<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: auction (auction)<br>external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ✔<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: –<br><br>### Logging ###<br><br>Enabled: ✔<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 1 MB<br><br>### WC Pages ###<br><br>Shop base: #27797 - /shop<br>Cart: #27798 - /cart - Contains the woocommerce_cart shortcode<br>Checkout: #27799 - /checkout - Contains the woocommerce_checkout shortcode<br>My account: #27800 - /my-account - Contains the [woocommerce_my_account] shortcode<br>Terms and conditions: ❌ Page not set<br><br>### Theme ###<br><br>Name: Essence Pro<br>Version: 1.5.1<br>Author URL: https://www.studiopress.com/<br>Child Theme: ✔<br>Parent Theme Name: Genesis<br>Parent Theme Version: 3.6.0<br>Parent Theme Author URL: https://www.studiopress.com/<br>Theme type: Classic theme<br>WooCommerce Support: ✔<br><br>### Templates ###<br><br>Overrides: –<br><br>### Admin ###<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br>add-to-cart-with-options-stepper-layout<br><br>Disabled Features: product-data-views<br>experimental-blocks<br>coming-soon-newsletter-template<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br>use-wp-horizon<br>blockified-add-to-cart<br><br>Daily Cron: ✔ Next scheduled: 2025-05-01 11:47:59 +00:00<br>Options: ✔<br>Notes: 147<br>Onboarding: completed<br><br>### Action Scheduler ###<br><br>Complete: 2<br>Oldest: 2025-04-30 15:10:41 +0000<br>Newest: 2025-04-30 15:10:41 +0000<br><br>Pending: 90<br>Oldest: 2025-04-30 15:10:41 +0000<br>Newest: 2025-04-30 15:10:41 +0000<br><br><br>### Status report information ###<br><br>Generated at: 2025-05-01 10:58:56 +00:00<br>
</details>The page I need help with: [log in to see the link]
The topic ‘Critical Error in ActionScheduler_DBStore.php’ is closed to new replies.