Support » Plugin: Collapsing Categories » PHP problem?

  • 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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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

    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. 🙁

    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

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.