I have a problem when I execute the WP CLI command: wp imagify generate-missing-nextgen wp The command returns a Fatal error and asks me for a supplementary argument that seems to be the “Format”.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Imagify\Bulk\Bulk::run_generate_nextgen(), 1 passed in /htdocs/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php on line 19 and exactly 2 expected in /htdocs/wp-content/plugins/imagify/classes/Bulk/Bulk.php:223 Stack trace: 0 /htdocs/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php(19): Imagify\Bulk\Bulk->run_generate_nextgen() 1 [internal function]: Imagify\CLI\GenerateMissingNextgenCommand->__invoke() 2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func() 3 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher{closure}() 4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(488): call_user_func() 5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php in /htdocs/wp-content/plugins/imagify/classes/Bulk/Bulk.php on line 223
Hello, Thank you for your answer. But I have the same error when I use: wp imagify generate-missing-nextgen webp Webp format is enabled in settings
wp imagify generate-missing-nextgen webp
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Imagify\Bulk\Bulk::run_generate_nextgen(), 1 passed in /app/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php on line 19 and exactly 2 expected in /app/wp-content/plugins/imagify/classes/Bulk/Bulk.php:223
Stack trace:
#0 /app/wp-content/plugins/imagify/classes/CLI/GenerateMissingNextgenCommand.php(19): Imagify\Bulk\Bulk->run_generate_nextgen()
#1 [internal function]: Imagify\CLI\GenerateMissingNextgenCommand->__invoke()
#2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#3 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
#5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke()
#6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner-> in /app/wp-content/plugins/imagify/classes/Bulk/Bulk.php on line 223
I’m following up to see if I left any of your questions about Imagify unanswered? If all is well, there’s no need to reply, and I will just close our conversation.
However, if you have any further questions about Imagify, feel free to let me know, I’ll gladly continue to assist you.
Our developers have confirmed that this is a bug, and it has been added to their list of issues to address. Unfortunately, I don’t have an ETA for when this will be resolved at the moment but you can track it here: https://github.com/wp-media/imagify-plugin/issues/885
Thank you for your understanding.
Best Regards, Saransh.
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘WP CLI generate missing nextgen not working’ is closed to new replies.