Maybe this isn't a bug, but a configuration error on my part. Either way, I'm having great difficulty getting my entity reference field to display properly using a "view" in the display options for my content type. I had this view working (I thought) so that it displayed the referenced entities when viewing the node that references them.

Basically, I have a journal node type that uses an entity reference field to reference "poem" node types. The poem node types also use an entity reference field to reference "author" node types. This view should pull in the titles of the poems referenced by the journal and the poems' authors. I had the view displaying this content in a table when viewing the journal. Like I said, this seemed to work until I added a couple of other fields to the journal node type, including a second entity reference field for editors. Then the view stopped displaying. I worked backwards, removing the other entity reference field, but the view will no longer display. I have no idea what went wrong here. Here is a copy of exported view and I would appreciate any help here:

$view = new view();
$view->name = 'issue_content';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Issue Content';
$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'] = 'Table of Contents';
$handler->display->display_options['use_more_always'] = FALSE;
$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'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'title' => 'title',
  'field_author_or_contributor' => 'field_author_or_contributor',
  'title_1' => 'title_1',
  'nothing' => 'nothing',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'title' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'field_author_or_contributor' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 1,
  ),
  'title_1' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'nothing' => array(
    'align' => '',
    'separator' => '',
    'empty_column' => 1,
  ),
);
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_poem_in_issue_target_id']['id'] = 'field_poem_in_issue_target_id';
$handler->display->display_options['relationships']['field_poem_in_issue_target_id']['table'] = 'field_data_field_poem_in_issue';
$handler->display->display_options['relationships']['field_poem_in_issue_target_id']['field'] = 'field_poem_in_issue_target_id';
$handler->display->display_options['relationships']['field_poem_in_issue_target_id']['required'] = TRUE;
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_author_or_contributor_target_id']['id'] = 'field_author_or_contributor_target_id';
$handler->display->display_options['relationships']['field_author_or_contributor_target_id']['table'] = 'field_data_field_author_or_contributor';
$handler->display->display_options['relationships']['field_author_or_contributor_target_id']['field'] = 'field_author_or_contributor_target_id';
$handler->display->display_options['relationships']['field_author_or_contributor_target_id']['relationship'] = 'field_poem_in_issue_target_id';
/* 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']['relationship'] = 'field_poem_in_issue_target_id';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: by */
$handler->display->display_options['fields']['field_author_or_contributor']['id'] = 'field_author_or_contributor';
$handler->display->display_options['fields']['field_author_or_contributor']['table'] = 'field_data_field_author_or_contributor';
$handler->display->display_options['fields']['field_author_or_contributor']['field'] = 'field_author_or_contributor';
$handler->display->display_options['fields']['field_author_or_contributor']['relationship'] = 'field_poem_in_issue_target_id';
$handler->display->display_options['fields']['field_author_or_contributor']['label'] = '';
$handler->display->display_options['fields']['field_author_or_contributor']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_author_or_contributor']['alter']['path'] = '[field_author_or_contributor-target_id]';
$handler->display->display_options['fields']['field_author_or_contributor']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_author_or_contributor']['settings'] = array(
  'link' => 0,
);
/* Field: Content: Title */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'node';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['relationship'] = 'field_author_or_contributor_target_id';
$handler->display->display_options['fields']['title_1']['label'] = '';
$handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
$handler->display->display_options['fields']['nothing']['alter']['text'] = '[title], by [title_1]';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['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']['relationship'] = 'field_poem_in_issue_target_id';
$handler->display->display_options['filters']['type']['value'] = array(
  'poem' => 'poem',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;

Comments

Did you figure out how to solve this?