wp-cli / doctor-command

Diagnose problems within WordPress by running a series of checks for symptoms
MIT License
146 stars 22 forks source link

Stable version package shows fatal error #166

Closed 1naveengiri closed 2 years ago

1naveengiri commented 2 years ago

Bug Report

Describe the current, buggy behavior

This commit has a fix (https://github.com/wp-cli/doctor-command/commit/fe41a0f04310304415dc667278d9f003fc6aa2d2) which seems to be not updated in the stable version of the package.

Describe how other contributors can replicate this bug

Let us know what environment you are running this on

OS: Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64
Shell:  /bin/zsh
PHP binary: /Users/naveengiri/Library/Application Support/Local/lightning-services/php-8.0.0+2/bin/darwin/bin/php
PHP version:    8.0.0
php.ini used:   /Users/naveengiri/Library/Application Support/Local/run/spymP-7Ed/conf/php/php.ini
MySQL binary:   /Applications/Local.app/Contents/Resources/extraResources/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysql
MySQL version:  mysql  Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
SQL modes:  ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
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:   /Users/naveengiri/Local Sites/explorelocal/app/public
WP-CLI packages dir:    /Users/naveengiri/.wp-cli/packages/
WP-CLI global config:   /Applications/Local.app/Contents/Resources/extraResources/bin/wp-cli/config.yaml
WP-CLI project config:
WP-CLI version: 2.6.0
Screenshot 2022-07-14 at 8 36 47 AM
wojsmol commented 2 years ago

Hi @1naveengiri Please post output of wp package list command

1naveengiri commented 2 years ago

Hi @wojsmol

Thanks for checking into it.

It seems I am using an outdated version. but I tried using this command wp package update I also tried re-installing the given package, but Nothing works.

I do use this command to install it wp package install wp-cli/doctor-command:@stable

Screenshot 2022-07-14 at 2 39 58 PM

am I missing anything?

Thanks

danielbachhuber commented 2 years ago

@1naveengiri It appears you have an older version of wp-cli/doctor-command installed:

image

I just ran wp package install wp-cli/doctor-command:@stable and the correct version (2.1.0) installs as expected:

wp package list
+---------------------------------+------------------+------------+-----------+----------------+
| name                            | authors          | version    | update    | update_version |
+---------------------------------+------------------+------------+-----------+----------------+
| wp-cli/doctor-command           | Daniel Bachhuber | v2.1.0     | none      |                |
| wp-cli/restful                  | Daniel Bachhuber | dev-master | available | 1.x-dev        |
| wp-cli/scaffold-package-command | Daniel Bachhuber | dev-master | available | 2.x-dev        |
+---------------------------------+------------------+------------+-----------+----------------+

I'd recommend deleting your package directory and re-installing all of your packages. You can delete the entire package directory with:

rm -r $(wp package path)