r/Wordpress • u/lbdesign • 3d ago
"Some plugins have failed to update"
It seems like every time I get this email (dozens a day), I check the plugins and they have all updated. Is WordPress sending these in error during the update itself? Is this a known issue?
EDIT: with debugging, it seems to be about 70% a RAM limit issue. ie: Fatal error, not enough ram.
6
Upvotes
3
u/thomas-at-caseproof 3d ago
That email goes out when an update attempt fails, not when the plugin ends up out of date. Background updates run on WP-Cron, and if one attempt times out or can't download the package, a later run usually gets it, which is why everything looks fine by the time you check.
Dozens a day makes me think it's either a lot of sites or the same few plugins failing over and over. If it's always the same ones, see whether they're premium plugins that update from their vendor's server rather than WordPress.org; those fail intermittently far more often. If it's spread across everything, a real server cron in place of visitor-triggered WP-Cron tends to calm it down.
And if the updates really are landing and you just want the noise gone, add_filter( 'auto_plugin_update_send_email', '__return_false' ); turns off the plugin update emails, though you'll lose the genuine failures along with the false alarms.
2
u/diviready 3d ago
WordPress sends that after the update attempt, rather than just while it's running. A failed attempt followed by a successful one could explain why it looks fine when you check. I'd compare the ‘from/to’ versions in one email with the version actually installed. Are the dozens of emails all from one site, and is your host or a management tool also handling updates? That would help narrow it down before muting the warnings.
2
u/onsitetools 2d ago
One thing nobody's mentioned: since WordPress 6.6, after a plugin auto-updates, WP makes a request to your own site to check the update didn't cause a fatal error. If that check request fails for any reason (firewall, hardening rules, basic auth, a timeout), WP rolls the plugin back to the old version and sends you that exact "failed to update" email.
Then a later cron run tries again, the check gets through, and the update sticks. That would fit your 70/30 split pretty well, and it would explain why it's spread across random plugins instead of the same few.
Quick way to check: Tools > Site Health on one of the sites. If you see "Your site could not complete a loopback request", that's very likely it. Since every site has the extra hardening, I'd start there.
2
u/fer_marketing 19h ago
Since you found memory on the worst ones, check WP_MAX_MEMORY_LIMIT in wp-config.php too, not just WP_MEMORY_LIMIT. The update unzip raises memory to the admin limit, so if that one is still 128M or lower it can fail the same way. I double both from the start (128M to 256M).
And check free disk space on each package. An update needs room for the zip, the unpacked copy and the backup of the old version at the same time. On full accounts that's another reason updates fail and come back on the next try.
1
u/lbdesign 3d ago
You're all asking some great questions, so I had Gemini do an analysis of my inbox.
Over the past 30 days, there were 252 emails describing 424 failed plugin auto update attempts.
These occurred on both Siteground and 20i. Proportionate to the amount of sites hosted on each.
It was 19 different plugins across 12 sites, with frequency roughly proportionate to the install base and likely update cadence.
Worst offenders, most to least:
Site Kit by Google
MailPoet
GEO Plugin by Squirrly SEO (more frequently than is proportionate the number of installs)
Fluent Forms (free)
Slim SEO (free)
FluentBooking
WPvivid Backup Plugin (free)
WPvivid Plugins Pro
Admin and Site Enhancements (ASE) Pro
Yoast SEO
WP Armour - Honeypot Anti Spam
Max Mega Menu (one site, repeatedly)
Persistent Login
Fluent Forms Pro Add On Pack
I'd say roughly 30% of the time, when I checked, the plugins were not updated, and 70% of the time, they were already updated when I opened the plugins page. Manually updating them always worked.
1
u/Affiblocks 3d ago
with 20 sites i'd line up a few of the emails and see if it's the same plugin failing at the same time. if they all hit in the same few minutes, check what update jobs were running then
1
u/BlatantMartian 3d ago
1
u/Individual_Soft3318 3d ago
Are you sure your hosting account and the websites contained within are clean and free from malware? It may be worth running a scan with WP Sentinel, a free and open-source anti-malware toolkit. https://wp-sentinel.co.uk
2
u/Pluginivo 1d ago
Since this is happening across multiple hosting providers, I'd also check whether backup jobs, security scans and automatic updates are running at the same time.
Temporary resource limits, file locks or PHP execution timeouts could explain why automatic updates occasionally fail while manual updates work.
I'd stagger these scheduled tasks across your sites and monitor the error logs for a few days before disabling any notifications.
1
u/Winter_Process_9521 3d ago
I wouldn't immediately disable these notifications. They can alert you to genuine update failures, including PHP fatal errors and file-permission problems.
WordPress also provides filters to control these notifications if you eventually decide they're generating unnecessary noise.
1
u/rafiabrer 3d ago
With 19 different plugins failing across both SiteGround and 20i, this looks less like one bad plugin and more like updates timing out on shared hosting — Site Kit and MailPoet are both fairly large, so they hit timeouts first. The 30% of cases where the plugin genuinely wasn't updated when you checked are the ones I'd chase: on one of those sites, check the plugin folder's file permissions and whether the site is near its disk quota, since either will silently kill an update. And for the 70% that did land, the email really is just the failed first attempt — the retry succeeded. I'd keep logging failures with plugin, site and time like you're doing now, and if the same plugin fails at the same hour every day, ask the host whether WP-Cron is actually firing on schedule.
1
u/[deleted] 3d ago
[removed] — view removed comment