• Resolved Carlos Vázquez

    (@carlos-vzquez)


    Wp in IIS7
    When trying to access the widgets panel (http://www.example.com/wp-admin/widgets.php) I get the following error:

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

    Solution

    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']);
    }

    example

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

    and replacing

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

    http://wordpress.org/extend/plugins/widgets-controller/

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