I'm getting the following status message in my theme related to a block view that shows child tax terms as an HTML jump list. The block is placed on system taxonomy pages. (taxonomy/term/tid) and uses the tid as a contextual filter to show all child terms related to that parent. The block is only placed on parent tax term pages.
Debug:
'Handler views_handler_field_taxonomy tried to add additional_field vocabulary_machine_name but taxonomy_vocabulary could not be added!'
in views_handler_field->add_additional_fields() (line 142 of /var/www/vhosts/MYDOMAIN/public/sites/all/modules/contrib/views/handlers/views_handler_field.inc).
Here is an export of my view.
$view = new view();
$view->name = 'sub_industry_listing';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Sub-industry listing';
$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'] = 'Sub-industry listing';
$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['style_plugin'] = 'jump_menu';
$handler->display->display_options['style_options']['path'] = 'tid';
$handler->display->display_options['style_options']['choose'] = '- Select a sub-industry -';
$handler->display->display_options['row_plugin'] = 'fields';
/* Relationship: Taxonomy Entity Index: Taxonomy terms on Node */
$handler->display->display_options['relationships']['taxonomy_entity_index_entity_tid']['id'] = 'taxonomy_entity_index_entity_tid';
$handler->display->display_options['relationships']['taxonomy_entity_index_entity_tid']['table'] = 'node';
$handler->display->display_options['relationships']['taxonomy_entity_index_entity_tid']['field'] = 'taxonomy_entity_index_entity_tid';
/* Field: Taxonomy term: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['relationship'] = 'taxonomy_entity_index_entity_tid';
$handler->display->display_options['fields']['name']['label'] = '';
$handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
/* Field: Taxonomy term: Term ID */
$handler->display->display_options['fields']['tid']['id'] = 'tid';
$handler->display->display_options['fields']['tid']['table'] = 'taxonomy_term_data';
$handler->display->display_options['fields']['tid']['field'] = 'tid';
$handler->display->display_options['fields']['tid']['relationship'] = 'taxonomy_entity_index_entity_tid';
$handler->display->display_options['fields']['tid']['label'] = '';
$handler->display->display_options['fields']['tid']['exclude'] = TRUE;
$handler->display->display_options['fields']['tid']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['tid']['alter']['text'] = 'taxonomy/term/[tid]';
$handler->display->display_options['fields']['tid']['element_label_colon'] = FALSE;
/* Contextual filter: Taxonomy term: Parent term */
$handler->display->display_options['arguments']['parent']['id'] = 'parent';
$handler->display->display_options['arguments']['parent']['table'] = 'taxonomy_term_hierarchy';
$handler->display->display_options['arguments']['parent']['field'] = 'parent';
$handler->display->display_options['arguments']['parent']['relationship'] = 'taxonomy_entity_index_entity_tid';
$handler->display->display_options['arguments']['parent']['default_action'] = 'default';
$handler->display->display_options['arguments']['parent']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['parent']['title'] = 'Associated %1 Industries';
$handler->display->display_options['arguments']['parent']['default_argument_type'] = 'taxonomy_tid';
$handler->display->display_options['arguments']['parent']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['parent']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['parent']['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(
'brief' => 'brief',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['block_caching'] = '-1';
Not sure if this is a bug, or I have misconfigured my view (more likely). The view works exactly the way I want it to. Just need to get rid of this status message as it shows up for all users, including anonymous ones.
Comments
Comment #1
diwant commentedI had the same thing and I think it happens when you try to load a term name as a field in a view that is not on the taxonomy base table (the one you have above is a view based on the 'node' table to show Content).
Try redesigning your view off of taxonomy as the base and you may get your view. I did.
Comment #2
eminencehealthcare commented#1 Worked for me, thanks.
Comment #3
sadist commentedHi, I'm trying to achieve the same thing. But how could I display the node itmes (title, field, body) if I work base on taxonomy?
Comment #4
diwant commentedCreate the view on the taxonomy table as base, and then introduce the nodes using views relationships.
So, for example, make a relationship to all nodes tagged with the current term. Then in the fields, you should be able to select Node fields and properties. Just make sure to use the correct relationship for each of the node fields and you should be set!
Comment #5
3magnus commentedI did all @diwant suggested and I'm still receiving this user notice.
Both formats (content view and taxonomy view) work as they should. I'm just getting this notice trough Recent Logs.
Any thoughts?
Comment #6
mustanggb commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.