Title: PHP Warning: count(): Parameter must be an array or an object&#8230;
Last modified: August 20, 2018

---

# PHP Warning: count(): Parameter must be an array or an object…

 *  Resolved [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/)
 * Running v2.9.0 with PHP 7.2 I obtain:
 * _PHP Warning: count(): Parameter must be an array or an object that implements
   Countable in wp-content/plugins/ultimate-social-media-plus/libs/controllers/sfsi\
   _frontpopUp.php on line 188_
 * Line 188 is:
 * `$total=count($custom_icons_order);`
 * It takes data from:
 * `$custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);`
 * Let me know if you need additional information.
    -  This topic was modified 7 years, 9 months ago by [ABCdatos](https://wordpress.org/support/users/abcdatos/).

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

 *  [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10609236)
 * Thank you for reporting this.
 * On which website (url) do you experience the issue (so that we can see)?
 * If you de-activate error reporting (at the bottom of question 6 in the plugin),
   are the errors gone then?
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10609847)
 * Sample of URL causing the warning is [https://trucoscaseros.epiel.com/](https://trucoscaseros.epiel.com/).
 * Disabling error reporting stops the warning, as expected.
 * Regards.
 *  [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10609862)
 * Ok, it’s usually safe to switch those errors off because they usually don’t point
   to a serious issue. However, if you want to get to the bottom of it (most likely
   a conflict with your theme), you can get this plugin [https://www.ultimatelysocial.com/usm-premium/](https://www.ultimatelysocial.com/usm-premium/)
   and then we can do a deep-dive… or you just keep suppressing error messages.
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10609946)
 * Disabling errors will hide not seroius issues and also future serious ones, this
   is not a solution.
 * Regards.
 *  [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10609964)
 * We haven’t come across a case yet where those errors were pointing to a serious
   issue. However, we’re happy to investigate deeper as mentioned above. Or, you
   can ask your theme creator about it (or switch your theme and see if that fixes
   it, if that is an option).
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10610482)
 * I switched theme to Twenty Seventeen and the error continues:
 * AH01071: Got error ‘PHP message: PHP Warning: count(): Parameter must be an array
   or an object that implements Countable in […]wp-content/plugins/ultimate-social-
   media-plus/libs/controllers/sfsi_frontpopUp.php on line 188\n’, referer: [https://trucoscaseros.epiel.com/](https://trucoscaseros.epiel.com/)
 * I don’t want to buy a paid plugin to get support.
 * Regards.
 *  [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10610670)
 * Ok we may have found the issue. We’ll investigate further and update you here.
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10611467)
 * Good news, thank you!
 *  [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10733802)
 * This should be fixed in latest release. Please update and check. Thank you!
 *  Thread Starter [ABCdatos](https://wordpress.org/support/users/abcdatos/)
 * (@abcdatos)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10733948)
 * It seems fine. Thank you!
 *  [hanamichi07](https://wordpress.org/support/users/hanamichi07/)
 * (@hanamichi07)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10853513)
 * Hello,
 * How this issue fixed?
 * Thanks

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

The topic ‘PHP Warning: count(): Parameter must be an array or an object…’ is closed
to new replies.

 * ![](https://ps.w.org/ultimate-social-media-plus/assets/icon-128x128.png?rev=2230338)
 * [Social Share Icons & Social Share Buttons](https://wordpress.org/plugins/ultimate-social-media-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-social-media-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-social-media-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-social-media-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-social-media-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-social-media-plus/reviews/)

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)
 * [countable](https://wordpress.org/support/topic-tag/countable/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 11 replies
 * 3 participants
 * Last reply from: [hanamichi07](https://wordpress.org/support/users/hanamichi07/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-or-an-object/#post-10853513)
 * Status: resolved