• Resolved zauberwald

    (@zauberwald)


    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 7 replies - 1 through 7 (of 7 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.

    Thread Starter zauberwald

    (@zauberwald)

    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

    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

    (@robfelty)

    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.