Title: PHP 7.2 warning
Last modified: August 14, 2018

---

# PHP 7.2 warning

 *  Resolved [Navjot Singh](https://wordpress.org/support/users/navjotjsingh/)
 * (@navjotjsingh)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/)
 * I keep seeing the following warning on all pages
 *     ```
       Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/shortpixel-image-optimiser/class/shortpixel_queue.php on line 269
       ```
   
 * I am using PHP 7.2 along with Nginx 1.14.0 as my setup.
 * Please look into it.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/#post-10590652)
 * Thanks for the heads up Navjot, we’ll look into this ASAP.
 * Best regards,
    Alex
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/#post-10594891)
 * [@navjotjsingh](https://wordpress.org/support/users/navjotjsingh/) – could you
   please check the folder /wp-content/uploads to have write rights and then try
   again? we believe the warning is related to that.
 *  Thread Starter [Navjot Singh](https://wordpress.org/support/users/navjotjsingh/)
 * (@navjotjsingh)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/#post-10597344)
 * That worked. Thanks.
 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/#post-10602105)
 * Thank you too for bringing this up, we just released an update that deals with
   this warning.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 7.2 warning’ is closed to new replies.

 * ![](https://ps.w.org/shortpixel-image-optimiser/assets/icon-256x256.gif?rev=3245715)
 * [ShortPixel Image Optimizer - Optimize Images, Convert WebP & AVIF](https://wordpress.org/plugins/shortpixel-image-optimiser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortpixel-image-optimiser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortpixel-image-optimiser/)
 * [Active Topics](https://wordpress.org/support/plugin/shortpixel-image-optimiser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortpixel-image-optimiser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortpixel-image-optimiser/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/php-7-2-warning-2/#post-10602105)
 * Status: resolved