You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Er heeft zich een kritieke fout voorgedaan op deze site.Meer informatie over probleemoplossing in WordPress. Er heeft zich een kritieke fout voorgedaan op deze site.
#149
De tool lijkt mij geweldig, maar werkt helaas niet:
admin@web1:/htdocs/xxxxxxxx.com$ wp image-optimize batch --limit=9999999
===> Backing up full sized images for 49 attachment(s)
===> Backing up 49 full sized image(s)
Success: Backed up full sized image - /htdocs/xxxxxxxx.com/wp-content/uploads/2021/03/xxxxxxx
...
Success: Backed up full sized image - /htdocs/xxxxxxxx.com/wp-content/uploads/2021/03/xxxxxxx
Finished
===> Optimizing images for 49 attachment(s)
===> Optimizing images of attachment ID: 2857
===> Optimizing 6 file(s)
PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::fromShellCommandline() in /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php:97
Stack trace:
#0 /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php(77): Spatie\ImageOptimizer\OptimizerChain->applyOptimizer()
#1 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/Optimize.php(71): Spatie\ImageOptimizer\OptimizerChain->optimize()
#2 [internal function]: TypistTech\ImageOptimizeCommand\Operations\Optimize->TypistTech\ImageOptimizeCommand\Operations\{closure}()
#3 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/Optimize.php(69): array_map()
#4 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/AttachmentImages/Optimize.php(101): TypistTech\ImageOptimizeCommand\Operations\Optimize->execute()
#5 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/sr in /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php on line 97
Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::fromShellCommandline() in /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php:97
Stack trace:
#0 /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php(77): Spatie\ImageOptimizer\OptimizerChain->applyOptimizer()
#1 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/Optimize.php(71): Spatie\ImageOptimizer\OptimizerChain->optimize()
#2 [internal function]: TypistTech\ImageOptimizeCommand\Operations\Optimize->TypistTech\ImageOptimizeCommand\Operations\{closure}()
#3 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/Optimize.php(69): array_map()
#4 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/src/Operations/AttachmentImages/Optimize.php(101): TypistTech\ImageOptimizeCommand\Operations\Optimize->execute()
#5 /home/admin/.wp-cli/packages/vendor/typisttech/image-optimize-command/sr in /home/admin/.wp-cli/packages/vendor/spatie/image-optimizer/src/OptimizerChain.php on line 97
Error: Er heeft zich een kritieke fout voorgedaan op deze site.Meer informatie over probleemoplossing in WordPress. Er heeft zich een kritieke fout voorgedaan op deze site.
Thanks for any help.
Dennis
Discovered the problem: WP-CLI needs to be installed with composer. The default installation is incompatible.
This discussion was converted from issue #148 on October 11, 2021 14:39.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beste Spatie!
De tool lijkt mij geweldig, maar werkt helaas niet:
Thanks for any help.
Dennis
Discovered the problem: WP-CLI needs to be installed with composer. The default installation is incompatible.
Beta Was this translation helpful? Give feedback.
All reactions