Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP CLI Next Generation image AVIF generation in folder fails #885

Open
jasperf opened this issue Apr 25, 2024 · 4 comments
Open

WP CLI Next Generation image AVIF generation in folder fails #885

jasperf opened this issue Apr 25, 2024 · 4 comments

Comments

@jasperf
Copy link

jasperf commented Apr 25, 2024

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?

@wordpressfan
Copy link
Contributor

@saranshj4
Copy link

@saranshj4
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants