I get this when viewing a particular panel or viewing the contexts screen in the page's admin UI.

Warning: Illegal offset type in isset or empty in ctools_context_required->select() (line 168 of C:\Users\JD\Documents\websites\tbm.git\sites\all\modules\ctools\includes\context.inc).

Debugging this code, I can't see what's causing this.

Comments

jdleonard’s picture

Export of the panel:

$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'listing';
$page->task = 'page';
$page->admin_title = 'Listing';
$page->admin_description = '';
$page->path = 'school/%school/isbn/%textbook/buy-rent/listing/%listing';
$page->access = array();
$page->menu = array();
$page->arguments = array(
  'school' => array(
    'id' => 1,
    'identifier' => 'School',
    'name' => 'school_path',
    'settings' => array(),
  ),
  'textbook' => array(
    'id' => 1,
    'identifier' => 'Textbook',
    'name' => 'textbook_isbn13',
    'settings' => array(),
  ),
  'listing' => array(
    'id' => 1,
    'identifier' => 'Listing',
    'name' => 'entity_id:node',
    'settings' => array(),
  ),
);
$page->conf = array(
  'admin_paths' => FALSE,
);
$page->default_handlers = array();
$handler = new stdClass;
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'page_listing_panel_context';
$handler->task = 'page';
$handler->subtask = 'listing';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
  'title' => 'Panel',
  'no_blocks' => 0,
  'pipeline' => 'standard',
  'css_id' => '',
  'css' => '',
  'contexts' => array(),
  'relationships' => array(
    0 => array(
      'identifier' => 'Listing author',
      'keyword' => 'listing_author',
      'name' => 'entity_from_schema:uid-node-user',
      'context' => 'argument_entity_id:node_1',
      'id' => 1,
    ),
  ),
  'access' => array(
    'plugins' => array(),
    'logic' => 'and',
  ),
);
$display = new panels_display;
$display->layout = 'flexible';
$display->layout_settings = array(
  'items' => array(
    'canvas' => array(
      'type' => 'row',
      'contains' => 'column',
      'children' => array(
        0 => 'main',
      ),
      'parent' => NULL,
    ),
    'main' => array(
      'type' => 'column',
      'width' => 100,
      'width_type' => '%',
      'children' => array(
        0 => 'main-row',
        1 => 1,
      ),
      'parent' => 'canvas',
    ),
    'main-row' => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'center',
      ),
      'parent' => 'main',
    ),
    'center' => array(
      'type' => 'region',
      'title' => 'Textbook summary',
      'width' => 100,
      'width_type' => '%',
      'parent' => 'main-row',
      'class' => '',
    ),
    1 => array(
      'type' => 'row',
      'contains' => 'region',
      'children' => array(
        0 => 'listing_info',
        1 => 'seller_info',
      ),
      'parent' => 'main',
      'class' => '',
    ),
    'listing_info' => array(
      'type' => 'region',
      'title' => 'Listing info',
      'width' => 50,
      'width_type' => '%',
      'parent' => '1',
      'class' => '',
    ),
    'seller_info' => array(
      'type' => 'region',
      'title' => 'Seller info',
      'width' => 50,
      'width_type' => '%',
      'parent' => '1',
      'class' => '',
    ),
  ),
);
$display->panel_settings = array(
  'style_settings' => array(
    'default' => NULL,
    'center' => NULL,
    'listing_info' => NULL,
    'seller_info' => NULL,
  ),
);
$display->cache = array();
$display->title = '%listing:title at %school:name';
$display->content = array();
$display->panels = array();
  $pane = new stdClass;
  $pane->pid = 'new-1';
  $pane->panel = 'center';
  $pane->type = 'views_panes';
  $pane->subtype = 'textbook_info-panel_pane_1';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'context' => array(
      0 => 'argument_textbook_isbn13_1',
    ),
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-1'] = $pane;
  $display->panels['center'][0] = 'new-1';
  $pane = new stdClass;
  $pane->pid = 'new-2';
  $pane->panel = 'listing_info';
  $pane->type = 'entity_field';
  $pane->subtype = 'node:field_condition';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'label' => 'inline',
    'formatter' => 'fivestar_formatter_default',
    'formatter_settings' => array(
      'style' => 'average',
      'feedback_enable' => 0,
      'text' => 'average',
      'expose' => 1,
    ),
    'context' => array(
      0 => 'argument_textbook_isbn13_1',
    ),
    'override_title' => 1,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-2'] = $pane;
  $display->panels['listing_info'][0] = 'new-2';
  $pane = new stdClass;
  $pane->pid = 'new-3';
  $pane->panel = 'listing_info';
  $pane->type = 'entity_field';
  $pane->subtype = 'node:field_asking_price';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'label' => 'inline',
    'formatter' => 'number_integer',
    'formatter_settings' => array(
      'thousand_separator' => ',',
      'prefix_suffix' => 1,
    ),
    'context' => 'argument_entity_id:node_1',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 1;
  $display->content['new-3'] = $pane;
  $display->panels['listing_info'][1] = 'new-3';
  $pane = new stdClass;
  $pane->pid = 'new-4';
  $pane->panel = 'listing_info';
  $pane->type = 'custom';
  $pane->subtype = 'custom';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'admin_title' => 'Listing information',
    'title' => '',
    'body' => '<h2>Listing information</h2>',
    'format' => 'html_plus',
    'substitute' => 0,
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 2;
  $display->content['new-4'] = $pane;
  $display->panels['listing_info'][2] = 'new-4';
  $pane = new stdClass;
  $pane->pid = 'new-5';
  $pane->panel = 'listing_info';
  $pane->type = 'entity_field';
  $pane->subtype = 'node:field_seller_comments';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'label' => 'above',
    'formatter' => 'text_default',
    'formatter_settings' => array(),
    'context' => 'argument_entity_id:node_1',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 3;
  $display->content['new-5'] = $pane;
  $display->panels['listing_info'][3] = 'new-5';
  $pane = new stdClass;
  $pane->pid = 'new-6';
  $pane->panel = 'seller_info';
  $pane->type = 'entity_field';
  $pane->subtype = 'user:field_full_name';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'label' => 'inline',
    'formatter' => 'text_default',
    'formatter_settings' => array(),
    'context' => 'relationship_entity_from_schema:uid-node-user_1',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-6'] = $pane;
  $display->panels['seller_info'][0] = 'new-6';
  $pane = new stdClass;
  $pane->pid = 'new-7';
  $pane->panel = 'seller_info';
  $pane->type = 'token';
  $pane->subtype = 'user:mail';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'sanitize' => 1,
    'context' => 'relationship_entity_from_schema:uid-node-user_1',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 1;
  $display->content['new-7'] = $pane;
  $display->panels['seller_info'][1] = 'new-7';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-5';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;
