Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using the calendar module to create an events calendar through Views and I get the above error. While it is shown as an error related to cck, I think the problem is somewhere in Calendar. The number of errors that appear directly corresponds to the number of content items displayed in the calendar view. The view export is included below.
$view = new stdClass();
$view->name = 'stage_1';
$view->description = 'Calendar view of any date field';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Calendar';
$view->page_header = '';
$view->page_header_format = '2';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'calendar';
$view->url = 'calendar/stage_1';
$view->use_pager = FALSE;
$view->nodes_per_page = '99';
$view->block = TRUE;
$view->block_title = '';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'calendar';
$view->nodes_per_block = '99';
$view->block_more = TRUE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'changed',
'sortorder' => 'ASC',
'options' => 'normal',
),
);
$view->argument = array (
array (
'type' => 'calendar_year',
'argdefault' => '2',
'title' => 'Year',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_month',
'argdefault' => '2',
'title' => 'Month',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_day',
'argdefault' => '2',
'title' => 'Day',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title:',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_description',
'field' => 'field_description_value',
'label' => '',
'handler' => 'content_views_field_handler_ungroup',
'options' => 'default',
),
array (
'tablename' => 'event',
'field' => 'event_start',
'label' => '',
'handler' => 'views_handler_field_date_small',
),
array (
'tablename' => 'event',
'field' => 'event_end',
'label' => '',
'handler' => 'views_handler_field_date_small',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'event',
),
),
array (
'tablename' => 'term_node',
'field' => 'tid',
'operator' => 'AND',
'options' => '',
'value' => array (
0 => '7',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_description, event, term_node);
$views[$view->name] = $view;
Comments
Comment #1
gmak CreditAttribution: gmak commentedCCK was updated today and whatever was causing the problem has gone away. So, it wasn't calendar it was CCK.
Marking this closed.