Skip to content

Malformed JSON Output - Error on plugin update #161

@eckelarsson

Description

@eckelarsson

Hello,

When running wp plugin update --all --format=jsonand there is an error with updating a plugin the output is.

[{"name":"advanced-custom-fields-pro","old_version":"5.3.5","new_version":"5.7.13","status":"Error"},{"name":"wordpress-seo","old_version":"10.0","new_version":"10.0.1","status":"Updated"}]Error: Only updated 1 of 2 plugins.

The error is outside of the JSON format, should not be a mixed output.

Sysinfo

OS: Linux 4.4.0-127-generic #153-Ubuntu SMP
Shell:
PHP binary: /usr/bin/php7
PHP version: 7.2.13
php.ini used: /etc/php7/php.ini
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /var/www/html
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions