Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 18:43 UTC
Updated:
10 Sep 2009 at 18:51 UTC
Hi,
First of all I'm new to Views, so I may be missing something obvious.
I'm upgrading a site from 5 to 6 and when trying to import a view I keep getting this error:
* Filter handler node_data_field_roastlog_products.field_roastlog_products_value_default is not available.
* Filter handler . is not available.
* Filter handler node_data_field_roastlog_products.field_roastlog_products_value_default is not available.
* Filter handler . is not available.
* Unable to import view.
Here's the view code
$view = new stdClass();
$view->name = 'roast_log';
$view->description = 'Roast log';
$view->access = array (
0 => '11',
1 => '7',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Roast log';
$view->page_header = '';
$view->page_header_format = '3';
$view->page_footer = '';
$view->page_footer_format = '3';
$view->page_empty = '';
$view->page_empty_format = '3';
$view->page_type = 'table';
$view->url = 'roast/nest';
$view->use_pager = TRUE;
$view->nodes_per_page = '100';
$view->sort = array (
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Roast #',
'handler' => 'views_handler_field_nodelink',
'sortable' => '1',
'defaultsort' => 'DESC',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_roastlog_products',
'field' => 'field_roastlog_products_value',
'label' => 'Roast type',
'handler' => 'content_views_field_handler_group',
'sortable' => '1',
'options' => 'default',
),
array (
'tablename' => 'node',
'field' => 'created',
'label' => 'Date',
'handler' => 'views_handler_field_date_custom',
'options' => 'M j, Y, H:i',
),
array (
'tablename' => 'node_data_field_roastlog_worker',
'field' => 'field_roastlog_worker_uid',
'label' => 'Worker',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
array (
'tablename' => 'node_data_field_description',
'field' => 'field_description_value',
'label' => 'Notes',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'content_roast_log',
),
),
array (
'tablename' => 'node',
'field' => 'title',
'operator' => '=',
'options' => '',
'value' => '',
),
array (
'tablename' => 'node_data_field_roastlog_products',
'field' => 'field_roastlog_products_value_default',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'Bolivia 442',
1 => 'Bolivia 470',
2 => 'Colombia 448',
3 => 'Colombia 470',
),
),
);
$view->exposed_filter = array (
array (
'tablename' => 'node_data_field_roastlog_products',
'field' => 'field_roastlog_products_value_default',
'label' => 'Filter by roast type',
'optional' => '1',
'is_default' => '0',
'operator' => '1',
'single' => '1',
),
);
$view->requires = array(node, node_data_field_roastlog_products, node_data_field_roastlog_worker, node_data_field_description);
$views[$view->name] = $view;
Just looking for a point in the right direction.
Thanks!
Comments
Comment #1
cobbles commentedComment #2
merlinofchaos commentedUpdates from 1.x to 2.x are not perfect. In this case, CCK Fields are probably named differently. You'll just have to reconstruct what was there.