• Resolved Hashim

    (@uipro)


    Hi,

    I would definitely give this plugin a 5 stars review ??

    In Mega Menu when I add “WPMM Grid Posts” and select options (checkbox) -> “Show Navigation on the Post?”. Mega Menu dropdown shows following wranings:

    1. Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\infinit\wp-content\plugins\wp-megamenu\addons\wpmm-gridpost\wpmm-gridpost.php on line 199

    2. Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\infinit\wp-content\plugins\wp-megamenu\addons\wpmm-gridpost\wpmm-gridpost.php on line 201

    Can you please fix or assist with this issue?

    Thanks,

    Best Regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    Thank you for noticing us, let us see this issue. it could be maybe you have no data, But we will confirm you as soon as possible

    Best regards

    Hi

    Im giving you solution, we are updating our core too.

    Go to line number 198 in file root/wp-content\plugins\wp-megamenu\addons\wpmm-gridpost\wpmm-gridpost.php

    Remove this condition

    if( ! empty($instance['show_nav']) && $instance['show_nav'] == 'on' ){
                        $output .= '<span data-showcat="'.$instance['show_category'].'" data-type="post" data-category="'.$data_category.'" data-current="1" ata-oderby="'.$instance["order_by"].'" data-oderby="'.$instance["order_by"].'" data-column="'.$no_column.'"  data-total="'.$data->max_num_pages.'" class="dashicons dashicons-arrow-left-alt2 wpmm-left wpmm-gridcontrol-left disablebtn"></span>';
                        $var = ($data->max_num_pages == 1)? 'disablebtn' : '';
                        $output .= '<span data-showcat="'.$instance['show_category'].'" data-type="post" data-category="'.$data_category.'"  data-current="1" data-oderby="'.$instance["order_by"].'" data-column="'.$no_column.'"  data-total="'.$data->max_num_pages.'" class="dashicons dashicons-arrow-right-alt2 wpmm-right wpmm-gridcontrol-right '.$var.'"></span>';
                    }

    Add below condition

    
    if( ! empty($instance['show_nav']) && $instance['show_nav'] == 'on' ){
                        $data_category = '';
                        if ( ! empty($instance['category'])){
                            $data_category = implode(',',$instance['category']);
                        }
                        $output .= '<span data-showcat="'.$instance['show_category'].'" data-type="post" data-category="'.$data_category.'" data-current="1" ata-oderby="'.$instance["order_by"].'" data-oderby="'.$instance["order_by"].'" data-column="'.$no_column.'"  data-total="'.$data->max_num_pages.'" class="dashicons dashicons-arrow-left-alt2 wpmm-left wpmm-gridcontrol-left disablebtn"></span>';
                        $var = ($data->max_num_pages == 1)? 'disablebtn' : '';
                        $output .= '<span data-showcat="'.$instance['show_category'].'" data-type="post" data-category="'.$data_category.'"  data-current="1" data-oderby="'.$instance["order_by"].'" data-column="'.$no_column.'"  data-total="'.$data->max_num_pages.'" class="dashicons dashicons-arrow-right-alt2 wpmm-right wpmm-gridcontrol-right '.$var.'"></span>';
                    }

    Hope your issue will be solve, there because of you have not selected any category here, but we’ve fixed now

    Thank you for noticing this issue, it will be great if you place a 5star review

    Best regards

    Thread Starter Hashim

    (@uipro)

    Thank you very much @mhshohel for this quick solution.

    Sure, will give this plugin a 5 stars review ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘warning: implode()’ is closed to new replies.