WordPress.org

Ready to get started?Download WordPress

Forums

Widgets Controller
[resolved] iis error implode (1 post)

  1. Carlos Vázquez
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags