Therefore, we should ensure that the upgrade-temp-backup folder is present. I am unsure if we also need to precreate and permission the plugins and themes directories as well. I believe the creation of the upgrade-temp-backup folder alone with the right user and group permissions should suffice; but I leave that up to other minds.
Description
When attempting a plugin or theme update via
wpcli
the following error occurs:Due to a change from WordPress v6.3 onwards, when performing upgrades to plugins or themes the following directories must be present and properly permissioned:
wp-content/upgrade-temp-backup/plugins/
wp-content/upgrade-temp-backup/themes/
Therefore, we should ensure that the
upgrade-temp-backup
folder is present. I am unsure if we also need to precreate and permission theplugins
andthemes
directories as well. I believe the creation of theupgrade-temp-backup
folder alone with the right user and group permissions should suffice; but I leave that up to other minds.Reproduction
wpcli plugin update PLUGINNAME
Expectation
The update should run successfully without error.
Resolution