Support » Plugin: Widgets Controller » iis error implode

  • Resolved Carlos Vázquez


    Wp in IIS7
    When trying to access the widgets panel ( I get the following error:

    PHP Warning: implode() [function.implode]: Invalid arguments passed in D:\webdir\\Html\wp-content\plugins\widgets-controller\widgets_controller.php on line 115


    Make sure that $instance['xxxxx'] is an array. When none of the options is selected, then there is NO such thing as $instance['xxxxx']!!!

    if( is_array($instance['xxxxx']) )
      $xxxxx = implode(",", $instance['xxxxx']);


    if( is_array($instance['posts']) )
      $temposts = implode(",", $instance['posts']);

    and replacing

    current_posts="<?php echo implode("," , $instance['posts']); ?>"
    current_posts="<?php echo $temposts; ?>"

  • The topic ‘iis error implode’ is closed to new replies.