Title: WP CLI
Last modified: May 22, 2020

---

# WP CLI

 *  Resolved [TPF1](https://wordpress.org/support/users/tpf1/)
 * (@tpf1)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-8/)
 * Hi! thanks a lot for this amazing plugin. It is working fine using the back-office
   with Regenerate Thumbnails plugin. However when I try to use the command line
   with WP-CLI as recommended with the “Regenerate Thumbnails” It does not work.
 * I have 36k photos on my library. So I run the wp media regenerate, I can see 
   the process lines (with an error):
 * 2/37633 Regenerated thumbnails for “Jock” (ID 2796).
    PHP Warning: array_reduce()
   expects parameter 1 to be array, string given in /var/www/vhosts/xxxx/httpdocs/
   wp-content/plugins/smart-image-resize/src/functions.php on line 237
 * The process finish, I check my wp-upload folder, a few sizes are regenerated 
   but not the ones we need. So it seems the wp media regenerate command works but
   does not detect your plugin settings.
 * Any suggestion?
 * THANKS!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-8/#post-12877314)
 * Hi [@tpf1](https://wordpress.org/support/users/tpf1/)
 * The warning has been removed in the latest version, but that shouldn’t be the
   reason, It’s likely you reached the limit of 150 images. You can check under 
   WooCommerce > Smart Image Resize.
 * Best,
    Nabil

Viewing 1 replies (of 1 total)

The topic ‘WP CLI’ is closed to new replies.

 * ![](https://ps.w.org/smart-image-resize/assets/icon-256x256.jpg?rev=2142235)
 * [Smart Image Resize - Make WooCommerce Images the Same Size](https://wordpress.org/plugins/smart-image-resize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-image-resize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-image-resize/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-image-resize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-image-resize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-image-resize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-8/#post-12877314)
 * Status: resolved