r/Wordpress • • 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

30 comments sorted by

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.

1

u/lbdesign 3d ago

Thank you. I can try to set crons for each site. I mean, 3am updates make more sense anyway. It's all different plugins. I just added a post here with an analysis.

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.

1

u/lbdesign 3d ago

Thank you. It coming from about 20 different sites. Using 20i, which I don't think applies its own update service?

2

u/diviready 3d ago

I checked 20i’s docs—they do have plugin-update controls in WordPress Manager. Worth checking whether those are being used on your sites.

I’d give their support one example: the plugin, site and timestamp from a failure email, and ask what failed during that attempt. If the email includes an error code or message, you can paste just that bit here—leave out private links or login details.

Their docs: https://docs.20i.com/wordpress-support/20i-wordpress-manager-getting-started

1

u/lbdesign 3d ago

Oh, thank you! These sites are in unix packages, not wordpress packages, so I don't think their wordpress manager applies here. Too bad, that looks nice.

2

u/diviready 2d ago

Ah, got you—thanks for clearing that up. I shouldn’t have assumed WordPress Manager applied to your package. I saw your breakdown too. With failures on both hosts, I’d hold off blaming 20i until the logs give you something firmer.

2

u/Cool_Orchid2598 3d ago

comparing the version numbers only tells you the main file got overwritten, it doesnt really rule out a partial update where the process died halfway through extracting the rest of the package

1

u/diviready 2d ago

Fair point—thanks. I should have called that a first check, not a way to confirm the whole update was sound.

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.

1

u/lbdesign 2d ago

Good to know, thank you. today thanks to another suggestion about logging, I found that my 4 worst-offending sites (all on 20i) had low RAM set in PHP, and were hitting out-of-ram issues. (128, vs the max 256 available to me). So changing those has quieted the inbox a bit.

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 17h ago

that was exactly it. I raised wp_memory_limit to 256M, which is the max I'm allowed in these accounts, and the errors have mostly gone silent. There is no WP_MAX_MEMORY_LIMIT  declaration.

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/lbdesign 3d ago

Thank you! I just did an analysis, you can see it somewhere on this page.

1

u/BlatantMartian 3d ago

Not a bug as such, but it's common, and the email usually tells you where to look:

Once you've found the cause, you can turn the emails off with the auto_plugin_update_send_email filter. I'd fix the cause first, though, or you won't hear about the update that actually breaks something.

1

u/lbdesign 3d ago

Thanks for the filter! I am afraid to silence it, on the 1% chance something actually breaks....

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

1

u/lbdesign 3d ago

thank you. 20i has daily malware scans. And all the sites have additional hardening.

1

u/Individual_Soft3318 3d ago

That's good to know. I hope you're able to resolve this issue quickly. Best wishes.

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

1

u/lbdesign 3d ago

Thank you. I have started logging!...