[wp-trac] [WordPress Trac] #54477: wp-cli vague: "Warning: Could not create directory."
WordPress Trac
noreply at wordpress.org
Sat Sep 10 14:39:48 UTC 2022
#54477: wp-cli vague: "Warning: Could not create directory."
-------------------------------------------------+-------------------------
Reporter: gunterer | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Upgrade/Install | Version: 5.8
Severity: minor | Resolution:
Keywords: good-first-bug has-patch has- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Changes (by costdev):
* keywords: good-first-bug has-patch needs-testing => good-first-bug has-
patch has-testing-info
Comment:
== Test Report
Patch tested:
https://core.trac.wordpress.org/attachment/ticket/54477/54477.v202204171752.patch
=== Steps to Reproduce or Test
1. Run `sudo chmod 444 wp-content/plugins`.
2. If using the `root` user, switch to a different user.
3. 🐞 Run `wp plugin install gutenberg`.
=== Expected Results
When reproducing the issue:
- ❌ The output should read:
{{{
Installing Gutenberg (14.0.2)
Downloading installation package from
https://downloads.wordpress.org/plugin/gutenberg.VERSION.zip...
Using cached file '/home/USER/.wp-cli/cache/plugin/gutenberg-
VERSION.zip'...
Unpacking the package...
Warning: Could not create directory.
Warning: The 'gutenberg' plugin could not be found.
Error: No plugins installed.
}}}
When testing a patch to validate it works as expected:
- ✅ The output should read:
{{{
Installing Gutenberg (14.0.2)
Downloading installation package from
https://downloads.wordpress.org/plugin/gutenberg.VERSION.zip...
Using cached file '/home/USER/.wp-cli/cache/plugin/gutenberg-
VERSION.zip'...
Unpacking the package...
Warning: Could not create directory. "/path/to/site/wp-
content/upgrade/gutenberg.14.0.2-yastQK"
Warning: The 'gutenberg' plugin could not be found.
Error: No plugins installed.
}}}
=== Environment
* Server: Apache (Linux)
* WordPress: 6.1-alpha-53344-src
* CLI: WP-CLI
* OS: Ubuntu
* Plugins: None activated
==== Actual Results
When reproducing a bug/defect:
- ❌ The output did not include the directory path. Issue reproduced.
When testing the bugfix patch:
- ✅ The output included the directory path. Issue resolved with patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54477#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list