#59320 closed defect (bug) (fixed)
Fatal error while processing failed plugin upgrade
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.3.2 | Priority: | normal |
| Severity: | minor | Version: | 6.3 |
| Component: | Upgrade/Install | Keywords: | has-patch commit fixed-major |
| Focuses: | Cc: |
Description
Fatal error occurs while processing a failed plugin update.
$ wp plugin update disable-comments
メンテナンスモードを有効化中...
https://downloads.wordpress.org/plugin/disable-comments.2.4.5.zip から更新をダウンロード中...
Using cached file '/var/web/.wp-cli/cache/plugin/disable-comments-2.4.5.zip'...
署名が見つからなかったため、disable-comments.2.4.5.zip の信頼性を確認できませんでした。
更新を展開しています…
最新のバージョンをインストールしています…
プラグインの古いバージョンを削除しています…
Warning: 古いプラグインを削除できませんでした。
プラグインの更新に失敗しました。
メンテナンスモードを無効にします…
+------------------+-------------+-------------+--------+
| name | old_version | new_version | status |
+------------------+-------------+-------------+--------+
| disable-comments | 2.4.4 | 2.4.5 | Error |
+------------------+-------------+-------------+--------+
Error: No plugins updated (1 failed).
PHP Fatal error: Uncaught ArgumentCountError: 2 arguments are required, 1 given in /var/web/wp/wp-admin/includes/class-wp-upgrader.php:1209
Stack trace:
#0 /var/web/wp/wp-admin/includes/class-wp-upgrader.php(1209): sprintf('%s \xE3\x81\xAE\xE4\xB8\x80\xE6\x99\x82\xE3\x83\x90...')
#1 /var/web/wp/wp-includes/class-wp-hook.php(308): WP_Upgrader->delete_temp_backup()
#2 /var/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(Object(WP_Error), Array)
#3 /var/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /var/web/wp/wp-includes/load.php(1252): do_action('shutdown')
#5 [internal function]: shutdown_action_hook()
#6 {main}
thrown in /var/web/wp/wp-admin/includes/class-wp-upgrader.php on line 1209
Fatal error: Uncaught ArgumentCountError: 2 arguments are required, 1 given in /var/web/wp/wp-admin/includes/class-wp-upgrader.php:1209
Stack trace:
#0 /var/web/wp/wp-admin/includes/class-wp-upgrader.php(1209): sprintf('%s \xE3\x81\xAE\xE4\xB8\x80\xE6\x99\x82\xE3\x83\x90...')
#1 /var/web/wp/wp-includes/class-wp-hook.php(308): WP_Upgrader->delete_temp_backup()
#2 /var/web/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(Object(WP_Error), Array)
#3 /var/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /var/web/wp/wp-includes/load.php(1252): do_action('shutdown')
#5 [internal function]: shutdown_action_hook()
#6 {main}
thrown in /var/web/wp/wp-admin/includes/class-wp-upgrader.php on line 1209
Change History (8)
This ticket was mentioned in PR #5181 on WordPress/wordpress-develop by harai.
2 years ago
#1
- Keywords has-patch added
#3
@
2 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 6.3.2
- Owner set to costdev
- Status changed from new to assigned
- Version changed from trunk to 6.3
Hi @akihiroharai, welcome to Trac!
Nice catch!
This was introduced in [55720] (WordPress 6.3). Updating the Version property on the ticket.
The PR looks good to me. Assigning to myself and adding commit.
Note: See
TracTickets for help on using
tickets.
Fix incorrect right paren for
sprintf().Trac ticket: https://core.trac.wordpress.org/ticket/59320