Failure Updating PluginsAn error occurred while updating <plugin name>And...
Failure Deleting PluginsPlugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.phpThe root of the problem is that same: permissions. I've found two ways to correct this if your WordPress website is hosted on a Linux server and you have shell access.This error and solution is the same for WordPress themes too.
- Update the plugins or themes using WP-CLI
- Run a Linux command
Update Plugins or Themes with WP-CLI:WP-CLI is a command line interface for Linux that allows you to complete WordPress tasks and functions using the Linux command line. This can be faster than completing the same many functions tasks within the WordPress Dashboard.Built into WP-CLI is the ability to update plugins, themes, and even the core WordPress installation from the command line. This circumvents the problem because there are no interfaces with a browser, and therefore no need for the actual web server (usually Apache) getting involved.
- Install WP-CLI or use a host that has it installed by default like a2 Hosting.
- Run wp plugin update or wp theme update.