JayWood / jw-wpcli-random-posts

A robust random post generator for WP CLI which supports multisite, post types, post counts, taxonomies, terms, term counts and featured images. Complete with a cleanup command to undo it all!
http://plugish.com
57 stars 8 forks source link

Error: 'jw-random' is not a registered wp command #19

Open thaikolja opened 4 years ago

thaikolja commented 4 years ago

Hi,

The installation fails on my MacBook Pro (macOS 10.15.4). I use the following command to install:

wp package install jaywood/jw-wpcli-random-posts:dev-master

It ends with Success two PHP notices:

Success: Package installed.
PHP Notice:  Trying to access array offset on value of type null in phar:///usr/local/Cellar/wp-cli/2.4.0/bin/wp/vendor/wp-cli/package-command/src/Package_Command.php on line 1244

Notice: Trying to access array offset on value of type null in phar:///usr/local/Cellar/wp-cli/2.4.0/bin/wp/vendor/wp-cli/package-command/src/Package_Command.php on line 1244

The command doesn't register, too:

Error: 'jw-random' is not a registered wp command. See 'wp help' for available commands.

I've tried version 2, but it doesn't help. Any idea how to fix it without digging into wp-cli core files?

johnchristopher commented 4 years ago

Running into the same error, within docker. I don't have any error upon Installing 2.0 with php -d memory_limit=512M "$(which wp)" package install jaywood/jw-wpcli-random-posts:2.0 though.

Installing package JayWood/jw-wpcli-random-posts (2.0)
Updating /var/www/.wp-cli/packages/composer.json to require the package...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Looking at all rules.
Something's changed, looking at all rules again (pass #1)

Dependency resolution completed in 0.603 seconds
Analyzed 1530 packages to resolve dependencies
Analyzed 51336 rules to resolve dependencies
Package operations: 2 installs, 0 updates, 0 removals
Installs: fzaninotto/faker:v1.9.1, JayWood/jw-wpcli-random-posts:2.0
 - Installing fzaninotto/faker (v1.9.1)
 - Warning: JayWood/jw-wpcli-random-posts 2.0 requires fzaninotto/faker ^1.8 -> satisfiable by fzaninotto/faker[1.9.x-dev, v1.8.0, v1.9.0, v1.9.1].
 - Installing JayWood/jw-wpcli-random-posts (2.0)
Writing lock file
Generating autoload files
---
Success: Package installed.
LudovicFauchet commented 4 years ago

Hello,

Same error here ! No problem in installation but impossible to call the command.

Error: 'jw-random' is not a registered wp command. See 'wp help' for available commands.

Cheers

jlauding commented 3 years ago

Same for me:

Error: 'jw-random' is not a registered wp command.

petertwise commented 3 years ago

Same here.

Installing 2.0 yields Error: 'jw-random' is not a registered wp command.

Installing 1.4 works though.

I'm using

Sorry I don't have time to dig in further than that right now...