Title: PHP problem?
Last modified: September 21, 2019

---

# PHP problem?

 *  Resolved [zauberwald](https://wordpress.org/support/users/zauberwald/)
 * (@zauberwald)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-problem-20/)
 * Hello,
    can someone help us? I´ve got this message (5x) on our blog: Warning:
   count(): Parameter must be an array or an object that implements Countable in/
   homepages/27/d682528340/htdocs/app682528433/wp-content/plugins/collapsing-categories/
   collapscatlist.php on line 134
 * what can i do?
 * Thanks for help.
 * Jens
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-problem-20%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [developforefront](https://wordpress.org/support/users/developforefront/)
 * (@developforefront)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-problem-20/#post-11960386)
 * We have the same problem and this error we’ve got once we upgraded the PHP-version(
   7.2 and 7.3).
 * I’m trying to figure it out and find the solution but so far without any luck.
   Seems like “count()” is deprecated in the newer version of PHP and there must
   be some alternates.
 *  Thread Starter [zauberwald](https://wordpress.org/support/users/zauberwald/)
 * (@zauberwald)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-problem-20/#post-11966061)
 * Thanks for the answer. I hope for a quick solution, because it does not look 
   so professional. However, we love this menu and do not want to use anything else.
   Friendly greetings, Jens
 *  [angeljs](https://wordpress.org/support/users/angeljs/)
 * (@angeljs)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-problem-20/#post-11973071)
 * I’m having the same issue. My error log is larger than my website! Until a solution
   is found I’m going to have to use something else. 🙁
 *  [WernerGT](https://wordpress.org/support/users/wernergt/)
 * (@wernergt)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-problem-20/#post-12069486)
 * I’m having the same issue. Any suggestions to resolve the Problem??????
 * Any suggestions to resolve the Problem??????
    Error happened after changing PHP
   Version 7.0 to 7.2
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in /volume1/web/Wordpress/wp-content/plugins/collapsing-categories/collapscatlist.
   php on line 134 Warning: count(): Parameter must be an array or an object that
   implements Countable in /volume1/web/Wordpress/wp-content/plugins/collapsing-
   categories/collapscatlist.php on line 134 Warning: count(): Parameter must be
   an array or an object that implements Countable in /volume1/web/Wordpress/wp-
   content/plugins/collapsing-categories/collapscatlist.php on line 134 Warning:
   count(): Parameter must be an array or an object that implements Countable in/
   volume1/web/Wordpress/wp-content/plugins/collapsing-categories/collapscatlist.
   php on line 134 Warning: count(): Parameter must be an array or an object that
   implements Countable in /volume1/web/Wordpress/wp-content/plugins/collapsing-
   categories/collapscatlist.php on line 134 Warning: count(): Parameter must be
   an array or an object that implements Countable in /volume1/web/Wordpress/wp-
   content/plugins/collapsing-categories/collapscatlist.php on line 134
 *  [WernerGT](https://wordpress.org/support/users/wernergt/)
 * (@wernergt)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/php-problem-20/#post-12070011)
 * Hi,
 * I solved that error by me, changing count($posts) to count((array)$posts)
 * in the program file specified in the error.
 * by me in the folder /plugins/collapsing-categories/collapscatlist.php.(line 134)
 * might be there are other count() sentences in the code have to be changed.
 * Hope that helps, by me it works.
 * think you have to change count() too in file /wp-content/plugins/collapsing-categories/
   collapscatlist.php on line 508
 *  [karenelated](https://wordpress.org/support/users/karenelated/)
 * (@karenelated)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-problem-20/#post-12505855)
 * Hello
 * Not sure whether I should implement the fix before I know if this plugin is still
   maintained. The plugin homepage returns an internal server error.
 * This is a super useful plugin, I haven’t found a substitute and am very grateful
   for the many years of free use and support, so I would like to continue using
   it.
 * Thanks
    Karen
 *  Plugin Author [robfelty](https://wordpress.org/support/users/robfelty/)
 * (@robfelty)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-problem-20/#post-12613990)
 * This should be solved in 2.2.0 + now.

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

The topic ‘PHP problem?’ is closed to new replies.

 * ![](https://ps.w.org/collapsing-categories/assets/icon-256x256.gif?rev=2886482)
 * [Collapsing Categories](https://wordpress.org/plugins/collapsing-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-categories/reviews/)

## Tags

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

 * 7 replies
 * 2 participants
 * Last reply from: [robfelty](https://wordpress.org/support/users/robfelty/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/php-problem-20/#post-12613990)
 * Status: resolved