• Hello,

    I’ve been using Short Pixel image optimization for awhile now. Recently, I’ve been having problems with an image. This is a small image, roughly 1kb after compressed, that is used for bullet points. I use css to apply it to ul on the product page and it’s always worked fine. Previously, it was using an old url to be accessed myfavoritestore.com/uploads/etc. I updated the url to mystore.com and this was the last image that still used the old url. I took the same image, reuploaded it, and now not only am I getting this warning, but my site load time has increased from 3 seconds to 6 seconds. This may/may not have anything to do with you plugin, but any advice is appreciated. I did not have this problem before re-uploading the image today. I would be happy to send over the site so you can look at it in the Gtmetrix waterfall in private message if you want to see the loading behavior.

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/mysite/public_html/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 3415

    None of my other images have this issue, only the one I uploaded today. Any help is appreciated.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    Hey @socalkingg – thanks for your message and for using ShortPixel! 🙂

    Could you please contact us directly here with your website’s URL, PHP version, plugin version WP version so we can further investigate this?

    Thank you,
    Alex

    Thread Starter WebDev2.0

    (@socalkingg)

    Okay I did, thank you.

    I’m getting the exact same error. I see it for every image in list view in the Media library. Has there been a resolution?

    PHP version: 7.2.13
    Wordpress: 5.2.2

    Entire error is here:

    Warning: count(): Parameter must be an array or an object that implements Countable in /app/wp-content/plugins/shortpixel-image-optimiser/class/wp-short-pixel.php on line 3415 Call Stack: 0.0075 432944 1. {main}() /app/wp-admin/upload.php:0 1.5749 12703536 2. WP_Media_List_Table->display() /app/wp-admin/upload.php:365 1.5767 12709728 3. WP_Media_List_Table->display_rows_or_placeholder() /app/wp-admin/includes/class-wp-list-table.php:1175 1.5767 12709728 4. WP_Media_List_Table->display_rows() /app/wp-admin/includes/class-wp-list-table.php:1244 1.7244 12820304 5. WP_Media_List_Table->single_row_columns() /app/wp-admin/includes/class-wp-media-list-table.php:637 1.7365 12820560 6. WP_Media_List_Table->column_default() /app/wp-admin/includes/class-wp-list-table.php:1332 1.7365 12820560 7. do_action() /app/wp-admin/includes/class-wp-media-list-table.php:610 1.7365 12820936 8. WP_Hook->do_action() /app/wp-includes/plugin.php:465 1.7365 12820936 9. WP_Hook->apply_filters() /app/wp-includes/class-wp-hook.php:310 1.7365 12821312 10. WPShortPixel->generateCustomColumn() /app/wp-includes/class-wp-hook.php:286

    Plugin Author ShortPixel

    (@shortpixel)

    Hey @atlantajones, could you please contact us via our support channel here: https://shortpixel.com/contact in order to further investigate this problem?

    Has this been solved? I’m seeing it too.

    @other1 No, but I just today sent a followup to Shortpixel support. Hoping to hear something asap.

    Plugin Author ShortPixel

    (@shortpixel)

    Hello @atlantajones @other1 @socalkingg
    Could you please test this dev version of ShortPixel Image Optimizer plugin and let me know if the problem noted by you still occurs?

    Thank you,
    Alex

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

The topic ‘Warning Count: Parameter must be an array’ is closed to new replies.