WooCommerce · Performance
WooCommerce Critical Error After a Plugin Update? Check Action Scheduler First
If a plugin update appears to crash your site, check two numbers before you blame it: the memory figure in the fatal error log against your actual limit, and the completed count in Action Scheduler. In the case below the process died at 40 MB of a 256 MB limit, and Action Scheduler held about 174,500 actions.
What happened
A store updated its payment gateway plugin and the site went down. Not a checkout fault — the whole site: the critical error screen, memory errors despite a 256 MB limit, intermittent 500s and timeouts, occasional blank pages, and an admin area that could not be reached. Cart and checkout failed whenever the gateway plugin was active.
Rolling the plugin back brought the site up. That is where most people would stop, and it would have been the wrong place to stop.
The number that gave it away
The fatal error log recorded running out of memory at roughly 40 MB — on a site with a 256 MB limit. When a process dies at a fraction of the available memory, the limit is not the problem.
The other number was in Action Scheduler: about 174,500 completed actions, 101 failed and 28 pending.
| Signal | Reading | What it meant |
|---|---|---|
| Memory at failure | ~40 MB of a 256 MB limit | Not a memory shortage |
| Action Scheduler completed | ~174,500 | Something was scheduling relentlessly |
| File named in the log | The object cache drop-in | Where memory ran out, not the cause |
| Effect of rollback | Site recovered | A workaround, not a diagnosis |
Reported on WooCommerce 11.2.1, WordPress 7.1.3, PHP 8.4.26, HPOS enabled, 33 active plugins.
The actual cause
An object cache plugin was making WooCommerce believe its database tables were an older version than they were. So WooCommerce tried to update itself. Then tried again. By the owner’s account it was attempting the update roughly eight thousand times a day, filling Action Scheduler and bloating the database until ordinary requests ran out of memory.
The gateway plugin update did not create that. It landed on a site already drowning and became the thing that was blamed, because it was the thing that changed.
The part worth stealing
The plugin author made the key observation: the file named in a fatal error log is where memory ran out, not necessarily what consumed it.
A memory error names the unlucky process, not the guilty one. If you fix the file in the log you will usually fix nothing.
Fix and confirmation
The owner trimmed the Action Scheduler tables and reported the site running normally on the current version. The thread was acknowledged and closed.
An Action Scheduler table in the hundreds of thousands is a symptom with a cause behind it, and the plugin that gets blamed is usually just the one that changed last. Ask us for an independent review.
What to check on your own store
- Open WooCommerce → Status → Scheduled Actions and read the completed count. Tens of thousands on a small store means something is running in a loop.
- Look at what is repeating. The same action name over and over, minutes apart, is the fault. The name usually identifies the component.
- Check the memory figure in your fatal error log against your actual limit. Dying far below the limit points at volume, not at the limit.
- Be careful with object caching on a WooCommerce site. It is a real performance win and it caused this. If you run one, confirm it is not serving stale schema or order data — the same class of fault double-charged customers on another store in this series.
What the thread never settled
Whether the gateway update contributed at all. A staging test with the new version and the object cache disabled was proposed and the result was never reported, so the plugin that got blamed in the thread title was never actually cleared.
That matters if you are searching this symptom. The title says a version crashed a site. The thread says an object cache plugin caused eight thousand failed update attempts a day. A reader who stops at the title draws exactly the wrong conclusion and avoids the wrong plugin.
Questions we get asked about this
Why did my site crash right after updating a plugin?
Sometimes the update is the cause. Often it lands on a site that already has a problem and is simply the thing that changed last. Check whether anything was accumulating before the update, such as a scheduled action running in a loop.
My memory limit is 256 MB but the error says it ran out at 40 MB. Why?
Because the limit is not what is being hit. That pattern usually means a single process was handling far more data than it should, so look at volume rather than raising the limit.
What is Action Scheduler and why does the count matter?
It is the queue WooCommerce uses for background jobs. A completed count in the hundreds of thousands on a small store means something is queuing work repeatedly, and the database pays for it.
Can an object cache plugin break WooCommerce?
It can. In this case it made WooCommerce read its database tables as an older version, so WooCommerce tried to update itself roughly eight thousand times a day. Object caching is still worth running, with order and schema data excluded.
Is trimming the Action Scheduler tables safe?
Removing completed and failed records is routine housekeeping. Pending actions are work that has not run yet, so treat those differently and take a database backup first.
The log names a specific file. Should I fix that file?
Usually not. A memory error names the process that happened to exhaust the limit, not the one that consumed it. The plugin author made exactly that point in this thread.
Should I roll back the plugin if my site crashes?
To get trading again, yes. Then keep investigating, because a rollback that restores service tells you what changed, not what is wrong.
How do I tell which scheduled action is looping?
Open the Scheduled Actions screen and sort by action name. A single name repeating minutes apart for days is the one, and the name normally identifies the component responsible.
How often should I check Action Scheduler on a live store?
Monthly is enough to catch a loop before it reaches a size that affects performance, and it takes under a minute.
Related reading
WooCommerce payment not working: eight real faults · Payment form is not ready on block checkout · Why LearnDash students lose course access · How to speed up a WooCommerce store
Sources
WooCommerce Stripe Payment Gateway — version 11.1.0 crashed my site
A site that falls over and nobody knows why
A scheduled action running in a loop will take a store down weeks after the thing that started it. The plugin that gets blamed is usually just the one that changed last.
Send us: your WooCommerce status report, the completed count from Scheduled Actions, and your fatal error log.
Request a scoped assessment
Abdul Wahab Taqi
Building WordPress, WooCommerce, membership and LMS platforms since 2014, and running Rowerr since 2019 — 1,100+ projects. Every plugin recommended here is installed and tested on a real store first.