updating from Views 6.x-3.x-dev (2011-Jun-26) to 6.x-3.x-dev (2011-Jul-02)
appears this issue "No valid values found" when I try to sort by a views field

Comments

dawehner’s picture

What kind of filters do you have configured?
Some of them, for example node:type might have items selected which doesn't exist anymore.

tommychris’s picture

Issue also active in 7.x-3.x-dev branch.

Anonymous’s picture

StatusFileSize
new152.05 KB

yes one of them are based on node type, any workaround?

dawehner’s picture

Configure your node type and save it, this should fix it.

Anonymous’s picture

sorry for my stupid question, do I need to save it at
http://domain.ext/admin/content/types/[type_name]/edit
or
http://domain.ext/admin/build/views/edit/[view_name]
...or recreate the node type field in the view?
thanks

dawehner’s picture

2)

mariagwyn’s picture

This error started cropping up when I upgraded to the most recent version of 7.x-3.x-dev.

I tried to re-save the node type as recommended above, but it did not solve the error. The view itself mostly worked, except that it was not properly grouping values (i.e., if one user had multiple tags, the user was listed repeatedly, according to the number of tags).

In one case, I recreated the view from scratch, and it seems to be working fine. Note that this views DOES have an exposed filter based on a taxonomy field.

I then began to recreate another view. All was fine until I set an exposed filter (worked fine) and then I unchecked the "show error message" field on that filter. Suddenly, I have repeated listing of "No valid values found", no preview, and, I cannot save the view. I rechecked "show error message" but the error persists.

I went back to the view that I was trying to recreate, and removed the exposed filter since that caused the error in the recreated version. The error cleared. I then tried to add the filter, and the error reappeared. I am happy to share the view if it helps.

Thanks,
Maria

giorgosk’s picture

workaround mentioned in above
"Configure your node type" and save it
does not work

EDIT:
cleared all the filters and the errors are gone
tried to recreate the fitlers and seems the problem is with "taxonomy term id" filter (exposed or not exposed)

giorgosk’s picture

PLEASE
if anybody has a views 6.x-3.x dev older than july 2nd I would appreciate if you send me a message
(I erased it thinking that new dev would be working fine - usually it does)

giorgosk’s picture

Here is a previously working view that I can't change anything to after updating to the latest dev
if I erase the 2 exposed term filter then I can modify the view but I can't add any term ID or term ID with depth filter

