imagify-plugin icon indicating copy to clipboard operation
imagify-plugin copied to clipboard

WP CLI Next Generation image AVIF generation in folder fails

Open jasperf opened this issue 10 months ago • 4 comments

From the command line I am trying to generate the missing next generation images or AVIF. This as the generation via Dashboard hangs a lot.

Screenshot 2024-04-25 at 14 05 03

But the page on usage at https://imagify.io/documentation/how-to-use-wp-cli-for-imagify/ is unclear and so when I run this it fails

wp imagify generate-missing-nextgen wp-content/uploads/2024/03
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Imagify\Bulk\Bulk::run_generate_nextgen(), 1 passed in /home/debxxxxxx/domains/domain.com/public_html/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php on line 19 and exactly 2 expected in /home/debxxxxxx/domains/domain.com/public_html/wp-content/plugins/imagify/classes/Bulk/Bulk.php:223
Stack trace:
#0 /home/debxxxxxx/domains/domain.com/public_html/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php(19): Imagify\Bulk\Bulk->run_generate_nextgen()
#1 [internal function]: Imagify\CLI\GenerateMissingNextgenCommand->__invoke()
#2 phar:///home/debxxxxxx/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()

What command should I use?

jasperf avatar Apr 25 '24 05:04 jasperf

Related ticket: https://secure.helpscout.net/conversation/2609641597/494058/

wordpressfan avatar Jun 14 '24 12:06 wordpressfan

https://secure.helpscout.net/conversation/2605674745/493178/

saranshj4 avatar Jun 18 '24 04:06 saranshj4

https://wordpress.org/support/topic/wp-cli-generate-missing-nextgen-not-working/

saranshj4 avatar Jun 18 '24 04:06 saranshj4

https://secure.helpscout.net/conversation/2685771449

saranshj4 avatar Aug 22 '24 15:08 saranshj4