Forum Replies Created

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

    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 /home/.sites/74/site3501189/web/stage99/wp-content/plugins/collapsing-categories/collapscatlist.php on line 508

    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,

    my suggestion:

    Insert this snippet in the function.php (might be
    involve it in your plugin Gallery Shortcode) and your
    plugin is perfect. 5 Stars for you jethin!

    //function.php or templete
    remove_shortcode(‘gallery’, ‘gallery_shortcode’);
    function gss_override_gallery($atts) {
    global $post;
    $atts_string = ”;
    foreach($atts as $k => $v){
    $atts_string .= ‘ ‘ . $k . ‘=’ . $v;
    }
    $gallery_html = do_shortcode(‘[gss’ . $atts_string . ‘ carousel=”fx=carousel” ‘ . ‘ name=’ . $post->ID . ‘]’);
    return $gallery_html;
    }
    add_shortcode(‘gallery’, ‘gss_override_gallery’);

    Doktor Holliday

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