$view = new view;
$view->name = 'Testimonials2';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Testimonials';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['exposed_form']['type'] = 'composite';
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
$handler->display->display_options['exposed_form']['options']['plugins'] = array(
  'better_exposed_filters' => 'better_exposed_filters',
  'views_filters_selective' => 'views_filters_selective',
);
$handler->display->display_options['exposed_form']['options']['better_exposed_filters'] = array(
  'bef' => array(
    'tid' => array(
      'bef_format' => 'bef',
      'more_options' => array(
        'bef_select_all_none' => 0,
        'bef_collapsible' => 0,
        'bef_filter_description' => '',
      ),
    ),
    'tid_1' => array(
      'bef_format' => 'bef',
      'more_options' => array(
        'bef_select_all_none' => 0,
        'bef_collapsible' => 0,
        'bef_filter_description' => '',
      ),
    ),
  ),
);
$handler->display->display_options['exposed_form']['options']['views_filters_selective'] = array(
  'vfs' => array(
    'tid' => array(
      'vfs_selective' => 1,
      'vfs_active' => 1,
      'vfs_field' => '0',
      'vfs_hide_empty' => 1,
    ),
    'tid_1' => array(
      'vfs_selective' => 1,
      'vfs_active' => 1,
      'vfs_field' => '0',
      'vfs_hide_empty' => 1,
    ),
  ),
);
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = 0;
$handler->display->display_options['style_plugin'] = 'grid';
$handler->display->display_options['style_options']['columns'] = '2';
$handler->display->display_options['style_options']['fill_single_line'] = 1;
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Description (field_description) */
$handler->display->display_options['fields']['field_description_value']['id'] = 'field_description_value';
$handler->display->display_options['fields']['field_description_value']['table'] = 'node_data_field_description';
$handler->display->display_options['fields']['field_description_value']['field'] = 'field_description_value';
$handler->display->display_options['fields']['field_description_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_description_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_description_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_description_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_description_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_description_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_description_value']['label_type'] = 'none';
/* Field: Content: Logo (field_logo) */
$handler->display->display_options['fields']['field_logo_fid']['id'] = 'field_logo_fid';
$handler->display->display_options['fields']['field_logo_fid']['table'] = 'node_data_field_logo';
$handler->display->display_options['fields']['field_logo_fid']['field'] = 'field_logo_fid';
$handler->display->display_options['fields']['field_logo_fid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_logo_fid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_logo_fid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['label_type'] = 'none';
$handler->display->display_options['fields']['field_logo_fid']['format'] = 'bubblelogo_default';
/* Field: Content: Company (field_company) */
$handler->display->display_options['fields']['field_company_value']['id'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['table'] = 'node_data_field_company';
$handler->display->display_options['fields']['field_company_value']['field'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_company_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_company_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_company_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_company_value']['label_type'] = 'none';
/* Field: Taxonomy: All terms */
$handler->display->display_options['fields']['tid']['id'] = 'tid';
$handler->display->display_options['fields']['tid']['table'] = 'term_node';
$handler->display->display_options['fields']['tid']['field'] = 'tid';
$handler->display->display_options['fields']['tid']['label'] = '';
$handler->display->display_options['fields']['tid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['tid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['tid']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['tid']['alter']['external'] = 0;
$handler->display->display_options['fields']['tid']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['tid']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['tid']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['tid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['tid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['tid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['tid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['tid']['alter']['html'] = 0;
$handler->display->display_options['fields']['tid']['element_label_colon'] = 1;
$handler->display->display_options['fields']['tid']['element_default_classes'] = 1;
$handler->display->display_options['fields']['tid']['hide_empty'] = 0;
$handler->display->display_options['fields']['tid']['empty_zero'] = 0;
$handler->display->display_options['fields']['tid']['link_to_taxonomy'] = 0;
$handler->display->display_options['fields']['tid']['limit'] = 1;
$handler->display->display_options['fields']['tid']['vids'] = array(
  34 => 34,
  16 => 0,
  25 => 0,
  26 => 0,
  27 => 0,
  33 => 0,
  6 => 0,
  7 => 0,
  22 => 0,
  24 => 0,
  28 => 0,
  18 => 0,
  35 => 0,
  36 => 0,
  31 => 0,
  19 => 0,
  17 => 0,
  13 => 0,
  15 => 0,
  11 => 0,
  10 => 0,
  8 => 0,
  9 => 0,
  23 => 0,
  20 => 0,
  30 => 0,
  12 => 0,
  29 => 0,
  32 => 0,
  21 => 0,
);
/* Field: Node: 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']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 0;
/* Field: Content: Date (field_date) - From date */
$handler->display->display_options['fields']['field_date_value']['id'] = 'field_date_value';
$handler->display->display_options['fields']['field_date_value']['table'] = 'node_data_field_date';
$handler->display->display_options['fields']['field_date_value']['field'] = 'field_date_value';
$handler->display->display_options['fields']['field_date_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_date_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_date_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_date_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_date_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_date_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_date_value']['label_type'] = 'none';
$handler->display->display_options['fields']['field_date_value']['format'] = 'short';
/* Field: Node: Clone link */
$handler->display->display_options['fields']['clone_node']['id'] = 'clone_node';
$handler->display->display_options['fields']['clone_node']['table'] = 'node';
$handler->display->display_options['fields']['clone_node']['field'] = 'clone_node';
$handler->display->display_options['fields']['clone_node']['label'] = '';
$handler->display->display_options['fields']['clone_node']['exclude'] = TRUE;
$handler->display->display_options['fields']['clone_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['clone_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['clone_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['clone_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['clone_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['clone_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['clone_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['clone_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['clone_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['clone_node']['text'] = 'clone';
/* Field: Node: Delete link */
$handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['table'] = 'node';
$handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['label'] = '';
$handler->display->display_options['fields']['delete_node']['exclude'] = TRUE;
$handler->display->display_options['fields']['delete_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['delete_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['delete_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['delete_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['delete_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['delete_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['delete_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['delete_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['delete_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['delete_node']['text'] = 'delete';
/* Field: Node: Edit link */
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['table'] = 'node';
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['label'] = '';
$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['external'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['edit_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['edit_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['edit_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = 1;
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = 1;
$handler->display->display_options['fields']['edit_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['edit_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['edit_node']['text'] = 'edit';
/* Field: Content: List position (field_list_position) */
$handler->display->display_options['fields']['field_list_position_value']['id'] = 'field_list_position_value';
$handler->display->display_options['fields']['field_list_position_value']['table'] = 'node_data_field_list_position';
$handler->display->display_options['fields']['field_list_position_value']['field'] = 'field_list_position_value';
$handler->display->display_options['fields']['field_list_position_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_list_position_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_list_position_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_list_position_value']['label_type'] = 'none';
$handler->display->display_options['fields']['field_list_position_value']['format'] = 'jeditable_textfield';
/* 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']['alter']['text'] = '[clone_node]
[delete_node]
[edit_node] ';
$handler->display->display_options['fields']['nothing']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['external'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['html'] = 0;
$handler->display->display_options['fields']['nothing']['element_label_colon'] = 1;
$handler->display->display_options['fields']['nothing']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nothing']['hide_empty'] = 0;
$handler->display->display_options['fields']['nothing']['empty_zero'] = 0;
/* Sort criterion: Content: List position (field_list_position) */
$handler->display->display_options['sorts']['field_list_position_value']['id'] = 'field_list_position_value';
$handler->display->display_options['sorts']['field_list_position_value']['table'] = 'node_data_field_list_position';
$handler->display->display_options['sorts']['field_list_position_value']['field'] = 'field_list_position_value';
/* Filter: Node: 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(
  'testimonial' => 'testimonial',
);
$handler->display->display_options['filters']['type']['expose']['operator'] = FALSE;
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid']['id'] = 'tid';
$handler->display->display_options['filters']['tid']['table'] = 'term_node';
$handler->display->display_options['filters']['tid']['field'] = 'tid';
$handler->display->display_options['filters']['tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid']['expose']['operator'] = 'tid_op';
$handler->display->display_options['filters']['tid']['expose']['limit_operators'] = array();
$handler->display->display_options['filters']['tid']['expose']['label'] = 'Country';
$handler->display->display_options['filters']['tid']['expose']['identifier'] = 'cou';
$handler->display->display_options['filters']['tid']['expose']['single'] = 0;
$handler->display->display_options['filters']['tid']['expose']['reduce'] = 0;
$handler->display->display_options['filters']['tid']['reduce_duplicates'] = 1;
$handler->display->display_options['filters']['tid']['type'] = 'select';
$handler->display->display_options['filters']['tid']['vid'] = '34';
$handler->display->display_options['filters']['tid']['error_message'] = 0;
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid_1']['id'] = 'tid_1';
$handler->display->display_options['filters']['tid_1']['table'] = 'term_node';
$handler->display->display_options['filters']['tid_1']['field'] = 'tid';
$handler->display->display_options['filters']['tid_1']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid_1']['expose']['operator'] = 'tid_1_op';
$handler->display->display_options['filters']['tid_1']['expose']['limit_operators'] = array();
$handler->display->display_options['filters']['tid_1']['expose']['label'] = 'Industry';
$handler->display->display_options['filters']['tid_1']['expose']['identifier'] = 'ind';
$handler->display->display_options['filters']['tid_1']['expose']['single'] = 0;
$handler->display->display_options['filters']['tid_1']['expose']['reduce'] = 0;
$handler->display->display_options['filters']['tid_1']['reduce_duplicates'] = 1;
$handler->display->display_options['filters']['tid_1']['type'] = 'select';
$handler->display->display_options['filters']['tid_1']['vid'] = '35';
$handler->display->display_options['filters']['tid_1']['error_message'] = 0;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'testimonials';

/* Display: sidebar Block */
$handler = $view->new_display('block', 'sidebar Block', 'block_1');
$handler->display->display_options['defaults']['use_more'] = FALSE;

/* Display: Frontpage Block */
$handler = $view->new_display('block', 'Frontpage Block', 'block_2');
$handler->display->display_options['items_per_page'] = 0;
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more_text'] = 'Read testimonials';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'jcarousel';
$handler->display->display_options['style_options']['wrap'] = '0';
$handler->display->display_options['style_options']['visible'] = '';
$handler->display->display_options['style_options']['auto'] = '0';
$handler->display->display_options['style_options']['autoPause'] = 1;
$handler->display->display_options['style_options']['easing'] = '';
$handler->display->display_options['style_options']['vertical'] = 0;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Logo (field_logo) */
$handler->display->display_options['fields']['field_logo_fid']['id'] = 'field_logo_fid';
$handler->display->display_options['fields']['field_logo_fid']['table'] = 'node_data_field_logo';
$handler->display->display_options['fields']['field_logo_fid']['field'] = 'field_logo_fid';
$handler->display->display_options['fields']['field_logo_fid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_logo_fid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_logo_fid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_logo_fid']['label_type'] = 'none';
$handler->display->display_options['fields']['field_logo_fid']['format'] = 'bubblelogo_default';
/* Field: Content: Company (field_company) */
$handler->display->display_options['fields']['field_company_value']['id'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['table'] = 'node_data_field_company';
$handler->display->display_options['fields']['field_company_value']['field'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_company_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_company_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_company_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_company_value']['label_type'] = 'none';

/* Display: front ticker */
$handler = $view->new_display('block', 'front ticker', 'block_3');
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'views_ticker';
$handler->display->display_options['style_options']['scroller_type'] = 'vertical';
$handler->display->display_options['style_options']['hscroller_Options'] = array(
  'hscroller_speed' => '30',
  'hscroller_direction' => 'left',
  'hscroller_mouseover' => 0,
  'hscroller_delay' => '0',
  'hscroller_bounce' => 0,
);
$handler->display->display_options['style_options']['vscroller_Options'] = array(
  'vscroller_speed' => '30',
  'vscroller_direction' => 'up',
  'vscroller_mouseover' => 0,
  'vscroller_delay' => '0',
  'vscroller_bounce' => 0,
);
$handler->display->display_options['style_options']['vTicker_Options'] = array(
  'vTicker_mouseover' => 0,
  'vTicker_speed' => '500',
  'vTicker_pause' => '1000',
  'vTicker_items' => '5',
  'vTicker_direction' => 'up',
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Taxonomy: All terms */
$handler->display->display_options['fields']['tid']['id'] = 'tid';
$handler->display->display_options['fields']['tid']['table'] = 'term_node';
$handler->display->display_options['fields']['tid']['field'] = 'tid';
$handler->display->display_options['fields']['tid']['label'] = '';
$handler->display->display_options['fields']['tid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['tid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['tid']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['tid']['alter']['external'] = 0;
$handler->display->display_options['fields']['tid']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['tid']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['tid']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['tid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['tid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['tid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['tid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['tid']['alter']['html'] = 0;
$handler->display->display_options['fields']['tid']['element_label_colon'] = 1;
$handler->display->display_options['fields']['tid']['element_default_classes'] = 1;
$handler->display->display_options['fields']['tid']['hide_empty'] = 0;
$handler->display->display_options['fields']['tid']['empty_zero'] = 0;
$handler->display->display_options['fields']['tid']['link_to_taxonomy'] = 0;
$handler->display->display_options['fields']['tid']['limit'] = 1;
$handler->display->display_options['fields']['tid']['vids'] = array(
  34 => 34,
  16 => 0,
  25 => 0,
  26 => 0,
  27 => 0,
  33 => 0,
  6 => 0,
  7 => 0,
  22 => 0,
  24 => 0,
  28 => 0,
  18 => 0,
  35 => 0,
  36 => 0,
  31 => 0,
  19 => 0,
  17 => 0,
  13 => 0,
  15 => 0,
  11 => 0,
  10 => 0,
  8 => 0,
  9 => 0,
  23 => 0,
  20 => 0,
  30 => 0,
  12 => 0,
  29 => 0,
  32 => 0,
  21 => 0,
);
/* Field: Content: Company (field_company) */
$handler->display->display_options['fields']['field_company_value']['id'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['table'] = 'node_data_field_company';
$handler->display->display_options['fields']['field_company_value']['field'] = 'field_company_value';
$handler->display->display_options['fields']['field_company_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_company_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_company_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_company_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_company_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_company_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_company_value']['label_type'] = 'none';
/* Field: Content: Date (field_date) - From date */
$handler->display->display_options['fields']['field_date_value']['id'] = 'field_date_value';
$handler->display->display_options['fields']['field_date_value']['table'] = 'node_data_field_date';
$handler->display->display_options['fields']['field_date_value']['field'] = 'field_date_value';
$handler->display->display_options['fields']['field_date_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_date_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_date_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_date_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_date_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_date_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_date_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_date_value']['label_type'] = 'none';
$handler->display->display_options['fields']['field_date_value']['format'] = 'short';
/* Field: Node: 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']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 0;
/* Field: Content: Description (field_description) */
$handler->display->display_options['fields']['field_description_value']['id'] = 'field_description_value';
$handler->display->display_options['fields']['field_description_value']['table'] = 'node_data_field_description';
$handler->display->display_options['fields']['field_description_value']['field'] = 'field_description_value';
$handler->display->display_options['fields']['field_description_value']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_description_value']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_description_value']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_description_value']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_description_value']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_description_value']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_description_value']['link_to_node'] = 0;
$handler->display->display_options['fields']['field_description_value']['label_type'] = 'none';
$translatables['Testimonials2'] = array(
  t('Defaults'),
  t('Testimonials'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('clone'),
  t('delete'),
  t('edit'),
  t('[clone_node]
[delete_node]
[edit_node] '),
  t('Country'),
  t('Industry'),
  t('Page'),
  t('sidebar Block'),
  t('Frontpage Block'),
  t('Read testimonials'),
  t('front ticker'),
);

robertom’s picture

I have the same problem.

I think that this is "introduced" with this commit:

6c1cbd0ac4c6edae29b90563e8270cdeff5496aa

in my case $this->value_options is empty and the foreach unset all my value

if I uncomment the unset, the filter works well.

I don't know why my $this->value_options is empty

cutmedia’s picture

Priority: Major » Normal

Have the same issue on 7.x-3.x-dev comment #4 from dereine doesnt work
Update. The views give the error when applying any taxonomy filter, as stated above. When filter is applied any View becomes unusable/editable.

giorgosk’s picture

Priority: Normal » Major

Does it deserve a priority: major ?
since there is no workaround
its probably going to affect a lot of people going to try the latest dev

giorgosk’s picture

Priority: Normal » Major

@robertom
can you try to elaborate a little on your fix ?
I could not apply your workaround

mandreato’s picture

+1

robertom’s picture

@robertom
can you try to elaborate a little on your fix ?
I could not apply your workaround

Hi GiorgosK, I have this error with 7.x-3.x

For 6.x-3.x the commit that introduce this validation behavior is:
600c7ff1acdc7cb456d69ae888eea1a4c9fe4fe8

you could try to open:

/sites/all/modules/views/handlers/views_handler_filter_in_operator.inc

and comment line n° 382 (add a // before: unset($this->value[$value]); )

now will vanish the purpose of patch #1205570: The IN operator is not validated, but is a quick workaround (at least in my case)

P.S. for 7.x-3.x the row to comment is n° 367

giorgosk’s picture

@robertom
I did just that and it does not work in my case (6.x)
but I thought I was not doing it right

spacereactor’s picture

StatusFileSize
new1.61 MB

#16 doesn't work for me in drupal 7. change unset($this->value[$value]); to

// unset($this->value[$value]);

Anyway I upload a old views, date at (2011-Jun-29) before the taxonomy filter bug is introduce. Replace the views should remove the problem til there is a fix.

aristeides’s picture

Title: No valid values found » No valid values found (6.x-3.x-dev & 7.x-3.x-dev)

I posted a few hours ago this issue http://drupal.org/node/1209192 and have the same problem on 7.x-3.x-dev
I localized the terms and upgraded views so I guess localization is of no importance since you guys have that issue too.

Marking the other post as duplicate and appending my issue here:

My vocabulary is set to "localize" (using i18n) and all the terms are translated.
On my view I created a "Content: Has taxonomy term" filter and set it to exposed.

When "selection type" is set to "autocomplete" no error appears.
When "selection type" is set to "autocomplete" (which is what I need to do) I get An illegal choice has been detected. Please contact the site administrator.
On the error log I see the message Illegal choice in tid element.
When saving the view(despite the errors) I get this extra info on the error log:
Notice: Undefined index: vid in views_handler_filter_term_node_tid->extra_options_form() (line 47 of /var/www/realty/sites/all/modules/contrib/views/modules/taxonomy/views_handler_filter_term_node_tid.inc).

Does anyone have any bright ideas?

P.S. Using the latest devs of Views, Core and everything else.

acbramley’s picture

I'm having this issue, I've removed all of the taxonomy filters from a view and I'm getting errors on other random views (e.g Calendar). This is very frustrating as it's even stopping me from saving the views.

giorgosk’s picture

Should we upgrade this to critical so the maintainers take a note
as it might affect lots of people downloading the dev version

aristeides’s picture

Priority: Major » Critical

Upgraded as suggested by GiorgosK.
it IS critical since taxonomy is one of the most used things in views.

robertom’s picture

@spacereactor and GiorgosK

I have searched 'No valid values found.' into views

cd sites/all/modules/views/
grep -Rn "No valid values found" ./

./handlers/views_handler_filter_in_operator.inc:372:        $errors[] = t('No valid values found.');

seems to me that this error is only rised by validate function inside
./handlers/views_handler_filter_in_operator.inc

this is the function introduced for fix #1205570: The IN operator is not validated.

You could try to comment at all this new function, or comment the line that populate $errors array (return a not empty $errors cause the "stop").

Obviously this isn't a fix.

dawehner’s picture

Priority: Critical » Major

I don't see why this is critical, it's just a message in the admin interface produced by views itself.

Can someone explain how to reproduce this problem?

giorgosk’s picture

@dereine
on any working view
try to add "taxonomy term id" filter (exposed or not exposed)

mariagwyn’s picture

StatusFileSize
new56.28 KB
new26.43 KB

This is at least major because

1. Many views with an exposed filter are no longer editable.
2. The view display seems to show repeats on the filter.

I say "many" because when I rebuilt a view from scratch, which includes an exposed filter on a term reference field (I am using 7.x), the view worked. However, on another view, an attempt to rebuild from scratch broke at adding the same type of term reference field. I am frankly not sure the difference. See #7 above for the process. I have included both the working and non-working views as attachements. The broken view does display, but it also shows multiple values, which it did not do before the upgrade.

mariagwyn’s picture

I took a closer look in my logs, and I have the following errors, which is different than simply "no valid values found":

PHP error:
Notice: Undefined index: vid in views_handler_filter_term_node_tid->extra_options_form() (line 47 of /local/drupal-7.2/sites/all/modules/views/modules/taxonomy/views_handler_filter_term_node_tid.inc).
Form error, in ajax:
Illegal choice in field_tax_news_tid element.

mikeker’s picture

I agree with Priority == Major mostly because I cannot save changes to a view (7.x-3.x) after adding a filter that triggers this issue. I haven't verified that in the 6.x branch.

A workaround I've found, at least for List:Integer filters, is to set a default value. But, I haven't done any testing outside of the very narrow constraints of my test case...

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new819 bytes

I agree this is really really annoying.

This is a quick fix to get it working again, with a todo.

giorgosk’s picture

Status: Needs review » Reviewed & tested by the community

@dereine
great works as expected
trivial fix so I mark reviewed and tested

mikeker’s picture

Status: Reviewed & tested by the community » Needs work

Thanks, dereine.

But, is there a 7.x-3.x solution? And wouldn't this be better placed in views_handler_filter_in_operator to cover all integer filters?

dawehner’s picture

Apply the patch to 7.x-3.x works as well. Not really hard.

Placing it in views_handler_filter_in_operator would basically revert the patch which was created for this, which doesn't make sense for me

SeeWatson’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

Applied the patch. While it fixed the validation error from popping up as it was, now I can't add a new display field to the view. I got the following error (with the tilda replacing my site root for safety):

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: ~/admin/structure/views/ajax/config-item/interns/page/field/field_user_fullname
StatusText: OK
ResponseText:
Fatal error: Call to a member function options_validate() on a non-object in ~/sites/all/modules/views/includes/admin.inc on line 4127

dawehner’s picture

Does this happens if you remove and readd the feld?

mariagwyn’s picture

I applied the patch in #29 to 7.x-3.x-dev, error gone. No problems so far and I have been playing with views all afternoon to be sure.

james.bowling’s picture

The patch didn't seem to fix it for me. 7.x-3.x-dev

dawehner’s picture

@james.bowling

On which filter does this error appear for you?
Please if you test a patch and it fails report what you did.

SeeWatson’s picture

I tested this again from a different box when I got home. I'm not getting that ajax error anymore.

However, I was getting the following notices up top upon initially opening the view again:
Notice: Undefined index: allowed_values_function in list_allowed_values() (line 233 of ~/modules/field/modules/list/list.module).
Notice: Undefined index: value in list_field_formatter_view() (line 452 of ~/modules/field/modules/list/list.module).
Notice: Undefined index: value in list_field_formatter_view() (line 457 of ~/modules/field/modules/list/list.module).
Notice: Undefined index: value in list_field_formatter_view() (line 452 of ~/modules/field/modules/list/list.module).
Notice: Undefined index: value in list_field_formatter_view() (line 457 of ~/modules/field/modules/list/list.module).

I assume they're related, but I'm not sure. I removed all the display fields, added them back again, and now I'm not getting those notices either. So, for the moment, that patch seems like it'll work for me.

(Oh, I'm 7.x.3.x, btw)

craspouille’s picture

Hi Dereine,
is the problem supposed to be fixed in the latest version (july6th)?
Because it still dos not work :-(

giorgosk’s picture

SIDENOTE for applying patches (I was asked on email)
--------------------------------------------------------------------------
you have to learn to read and apply patches
you can read more here http://drupal.org/node/707484

but this one is really easy to apply by hand
http://drupal.org/files/issues/1207680-get_value_options-fix.patch

basically it says open
/views/modules/taxonomy/views_handler_filter_term_node_tid.inc
and insert lines that start with + signs
4 lines after 177 line

zabelc’s picture

I'm afraid the patch doesn't completely fix the issue. I applied the patch, and then cleared my cache several times, and I'm still getting the error repeated at least once on *most* of my views. I'm also getting "The operator is invalid" repeated on a few views.

FWIW, the only views that don't seem to have errors are the ones that have no filter criteria or context filters. I've tried removing these filters, but that doesn't seem to affect the errors.

I hate to say it, but this is at least a major priority as it's basically stopped my work pretty completely (even if testers can't see the errors on the views, I can't modify them in the admin screens). I would expect that others are in the same boat.

dawehner’s picture

@craspouille
No the patch isn't applied yet.

@zabelc
Can you please please please describe which filter you have added? It's really important to know this.

robertom’s picture

@zabelc and other people that have applied the patch without results

go to admin/structure/views/settings and check "Always show the master display", after that go to the master display of the "problematic" views and see if there is a unwanted "unknown" filter, if there is remove it.

zabelc’s picture

@dereine, I'm afraid that I've got lots of filters on my views (and displays), so it's hard to narrow down which filter might be the cause. I've even tried removing all filters from all displays, but the errors remain. I can't save my changes because of the errors, so I'm not sure if the changes are having any effect (it's a bit of a Catch 22)

@robertom, I've been showing the master views and I've tried removing filters from it, but as I say, I'm not sure if that has any effect.

FWIW, when I get errors in one display, I seem to get the same errors (or at least the same number of errors) on every display (e.g. if there are two errors shown on the master display, there are two errors shown on every other display).

Below is my list of views & filters (I didn't break it down by display but I could).

Calendar View:
Filter Criteria:
- Content: Published (Yes)
- Content: Type (= Event)
Contextual Filters:
- Date: Date (node) (Content: Date (field_event_date))

User View:
Filter Criteria:
- User: Roles (= Member)
- User: Full Name (exposed)
- Field: Taxonomy Term Ref Field (exposed) | Settings
- User: Text Field (not empty)
- User: Name (exposed)
Contextual Filters:
- User: Roles

Recent Content View:
Filter Criteria:
- Content: Published (Yes)
- Field: Taxonomy Term Ref (exposed) | Settings
- Content: Type (exposed)
Contextual Filters:
- Content Type Machine Name
- Content: Has taxonomy term ID (with depth)
- Content: Has taxonomy term ID

Gear View:
(This view also has "The operator is invalud [sic]" messages.)
Filter Criteria:
- Content: Type (in Club Gear, ...)
- Content: Loaned to (not empty)
- Content: Requesting Member (empty)

vthirteen’s picture

applied patch to 7.x-3.x-dev (EDIT: not yesterday's dev though, the previous one), error persists when adding a Taxonomy:field filter, set as a dropdown list with hierarchy. filter value is "empty" or "not empty", indifferently.
the same happens with "Content: Has taxonomy term" filter.

    * The operator is invalud
    * No valid values found.

view cannot be saved unless the taxonomy filter is removed.

EndEd’s picture

subscribe (The patch works for me here, last dev)

khanshakeeb’s picture

I have fixed this issue in views_handler_filter_in_operator.inc on line no. 378
I have change // if condition

if (is_array($this->value) ){
// Remove every element which is not known.
$watch_dog_count = 'Array is there = '. serialize($this->value);
watchdog('views3 dev',t($watch_dog_count));
foreach ($this->value as $value) {
if (!isset($this->value_options[$value])) {
//unset($this->value[$value]);
}

}
// Choose different kind of ouput for 0, a single and multiple values.
if (count($this->value) == 0) {
$errors[] = t('No valid values found.');
}
}

To:
this by removing is_array() function and it works fine for me
if ($this->value) {
// Remove every element which is not known.
$watch_dog_count = 'Array is there = '. serialize($this->value);
watchdog('views3 dev',t($watch_dog_count));
foreach ($this->value as $value) {
if (!isset($this->value_options[$value])) {
//unset($this->value[$value]);
}

}
// Choose different kind of ouput for 0, a single and multiple values.
if (count($this->value) == 0) {
$errors[] = t('No valid values found.');
}
}

craspouille’s picture

Hi!
Can you tell me where is views_handler_filter_in_operator.inc ?
are you using 6.x-3.x-dev or 7.x-3.x-dev ?

thanks!

cyberwolf’s picture

Subscribing.

mariagwyn’s picture

StatusFileSize
new76.45 KB

I am pretty sure I did not accidentally update views dev version, so the patch should still hold. And, as it turns out, it has not fixed all my views. Attached is a view that when opened displays two lines "No valid values found." When I eliminate the exposed filter Content: Status (referring to a checkbox field) and Content: Track (referring to a tax_ref field), I can get rid of ONE error line. No matter how many filters, fields and relationships I eliminate, I cannot get rid of the second error line.

Hope this helps in drilling down on the problem.

dawehner’s picture

Commited this patch for d6 and d7, so at least quite some of the existing problems get fixed.

@all
Please describe which filter causes the view not to save.

mariagwyn’s picture

@dereine:

1. Is this committed to the July 6 dev (only ask b/c today is july 7, not sure when you committed).
2. As far as I can tell, the exposed filter which most consistently causes the problem is on a TERM//TAX REFERENCE field.

However, I am not sure of this. In the view atttached to #51, I tried deleting two of the displays. The error went down to one line as opposed to two, but deleting the remaining exposed filter on the single page view left did not fix the problem. I am finding it very difficult to drill-down on the actual offending filter.

dawehner’s picture

It will be part of the dev release of tomorrow.

Thanks for telling the filter.

anou’s picture

Hello,
I have views 7.x-3.x-dev installed. I've just upgrade to the last version. After that I still had the problem of multiple "No valid values" displaying in error type message and I wasn't able to save any of my changes...

For your information my view, beside "publish (or not)" and "content type" filters, all display pages (6) have the taxonomy term filter.

So I applied #29 dereine's patch and the error has gone and I finally could save my changes.

Thanks

NaX’s picture

I just ran into this same problem using the latest 6.x-3.x-dev with an exposed CCK node reference field.

The reason this seem to be happening is because I did not select a default value. When I select a default value the error goes away, but I want the default value to be <Any>.

I changed the validate() function in views_handler_filter_in_operator.inc to check $this->value_options as well. I don't know if this is correct but it seems to work.

      // Choose different kind of ouput for 0, a single and multiple values.
      if (count($this->value) == 0 && count($this->value_options) == 0) {
        $errors[] = t('No valid values found.');
      }

So I wonder how do you setup a view with this kind of validation when you have no content to populate the filter, EG: you imported your field and views definitions. In my opinion the view should still work regardless if their are any nodes or terms to populate a filter. If their are no valid options the field should just render empty or disappear. Just my 2 cents.

Hope it helps.

Anonymous’s picture

I did the hack #56 over 6.x-3.x-dev of today and the issue has gone away

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new1.94 KB

Okay here is a patch which is basically based on the idea of #56

It doesn't run validation if there are not options availible at all.

It's for the dev version so please test it.

Anonymous’s picture

patch applies successfully and solve the issue. Tested against 6.x-3.x-dev

spacereactor’s picture

using 7.x-3.x-dev 2011-Jul-09 working without the patch.

These are the step i need to take.
1.) First make should the master and page have the same setting.
At FILTER CRITERIA
Change For => This page (Orride) to For => All Displays
2.) Change the setting for expose taxonomy filter under FILTER CRITERIA
Click on the expose taxonomy filter At the option area choose "Select all" in the listing and enable "Limit list to selected items"
3.) Apply the Save

If it still doesn't fix your problem, Test out patch #58.

mariagwyn’s picture

Hm. I applied patch in #58 to 7.x-3.x (most recent), it failed to apply. Thinking that perhaps it was meant for 6.x, I re-uploaded 7.x, and applied the patch in #29. That failed as well.

Perhaps I misunderstood what the most recent patch is for? Or the most recent dev doesn't like either patch?

I will grab the dev of tomorrow (well, later today) and see how it does.

dawehner’s picture

The patches are ALWAYS against the git version of views.
The git version might be the same as the DEV version, but this is not true for most of the time, because the dev version is just built every few hours.

@spacereactor
Can you please try out the patch?

spacereactor’s picture

#62 i try to run the patch but i think /modules/user.views.inc already have

       'table' => 'node_revision',
       'field' => 'uid',
     ),
    'file' => array(
      'table' => 'file',
      'field' => 'uid',
    ),
   );
 
   // uid

So i manually patch /handlers/views_handler_filter_in_operator.inc & /modules/taxonomy/views_handler_filter_term_node_tid.inc
and after clean my cache. I getting alot of error now mostly No valid values found. & The value array( something => 'something', ) is not an array for in
Example of error is
No valid values found.
The value array( 'support_ticket' => 'support_ticket', ) is not an array for in
The value array( 'support_ticket' => 'support_ticket', ) is not an array for in
No valid values found.
No valid values found.
The value array( 'support_ticket' => 'support_ticket', ) is not an array for in
No valid values found.
No valid values found.
The value array( 'support_ticket' => 'support_ticket', ) is not an array for in
The value array( 1 => '1', ) is not an array for in

P.S i using manually patch on 7.x-3.x-dev 2011-Jul-09

dawehner’s picture

StatusFileSize
new1.58 KB

Oh you are true, here is a patch without this change(was another issue)

mariagwyn’s picture

@dereine:

1. Pulled the git version 7.x-3.x (as of 5 minutes ago)
2. applied patch in #64, clean.
3. Got these errors on the 'member-schedule' view which I attached above:

The value array( 'session_slots' => 'session_slots', ) is not an array for in
The value array( 'session_slots' => 'session_slots', ) is not an array for in
The value array( 'session_slots' => 'session_slots', ) is not an array for in
jarush’s picture

@mariagwyn
Same as mine...

ShadowMonster’s picture

subscribe

demonrage’s picture

the patches not working for me, instead it givces another error:

The value array( 'ipaper' => 'ipaper', ) is not an array for in

designar’s picture

I think we need a solution for the filter_in_operator, taxonomy problems seems to be fixed.

cartagena’s picture

Thanks for all the work on this...I'm having the same issue.

dawehner’s picture

@demonrage

Which one?

Can't you all update to the latest dev, test, apply the patch and test?

mariagwyn’s picture

Dereine, I know you are working hard on this, so please don't consider this pestering:

I am getting some version of "The value array( ... ) is not an array for in" in ALL of my views, even in the most simple of views (a few fields based on a type). The views themselves work but I am unable to save any views at all. I have temporarily gone back to the dev without patch so I can modify a few views.

demonrage’s picture

this is really annoying i can't resume my work, we need a patch or a fix for this big error!!!

robertom’s picture

Hi dereine, I don't have tested the patch, but it seems a bit strange to me...

in this snippet:

-    if (is_array($this->value)) {
+    // Don't validate if there are none value options provided, for example for special handlers.
+    if (is_array($this->value) && !isset($this->value_options)) {

really you intend !isset($this->value_options) ?

This probably solve my problem on #11, because my $this->value_options is an "isset" empty array, but I think this isn't what you want

james.bowling’s picture

Updated to latest 7.x dev as of a few minutes ago, applied the patch and I am receiving the same type of return in #65 and #68.

bojanz’s picture

Ran into this myself.
Downloaded the latest -dev, (VBO default content) view says "No valid values found", Save doesn't work.

dereine's patch fixed it for me.

cartagena’s picture

I guess I should have been more specific. I did update, applied test and am getting the same message as #65. Thanks.

damien tournoud’s picture

StatusFileSize
new831 bytes

Actually, I think that the problem most people are bumping into is that optional exposed filters fail validation if no default value is provided. This is just wrong.

Here is a patch adding this case.

damien tournoud’s picture

StatusFileSize
new1.75 KB

Funny, I mixed up Git commands.

radiomurf’s picture

I was previously able to reproduce the original errors using the default calendar module view. I was unable to save edits made to two of the displays provided.

After patching the July 8th 7.x dev (using dereine's patch in #64), the original "No values found." errors are gone, and one of the displays has corrected. The other display now generates "The value array( 'event' => 'event', ) is not an array for in" when applying a Content: Type filter (filtering for content type 'event'). This error also prevents the view from being saved (as with the previous error).

As an aside I experienced these errors (both original and new) WITHOUT having any taxonomy filters in the effected view (or it's various displays).

dawehner’s picture

Status: Needs review » Fixed

Commited to 6.x-3.x and 7.x-3.x

demonrage’s picture

i applied the patch in #79, nothing happened, same error (No valid values found.)

cartagena’s picture

Is this correct for line 25: class views_handler_filter_term_node_tid extends views_handler_filter_many_to_on
or should it be many_to_one? Maybe it doesn't matter, I'm not a programmer but I do notice typos. (I'm referring to 1207680.patch)
There is also one in line 6 --The operator is invalud
thanks

zabelc’s picture

I just applied deriene's #64 patch *may* remove the "No valid values" error (though I've seen a couple of them crop up). BUT, like others I'm now seeing the errors below (with notes about the state views' filters)

  • The value array( 'event' => 'event', ) is not an array for in [This is a Content_Type filter requiring that the content type be event]
  • The value array( 'club_gear' => 'club_gear', 'club_media' => 'club_media', ) is not an array for in [This is a Content_Type filter requiring that the content type be either club_gear, or club_media]
  • The value array( 'city_location' => 'city_location', 'crag' => 'crag', ) is not an array for in [This is a Content_Type filter requiring that the content type be either city_location, or crag]

Are we tracking this new error as a separate bug?

dawehner’s picture

@zabelc
Please update to the latest dev and see whether it's fixed there for you?

@ cartagena
The patch file just truncates the output.

demonrage’s picture

why this issue marked as fixed, i didn't see any patch that really fix this issue ??

mariagwyn’s picture

I uploaded the most recent git version (dev version is a few days old), seems that problem is solved. Will get back if it is not.

demonrage’s picture

i downloaded the two files in the last commit for views 3.x dev, uploaded them and still nothing changes, same error same manner
:(

acbramley’s picture

Are people clearing their caches before re-testing?

demonrage’s picture

i have cleared both db cache (cache_views) and browser cache.

clashar’s picture

I tested with today 13 july dev. release, seems it was fixed.

kthull’s picture

Pulled latest 7.x.-3.x branch from git and it's working for me too. Many thanks!

zabelc’s picture

I'm happy to report that everything appears to be working well with the 7/13 build of 7.x-3.x-dev!

Many thanks dereine et. al for ironing out such a difficult little bug.

cartagena’s picture

It's all working for me, too. Thank you all very much!

damien tournoud’s picture

@demonrage: could you please upload the export of a view that causes you trouble? Most likely one of your filter is actually invalid.

jarush’s picture

Thank you so much.
It works fine now when I updated it to latest 7.x.-3.x(7.13)

Thanks!

jarush’s picture

oh no...
In my calendar view. the "no valid values found" error occur..
I'm using the 2-dev of calendar..

No valid values found.
No valid values found.
No valid values found.
Unable to preview due to validation errors.
cartagena’s picture

I also have calendar module enabled and I updated yesterday to the latest dev version of both calendar and views. I just checked and I didn't get the "No valid values found error" but I got a calendar invalid style plugin error that I'll post where it belongs. So I went back to the previous calendar version I had installed (jul 2 dev version) and it is now fine, I didn't get any errors. I made a change to the view and all saved fine.

james.bowling’s picture

I am still getting the error. This is ridiculous, someone must have it out for me! :) I have updated to the latest dev and I have cleared and cleared caches...same thing over and over again.

james.bowling’s picture

StatusFileSize
new34 KB

See attached.

james.bowling’s picture

Ok, the above posted errors in #100 were resolved. The wrong branch of Calendar suddenly found its way in. Although, I am still having the issues with the View module as stated above.

james.bowling’s picture

So it seems that it has something to do with my calendar view. The other views seem to be fine. The odd thing is I never changed anything only upgraded Views, Calendar, and Date modules. Can someone point me in the right direction to get this resolved please?

james.bowling’s picture

Ok, I am not 100% sure what I did but the error has gone away and I am able to edit the view now. Now I get a new error from time to time regarding field_ui but will take that up elsewhere. Thanks guys!

majdi’s picture

This error happen when one of your display has filter with no value

Anonymous’s picture

the only chance to save a views is to delete those filter, not a good workaround at all.

bojanz’s picture

A fix for this was committed to 7.x-3.x. If there's still a problem when testing with Views 7.x-3.x-dev, open a new issue with an exported view attached.
Just dropping by to say "but it fails for me" without providing the version tested or the exported view is fine if you're bored, but nobody can help you that way.

Anonymous’s picture

I'm referring to 6.x-3.x-dev, how can I export the views if I can't save it because the error?

If I use Views 6.x-3.x-dev (2011-Jul-09) I got "No valid values found"
If I use Views 6.x-3.x-dev (2011-Jul-13) I got "Call to a member function override_option() on a non-object" as reported at http://drupal.org/node/1217718

Thanks for your work

bojanz’s picture

Then debug the new error in the issue you opened. You're not even getting the old error.

jarush’s picture

The "No valid values found" still there(just in the calendar view)...
I'm using the latest dev views and the latest dev calendar(7.x-2.x-dev).
I cant save / clone the calendar view..
Any suggestions?

dawehner’s picture

Open a new issue, and try to report it as usefull as possible.

tommychris’s picture

(Try to) Use calendar 7.x-3.x-dev.

tim.plunkett’s picture

acbramley’s picture

I'm still getting these errors! Running the latest dev version. My view has 3 block displays, all pulling through a different field with a contextual filter of content: nid.

The filter is a simple Field: Not empty, and Content: Published.

acbramley’s picture

Probably worth noting that even after removing the filters I can't save the view, although the errors go from:

No valid values found.
The operator is invalid.
No valid values found.
The operator is invalid.
No valid values found.

to

No valid values found.

I need to be using the latest dev version for another fix but this is a show stopper for me.

dawehner’s picture

This issue is so full already, please create a new issue WITH informations.

waltf’s picture

Problem still occurs with 7.x-3.x-dev, using 7.x-3.0-rc1 made the error go away.

dawehner’s picture

@waltf
Please create a sane new issue, with good informations.

vinoth.3v’s picture

I got the error "No valid values found" in my "custom" views if any of the filter has no value selected.

masterperoo’s picture

I have spent over 40 minutes trying different options/workarounds
UI wouldn't let me to even delete/save a view.
it turned out that Master display had a broken filter handler. (why or how - I don't know...- used to be valid)

my advice: check filters in all displays

acbramley’s picture

@masterperoo that also happened to me!

dawehner’s picture


@masterperoo that also happened to me!

Wow, that's really helpful...

If you still have problems, please create a new issue with a useful bug report, without it noone can help you,
and that's not what you want :)

In general therefore please read http://drupal.org/node/571990 once and try to follow the steps explained there.
That's one big thing you can do from your site to fix the bug.

acbramley’s picture

@dereine I was simply commenting how the master display was what broke mine and agreeing that people should check filters in all displays....

dawehner’s picture

@ZOmbienaute
My answer was just a general answer, because there are still quite some people which comment here.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

estnyboer’s picture

I see that this is closed but I have another fix. I disabled "views bulk operations" and it solved the problem.