Repository navigation
Conversation
WP-CLI 2.12.0 (latest stable) cannot extract WordPress 7.0.x archives (wp-cli/wp-cli#6320, #6396); the fix is only in nightly builds so far. Both the PHP and OpenLiteSpeed images now download wp-cli-nightly.phar. The doctor package was installed with @stable, which resolved to v2.3.1 and vendored the 2.x framework, core-command and legacy mustache into the packages dir. With the 3.0 nightly that fatals on every command. The packages dir now uses a composer.json that replaces the framework and bundled commands, so only doctor-command v3 is vendored and the phar's classes are used. Move back to wp-cli.phar once a fixed stable release ships. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@jamil-mahmud
Why
WP-CLI 2.12.0 (latest stable) breaks
wp core downloadon WordPress 7: it truncates long file paths on extract (wp-cli/wp-cli#6320, #6396). The fix (wp-cli/wp-cli#6319) was merged on 2026-05-25 but is only in nightly builds. The last stable release was 2025-05-07, and the3.0.0milestone has no due date. The maintainers call nightly "a legit workaround".What
wp-cli-nightly.phar(now3.0.0-alpha).php/wp-cli-packages.jsonreplacescomposer init(and themkdir, sinceCOPYcreates the folder). Itsreplaceblock tells Composer that the phar already provides WP-CLI core and the bundled commands. Without it, doctor installs a second, older copy of WP-CLI core into the packages folder. That copy overrides the phar's classes, and with the nightly everywpcommand fatals (Cannot declare interface Mustache_Loader).doctor-command:@stablebecomes^3.@stablepicked v2.3.1, which needs the 2.x core, and that is how the old core got in.^3matches the 3.0 nightly, and the build fails instead of falling back to 2.x.Switch back to
wp-cli.pharonce a fixed stable ships.Testing (arm64)
www-data: only doctor v3.0.0 vendored,wp doctor listshows 16 checks.meghsh/php:8.3,wp core download --version=7.0.4: fails on 2.12.0; passesverify-checksumson nightly.verify-checksums.🤖 Generated with Claude Code