jdleonard’s picture

Status: Active » Closed (cannot reproduce)

I haven't repro'd this in a while. I'll reopen if it shows itself again, thanks.

brownrl’s picture

I've run into this too.

It seems this code in context.inc of the ctools module.

  if (!$this->skip_name_check && !empty($context) && !isset($contexts[$context])) {

Around line 179.

The !empty is failing.
The $context for me when dpm'd seems to be an array with 1 element in it.
I've put this in the beginning of the function for now and it seems to go away.

if (is_array($context) ) {
    $context = $context[0];
  }
seanr’s picture

Version: 7.x-1.0-rc1 » 7.x-1.3

Getting this as well:

$panelizer = new ();
$panelizer->disabled = FALSE; /* Edit this to true to make a default panelizer disabled initially */
$panelizer->api_version = 1;
$panelizer->name = NULL;
$panelizer->title = NULL;
$panelizer->panelizer_type = NULL;
$panelizer->panelizer_key = NULL;
$panelizer->no_blocks = FALSE;
$panelizer->css_id = NULL;
$panelizer->css = NULL;
$panelizer->pipeline = NULL;
$panelizer->contexts = NULL;
$panelizer->relationships = NULL;
$panelizer->access = NULL;
$panelizer->view_mode = NULL;
$panelizer->css_class = NULL;
$panelizer->title_element = NULL;
$panelizer->link_to_entity = FALSE;
$panelizer->extra = NULL;
$display = new ();
$display->layout = '';
$display->layout_settings = '';
$display->panel_settings = '';
$display->cache = '';
$display->title = '';
$display->content = array();
$display->panels = array();
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = '0';
$panelizer->display = $display;

Occurs when adding this view:

$view = new view();
$view->name = 'blog';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Blog';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Latest Blog Posts';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['group_by'] = TRUE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Relationship: Content: Blog Category (field_blog_category) */
$handler->display->display_options['relationships']['field_blog_category_tid']['id'] = 'field_blog_category_tid';
$handler->display->display_options['relationships']['field_blog_category_tid']['table'] = 'field_data_field_blog_category';
$handler->display->display_options['relationships']['field_blog_category_tid']['field'] = 'field_blog_category_tid';
/* Field: Taxonomy term: Rendered Taxonomy term */
$handler->display->display_options['fields']['rendered_entity']['id'] = 'rendered_entity';
$handler->display->display_options['fields']['rendered_entity']['table'] = 'views_entity_taxonomy_term';
$handler->display->display_options['fields']['rendered_entity']['field'] = 'rendered_entity';
$handler->display->display_options['fields']['rendered_entity']['relationship'] = 'field_blog_category_tid';
$handler->display->display_options['fields']['rendered_entity']['label'] = '';
$handler->display->display_options['fields']['rendered_entity']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['rendered_entity']['link_to_entity'] = 1;
$handler->display->display_options['fields']['rendered_entity']['display'] = 'view';
$handler->display->display_options['fields']['rendered_entity']['view_mode'] = 'blog_category_list';
/* Field: Content: Author(s) */
$handler->display->display_options['fields']['field_author_ref']['id'] = 'field_author_ref';
$handler->display->display_options['fields']['field_author_ref']['table'] = 'field_data_field_author_ref';
$handler->display->display_options['fields']['field_author_ref']['field'] = 'field_author_ref';
$handler->display->display_options['fields']['field_author_ref']['label'] = '';
$handler->display->display_options['fields']['field_author_ref']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_author_ref']['type'] = 'entityreference_entity_view';
$handler->display->display_options['fields']['field_author_ref']['settings'] = array(
  'view_mode' => 'title',
  'links' => 0,
);
$handler->display->display_options['fields']['field_author_ref']['delta_limit'] = '1';
$handler->display->display_options['fields']['field_author_ref']['delta_offset'] = '0';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Release Date */
$handler->display->display_options['fields']['field_release_date']['id'] = 'field_release_date';
$handler->display->display_options['fields']['field_release_date']['table'] = 'field_data_field_release_date';
$handler->display->display_options['fields']['field_release_date']['field'] = 'field_release_date';
$handler->display->display_options['fields']['field_release_date']['label'] = '';
$handler->display->display_options['fields']['field_release_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_release_date']['settings'] = array(
  'format_type' => 'medium',
  'fromto' => 'both',
  'multiple_number' => '',
  'multiple_from' => '',
  'multiple_to' => '',
);
/* Sort criterion: Content: Release Date (field_release_date) */
$handler->display->display_options['sorts']['field_release_date_value']['id'] = 'field_release_date_value';
$handler->display->display_options['sorts']['field_release_date_value']['table'] = 'field_data_field_release_date';
$handler->display->display_options['sorts']['field_release_date_value']['field'] = 'field_release_date_value';
$handler->display->display_options['sorts']['field_release_date_value']['order'] = 'DESC';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: Content: Blog Category (field_blog_category) */
$handler->display->display_options['arguments']['field_blog_category_tid']['id'] = 'field_blog_category_tid';
$handler->display->display_options['arguments']['field_blog_category_tid']['table'] = 'field_data_field_blog_category';
$handler->display->display_options['arguments']['field_blog_category_tid']['field'] = 'field_blog_category_tid';
$handler->display->display_options['arguments']['field_blog_category_tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_blog_category_tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_blog_category_tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_blog_category_tid']['summary_options']['items_per_page'] = '25';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'blog' => 'blog',
);

/* Display: Topic Landing List */
$handler = $view->new_display('panel_pane', 'Topic Landing List', 'panel_pane_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Blogs';

/* Display: Full Teaser */
$handler = $view->new_display('panel_pane', 'Full Teaser', 'panel_pane_2');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['links'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['argument_input'] = array(
  'field_blog_category_tid' => array(
    'type' => 'context',
    'context' => 'entity:taxonomy_term.tid',
    'context_optional' => 1,
    'panel' => '0',
    'fixed' => '',
    'label' => 'Content: Blog Category (field_blog_category)',
  ),
);
seanr’s picture

Status: Closed (cannot reproduce) » Active
seanr’s picture

It looks like the $context variable is coming through as this:

array(
  0 => 'panelizer'
)

Bug in panelizer? I'm only seeing this for one vocabulary, though. With the other one I have panelized, it works just fine.