Permission errors when a WordPress version is specified in the core field of .wp-env.json
file
#44338
Labels
Needs Technical Feedback
Needs testing from a developer perspective.
[Tool] Env
/packages/env
[Type] Bug
An existing feature does not function as intended
Description
When the WordPress version is specified in the
core
field of the.wp-env.json
file, we may encounter permission issues when trying to manipulate the WordPress installation using the cli container.Step-by-step reproduction instructions
Scenario 1: Permalinks
.wp-env.json
toWordPress/WordPress#tags/5.8.5
wp-env start
wp-env run cli "wp rewrite structure '/%postname%/'"
http://localhost:8888/hello-world
and confirm that you see an apache error message.Similar issue: wp-env: file permissions issues with rewrites and uploads #28201
Scenario 2: Install & Activate a plugin(I can only reproduce this is in a linux environment)
.wp-env.json
toWordPress/WordPress#tags/5.8.5
mappings
filed to map a local zip file to a location in your container.wp-env start
wp-env run cli "wp plugin install path/to/mapped/zip/file --activate"
. Below is an example of my CI output after runningwp-env run cli "wp plugin install wp-content/uploads/ci-runner/woocommerce/woocommerce.zip --activate"
It seems to begin to unpack the plugin, then encounters permission issues and throws
Warning: Could not create directory.
.Screenshots, screen recording, code snippet
No response
Environment info
GitHub CI with Ubuntu 20.04.5
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: