Hi,
I’m having an issue updating Wordpress via Composer using Trellis and Bedrock.
When I use the Composer Update script via terminal I get the following error:
Updating johnpbloch/wordpress-core (4.8.0 => 4.8.1): Update failed (Could not delete web/wp/wp-includes/js/tinymce/plugins/charmap/plugin.js: )
Would you like to try reinstalling the package instead [yes]? yes
- Removing johnpbloch/wordpress-core (4.8.0)
[RuntimeException]
Could not delete web/wp/wp-includes/js/tinymce/plugins/charmap/plugin.js:
I tried removing the files manually and installed again and got this:
- Installing johnpbloch/wordpress-core (4.8.1): Downloading (100%)
- Updating johnpbloch/wordpress (4.8.0 => 4.8.1): Update failed (Could not delete /srv/www/logiclofts.co.uk/current/vendor/johnpbloch/wordpress/composer.json: )
Would you like to try reinstalling the package instead [yes]? no
[RuntimeException]
Could not delete /srv/www/logiclofts.co.uk/current/vendor/johnpbloch/wordpress/composer.json:
I then deleted the johnpbloch folder and it installed fine. It’s not ideal to manually delete the files every time though.
I think it’s a permissions problem from the VM. I’m using an existing Trellis install but a fresh Bedrock install. This is the first time I’ve tried to update Wordpress.
Has anyone come across this?
Thanks
Rob