Why WordPress Plugin Updates Fail
Plugin updates fail before the new code is in place or after it runs. The causes differ, and so do the fixes.
A plugin update fails in one of two places. Either WordPress never manages to get the new version in place, or it does and the new code breaks something when it runs. The first kind leaves you with an error message in wp-admin and, occasionally, a site stuck in maintenance mode. The second kind leaves you with a site that is down, half broken or subtly wrong. The causes are different, so it pays to know which kind you are looking at before you start fixing. The wider process is covered in the pillar on how to update WordPress safely at scale.
Failures before the new version is installed
The upgrader downloads a zip, unpacks it in wp-content/upgrade, sets the current version aside and copies the new one into place. Each of those steps has its own typical failure.
The download does not arrive
“Download failed” with a cURL error usually means the server could not reach the download host, or the connection timed out. Common causes are an outbound firewall on the host, a DNS problem, or a slow connection on a large package. A plugin from wordpress.org downloads from downloads.wordpress.org; a premium plugin from the vendor’s own server, which is down or rate-limited more often than you would expect.
The vendor does not hand over a package
Premium plugins add themselves to the update_plugins transient with a download link that depends on a licence check. If the licence has expired, has hit its site limit, or was activated on the staging domain rather than the live one, WordPress lists the update but gets no package. The message then says something like “Update package not available”. Renewing or reassigning the licence fixes it. Nothing on the server will.
A related oddity: the update shows in the list, you run it, and the result is “already up to date”. In that case the update list was rebuilt between the moment you looked and the moment the update ran, and the vendor’s entry did not come back, typically because its licence server only answers so often. Wait a minute and try again from a fresh update check.
WordPress cannot write the files
“Could not create directory” or a prompt for FTP credentials means WordPress cannot write to wp-content as itself. WordPress only uses direct file access when the files it creates would be owned by the same user as the files already there. After a migration or a manual upload as a different user, ownership no longer matches and WordPress falls back to asking for FTP details. Fix the ownership, or set FS_METHOD to 'direct' in wp-config.php only if you know the web server user really owns the files.
The server runs out of room, memory or time
During an update the plugin briefly exists two or three times on disk: the zip, the unpacked copy and the version set aside. A large page builder can need a hundred megabytes or more for that, and a hosting account at its quota simply stops. Unpacking also takes memory and time. If the PHP ZipArchive extension is missing, WordPress falls back to PclZip, which is slower and uses more memory. On a plan with a 30-second limit and 128 MB, that is where a big update dies halfway, with “Allowed memory size exhausted” or no message at all.
The new version does not support the site
Plugins declare the minimum WordPress and PHP versions they need in their readme and header. WordPress reads those and will not install an update the site cannot run, showing a notice next to the plugin instead. That is a refusal, not a bug. The fix is upgrading PHP or WordPress, or holding the plugin on its current version until you can.
Maintenance mode gets stuck
During bulk updates WordPress writes a .maintenance file to the site root and removes it at the end. If the PHP process is killed halfway, the file stays behind. WordPress ignores it once it is older than ten minutes, so the site comes back on its own, but the plugin it was working on may now be half updated. Delete the file, then check that plugin first.
Failures after the new version is installed
A fatal error
The new code calls a function that does not exist on this PHP version, clashes with another plugin, or trips over custom code that relied on its internals. Since WordPress 5.2 the site shows a “critical error” message and emails the administrator a link to recovery mode, where you can deactivate the culprit. Since 6.6, an automatic plugin update that causes a fatal error is rolled back by WordPress itself, provided loopback requests work on the host. A manual update gets no such safety net.
The database update was never run
WooCommerce, Elementor and many others store a schema version and run migrations after the files change. Until somebody clicks the “update database” notice, or the plugin finishes the migration in the background, the site runs new code against old tables. Orders, settings or templates then behave oddly in ways that look like a bug in the plugin.
Old assets in a cache
The update changed the plugin’s CSS and JavaScript, but a page cache, a minification plugin or a CDN keeps serving the old combined files next to the new markup. The result looks like a broken update and is fixed by clearing every cache layer, in order: the plugin’s own, the caching plugin, the server cache, the CDN.
Finding out which one you have
Start with what the upgrader said; its message usually points at one of the causes above. Then read the PHP error log. If you enable WP_DEBUG_LOG, point it at a path outside the web root, because the default wp-content/debug.log is readable by anyone who guesses the address. Tools, Site Health tells you whether the filesystem is writable, whether loopback requests work and which PHP version runs. On the front end, the browser console shows JavaScript errors that never reach a PHP log.
Making failures cheap
You will not prevent every failure. What you can do is make each one quick to undo: a copy of the plugin folder and a database dump before the update, maintenance mode while it runs, and a check of the page afterwards. Knowing how to put a version back is half of it, and how to roll back a WordPress plugin update walks through the routes. If most of your clients sit on budget plans, WordPress updates on shared hosting covers the host limits in more detail.
Across many sites this is where tooling helps. WP Octo backs up what an update changes, rolls back a plugin that breaks the site and holds that version so it does not come back on the next round. More on the features page.