Hi@all,

there is a little problem that I found in a view that uses aggrigation. When I add a field to the sort or filter criteria and set the aggrigation type eg. to count i get the "Broken/missing handler" error for this field.

I hope someone could take a look at this.

Thanks!

$view = new view;
$view->name = 'groupview';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'groupView';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$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['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['query']['options']['query_comment'] = FALSE;
$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_group' => 'field_group',
);
$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' => '',
    'separator' => '',
  ),
  'field_group' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
  ),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
/* Field: Content: Group */
$handler->display->display_options['fields']['field_group']['id'] = 'field_group';
$handler->display->display_options['fields']['field_group']['table'] = 'field_data_field_group';
$handler->display->display_options['fields']['field_group']['field'] = 'field_group';
$handler->display->display_options['fields']['field_group']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_group']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_group']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_group']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_group']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_group']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_group']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_group']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_group']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_group']['field_api_classes'] = 0;
/* Field: COUNT(Content: Nid) */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
$handler->display->display_options['fields']['nid']['group_type'] = 'count';
$handler->display->display_options['fields']['nid']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['nid']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nid']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nid']['alter']['external'] = 0;
$handler->display->display_options['fields']['nid']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['nid']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nid']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nid']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nid']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nid']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nid']['alter']['html'] = 0;
$handler->display->display_options['fields']['nid']['element_label_colon'] = 1;
$handler->display->display_options['fields']['nid']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nid']['hide_empty'] = 0;
$handler->display->display_options['fields']['nid']['empty_zero'] = 0;
$handler->display->display_options['fields']['nid']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['nid']['format_plural'] = 0;
/* Sort criterion: Broken/missing handler */
$handler->display->display_options['sorts']['nid']['id'] = 'nid';
$handler->display->display_options['sorts']['nid']['table'] = 'node';
$handler->display->display_options['sorts']['nid']['field'] = 'nid';
$handler->display->display_options['sorts']['nid']['group_type'] = 'count';
/* 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'] = 0;
$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(
  'viewsgroupingtest' => 'viewsgroupingtest',
);

Comments

braindrift’s picture

any idea?

dawehner’s picture

Status: Active » Fixed

Just commited a fix, can you please wait for the next dev version(tomorrow and clear all caches twice, and run update.php)

This would need a registry rebuild.

acbramley’s picture

sub

rafamatito’s picture

sub

Status: Fixed » Closed (fixed)

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

anonym-developer’s picture

sub

acbramley’s picture

Can confirm that this was fixed.

prodigeek’s picture

Status: Closed (fixed) » Active

This is not fixed. I have the most up to date dev version and I get the broken arg message when I try to sort by NID with count. If I don't use count aggregation, then every node appears as one option.

Thank you very much for your help.

anonym-developer’s picture

I had the same problem, that I created the view again manually and it worked for me.

Letharion’s picture

Status: Active » Fixed

Given that this has been confimed fixed, I'm resetting the status as such.
@prodigeek, if you do still experience this, please open a different issue, as you're problem is likely caused by something else.

Status: Fixed » Closed (fixed)

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

prodigeek’s picture

Status: Closed (fixed) » Active

This bug has come back in the two most recent dev versions of Views. Several views of mine broke and I tried rebuilding them and still found the same error.

daroz’s picture

Confirming this regression as well in 7.x-3.0-rc1. Went from early-Sept -dev to -rc1 and got several broken views.

daroz’s picture

Quick update - updated to -dev Nov 12 and its working correctly again... /boggle

mstrelan’s picture

This is definitely broken in -dev Nov 14...

dawehner’s picture

Can you tell us a bit more about the error message you get? Maybe also the configured view would be cool as well.
Take sure that you have at least RC3 so the usual problems are fixed already.

There might be some registry issues here, so take sure to run update.php clear cache etc some time :)

justinph’s picture

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

This is working for me in 7.x-3.0 (stable). Hooray!

dawehner’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Status: Active » Fixed

yeah

Status: Fixed » Closed (fixed)

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