Title: Warning: count(): Parameter must implement Countable
Last modified: December 13, 2019

---

# Warning: count(): Parameter must implement Countable

 *  Resolved [swinggraphics](https://wordpress.org/support/users/swinggraphics/)
 * (@swinggraphics)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/warning-count-parameter-must-implement-countable/)
 * If you have the shortcode without any active feeds, you get this warning:
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in wp-content/plugins/insta-gallery/includes/frontend.php on line 122
 * The fix is to change `get_option('insta_gallery_items')` to `get_option('insta_gallery_items',[])`

Viewing 1 replies (of 1 total)

 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/warning-count-parameter-must-implement-countable/#post-12239345)
 * hello [@swinggraphics](https://wordpress.org/support/users/swinggraphics/)
    thanks
   for reporting this issue we will fix it on the next update

Viewing 1 replies (of 1 total)

The topic ‘Warning: count(): Parameter must implement Countable’ is closed to new
replies.

 * ![](https://ps.w.org/insta-gallery/assets/icon-256x256.gif?rev=3301774)
 * [Social Feed Gallery](https://wordpress.org/plugins/insta-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insta-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insta-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/insta-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insta-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insta-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/warning-count-parameter-must-implement-countable/#post-12239345)
 * Status: resolved