After updating to 7.x-3.0-beta3, hook_views_default_views() does not work anymore like it did before:

I am no longer able to customize default views provided by my module. The config form can be accessed, but trying to change a value results in

Ein AJAX-HTTP-Fehler ist aufgetreten
HTTP-Rückgabe-Code: 500
Im Folgenden finden Sie Debugging-Informationen.
Pfad: http://localhost:3141/d7test4/admin/structure/views/ajax/display/bz_categories/default/pager
Statustext: Service unavailable (with message)
Antworttext: PDOException:  in ctools_object_cache_set() (Zeile 75 von C:\XAMPP\xampp\htdocs\d7test4\sites\all\modules\ctools\includes\object-cache.inc).

The views was exported using alpha1.
But when I import the view anew ( to a new name, of course) I am able to edit the properties again (but of course, I want to make use of default views).

Is this going to be an issues with views or with ctools?

CommentFileSizeAuthor
#13 slidefront.views_default.inc25.9 KB-osiris-

Comments

merlinofchaos’s picture

That's highly unusual. The error message says PDOException, but there's no actual exception listed? I don't even know what that error condition fully means.

It suggests that ctools_object_cache_set() query failed, meaning it was somehow unable to write the Views' temporary cache object used when editing. But the error message isn't telling us why.

Can you attach an export of the view this is failing on? Maybe we can reproduce this on another system.

-osiris-’s picture

It is actually two different views, one is based on an field of type image, the other one purely on taxonomy.
Here's my hook_views_default_views():

function slidefront_views_default_views() {
  /* Slidefront view */


  $view = new view;
  $view->name = 'bz_slidefront';
  $view->description = 'integrated Slidefront view for Brave Zeenat Theme';
  $view->tag = 'brave_zeenat';
  $view->base_table = 'node';
  $view->human_name = 'Brave Zeenat Slidefront view';
  $view->core = 7;
  $view->api_version = '3.0-alpha1';
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Standards */
  $handler = $view->new_display('default', 'Standards', 'default');
  $handler->display->display_options['css_class'] = 'brave-zeenat-slidefront-view';
  $handler->display->display_options['use_more_text'] = 'Weiter';
  $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['exposed_form']['type'] = 'basic';
  $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Zurücksetzen';
  $handler->display->display_options['pager']['type'] = 'some';
  $handler->display->display_options['pager']['options']['items_per_page'] = '5';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['style_options']['row_class'] = 'brave-zeenat-slidefront-row';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Feld: Slidefront image */
  $handler->display->display_options['fields']['entity_id']['id'] = 'entity_id';
  $handler->display->display_options['fields']['entity_id']['table'] = 'field_data_field_bz_postimage';
  $handler->display->display_options['fields']['entity_id']['field'] = 'field_bz_postimage';
  $handler->display->display_options['fields']['entity_id']['ui_name'] = 'Slidefront image';
  $handler->display->display_options['fields']['entity_id']['label'] = '';
  $handler->display->display_options['fields']['entity_id']['alter']['alter_text'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['make_link'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['absolute'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['trim'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['word_boundary'] = 1;
  $handler->display->display_options['fields']['entity_id']['alter']['ellipsis'] = 1;
  $handler->display->display_options['fields']['entity_id']['alter']['strip_tags'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['html'] = 0;
  $handler->display->display_options['fields']['entity_id']['element_label_colon'] = 0;
  $handler->display->display_options['fields']['entity_id']['element_default_classes'] = 1;
  $handler->display->display_options['fields']['entity_id']['hide_empty'] = 0;
  $handler->display->display_options['fields']['entity_id']['empty_zero'] = 0;
  $handler->display->display_options['fields']['entity_id']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['entity_id']['settings'] = array(
    'image_style' => 'brave_zeenat_slidefront',
    'image_link' => '',
  );
  /* Feld: 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']['ui_name'] = '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']['absolute'] = 0;
  $handler->display->display_options['fields']['title']['alter']['trim'] = 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']['html'] = 0;
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_label_colon'] = 1;
  $handler->display->display_options['fields']['title']['element_default_classes'] = 1;
  $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'] = 1;
  /* Feld: Body Teaser */
  $handler->display->display_options['fields']['entity_id_1']['id'] = 'entity_id_1';
  $handler->display->display_options['fields']['entity_id_1']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['entity_id_1']['field'] = 'body';
  $handler->display->display_options['fields']['entity_id_1']['ui_name'] = 'Body Teaser';
  $handler->display->display_options['fields']['entity_id_1']['label'] = '';
  $handler->display->display_options['fields']['entity_id_1']['alter']['alter_text'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['make_link'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['absolute'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['trim'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['word_boundary'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['alter']['ellipsis'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['alter']['strip_tags'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['html'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['element_class'] = 'brave-zeenat-slidefront-body-teaser';
  $handler->display->display_options['fields']['entity_id_1']['element_label_colon'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['element_default_classes'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['hide_empty'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['empty_zero'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['entity_id_1']['settings'] = array(
    'trim_length' => '600',
  );
  /* Sort criterion: Post date */
  $handler->display->display_options['sorts']['created']['id'] = 'created';
  $handler->display->display_options['sorts']['created']['table'] = 'node';
  $handler->display->display_options['sorts']['created']['field'] = 'created';
  $handler->display->display_options['sorts']['created']['ui_name'] = 'Post date';
  $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    17 => '17',
    40 => '40',
    45 => '45',
    16 => '16',
    55 => '55',
    9 => '9',
    5 => '5',
    23 => '23',
    7 => '7',
    31 => '31',
    11 => '11',
    49 => '49',
    53 => '53',
    13 => '13',
    21 => '21',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';

  /* Display: Slidefront Block */
  $handler = $view->new_display('page', 'Slidefront Block', 'slidefront_page');
  $handler->display->display_options['display_description'] = 'This style is embedded in Brave Zeenat Slidefront block.';
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Feld: Slidefront image */
  $handler->display->display_options['fields']['entity_id']['id'] = 'entity_id';
  $handler->display->display_options['fields']['entity_id']['table'] = 'field_data_field_bz_postimage';
  $handler->display->display_options['fields']['entity_id']['field'] = 'field_bz_postimage';
  $handler->display->display_options['fields']['entity_id']['ui_name'] = 'Slidefront image';
  $handler->display->display_options['fields']['entity_id']['label'] = '';
  $handler->display->display_options['fields']['entity_id']['alter']['alter_text'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['make_link'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['absolute'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['trim'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['word_boundary'] = 1;
  $handler->display->display_options['fields']['entity_id']['alter']['ellipsis'] = 1;
  $handler->display->display_options['fields']['entity_id']['alter']['strip_tags'] = 0;
  $handler->display->display_options['fields']['entity_id']['alter']['html'] = 0;
  $handler->display->display_options['fields']['entity_id']['element_label_colon'] = 0;
  $handler->display->display_options['fields']['entity_id']['element_default_classes'] = 1;
  $handler->display->display_options['fields']['entity_id']['hide_empty'] = 0;
  $handler->display->display_options['fields']['entity_id']['empty_zero'] = 0;
  $handler->display->display_options['fields']['entity_id']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['entity_id']['settings'] = array(
    'image_style' => 'brave_zeenat_slidefront',
    'image_link' => '',
  );
  /* Feld: 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']['ui_name'] = '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']['absolute'] = 0;
  $handler->display->display_options['fields']['title']['alter']['trim'] = 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']['html'] = 0;
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_label_colon'] = 1;
  $handler->display->display_options['fields']['title']['element_default_classes'] = 1;
  $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'] = 1;
  /* Feld: Body Teaser */
  $handler->display->display_options['fields']['entity_id_1']['id'] = 'entity_id_1';
  $handler->display->display_options['fields']['entity_id_1']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['entity_id_1']['field'] = 'body';
  $handler->display->display_options['fields']['entity_id_1']['ui_name'] = 'Body Teaser';
  $handler->display->display_options['fields']['entity_id_1']['label'] = '';
  $handler->display->display_options['fields']['entity_id_1']['alter']['alter_text'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['make_link'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['absolute'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['trim'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['word_boundary'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['alter']['ellipsis'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['alter']['strip_tags'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['alter']['html'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['element_class'] = 'brave-zeenat-slidefront-body-teaser';
  $handler->display->display_options['fields']['entity_id_1']['element_label_colon'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['element_default_classes'] = 1;
  $handler->display->display_options['fields']['entity_id_1']['hide_empty'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['empty_zero'] = 0;
  $handler->display->display_options['fields']['entity_id_1']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['entity_id_1']['settings'] = array(
    'trim_length' => '600',
  );
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    8 => '8',
    6 => '6',
    5 => '5',
    11 => '11',
    43 => '43',
    2 => '2',
    21 => '21',
    46 => '46',
    22 => '22',
    58 => '58',
    60 => '60',
    32 => '32',
    39 => '39',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';
  $handler->display->display_options['path'] = 'test_view';

  /* Display: Logic? */
  $handler = $view->new_display('block', 'Logic?', 'block_1');
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    17 => '17',
    42 => '42',
    20 => '20',
    40 => '40',
    54 => '54',
    18 => '18',
    52 => '52',
    30 => '30',
    24 => '24',
    28 => '28',
    38 => '38',
    56 => '56',
    36 => '36',
    29 => '29',
    45 => '45',
    48 => '48',
    47 => '47',
    15 => '15',
    16 => '16',
    55 => '55',
    9 => '9',
    10 => '10',
    59 => '59',
    41 => '41',
    35 => '35',
    3 => '3',
    4 => '4',
    12 => '12',
    8 => '8',
    6 => '6',
    14 => '14',
    5 => '5',
    23 => '23',
    7 => '7',
    31 => '31',
    11 => '11',
    19 => '19',
    49 => '49',
    51 => '51',
    57 => '57',
    53 => '53',
    25 => '25',
    13 => '13',
    37 => '37',
    27 => '27',
    43 => '43',
    1 => '1',
    2 => '2',
    21 => '21',
    26 => '26',
    46 => '46',
    50 => '50',
    44 => '44',
    22 => '22',
    58 => '58',
    60 => '60',
    34 => '34',
    32 => '32',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';

  /* Display: Logic? */
  $handler = $view->new_display('block', 'Logic?', 'block_2');
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    47 => '47',
    15 => '15',
    16 => '16',
    55 => '55',
    9 => '9',
    10 => '10',
    59 => '59',
    41 => '41',
    35 => '35',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';

  /* Display: Logic? */
  $handler = $view->new_display('block', 'Logic?', 'block_3');
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    25 => '25',
    13 => '13',
    37 => '37',
    27 => '27',
    43 => '43',
    1 => '1',
    2 => '2',
    21 => '21',
    26 => '26',
    46 => '46',
    50 => '50',
    44 => '44',
    22 => '22',
    58 => '58',
    60 => '60',
    34 => '34',
    32 => '32',
    33 => '33',
    39 => '39',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';

  /* Display: Logic? */
  $handler = $view->new_display('block', 'Logic?', 'block_4');
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Check 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']['ui_name'] = 'Check published';
  $handler->display->display_options['filters']['status']['value'] = '1';
  /* Filter criterion: Taxonomie: Term ID (with depth) */
  $handler->display->display_options['filters']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['table'] = 'node';
  $handler->display->display_options['filters']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  $handler->display->display_options['filters']['term_node_tid_depth']['value'] = array(
    35 => '35',
    3 => '3',
    4 => '4',
    12 => '12',
    8 => '8',
    6 => '6',
    14 => '14',
    51 => '51',
    27 => '27',
  );
  $handler->display->display_options['filters']['term_node_tid_depth']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['term_node_tid_depth']['type'] = 'select';
  $handler->display->display_options['filters']['term_node_tid_depth']['vocabulary'] = 'tags';
  $handler->display->display_options['filters']['term_node_tid_depth']['hierarchy'] = 1;
  $handler->display->display_options['filters']['term_node_tid_depth']['depth'] = '10';
  $translatables['bz_slidefront'] = array(
    t('Standards'),
    t('Weiter'),
    t('Apply'),
    t('Zurücksetzen'),
    t('Sort by'),
    t('Asc'),
    t('Desc'),
    t('Slidefront Block'),
    t('This style is embedded in Brave Zeenat Slidefront block.'),
    t('more'),
    t('Logic?'),
  );
  $views[$view->name] = $view;

  /* begin category view */
  $view = new view;
  $view->name = 'bz_categories';
  $view->description = 'Lists the available top level taxonomy terms';
  $view->tag = 'bz_categories';
  $view->base_table = 'taxonomy_term_data';
  $view->human_name = 'bz_categories';
  $view->core = 7;
  $view->api_version = '3.0-alpha1';
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Standards */
  $handler = $view->new_display('default', 'Standards', 'default');
  $handler->display->display_options['use_more'] = TRUE;
  $handler->display->display_options['use_more_text'] = '…';
  $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['exposed_form']['type'] = 'basic';
  $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Zurücksetzen';
  $handler->display->display_options['pager']['type'] = 'some';
  $handler->display->display_options['pager']['options']['items_per_page'] = '4';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['style_options']['wrapper_class'] = 'item-list brave-zeenat-category-menu';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Beziehung: Parent Term */
  $handler->display->display_options['relationships']['parent']['id'] = 'parent';
  $handler->display->display_options['relationships']['parent']['table'] = 'taxonomy_term_hierarchy';
  $handler->display->display_options['relationships']['parent']['field'] = 'parent';
  $handler->display->display_options['relationships']['parent']['ui_name'] = 'Parent Term';
  $handler->display->display_options['relationships']['parent']['required'] = 0;
  /* Feld: Taxonomy term */
  $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']['ui_name'] = 'Taxonomy term';
  $handler->display->display_options['fields']['name']['label'] = '';
  $handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
  $handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
  $handler->display->display_options['fields']['name']['alter']['absolute'] = 0;
  $handler->display->display_options['fields']['name']['alter']['trim'] = 0;
  $handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
  $handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
  $handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
  $handler->display->display_options['fields']['name']['alter']['html'] = 0;
  $handler->display->display_options['fields']['name']['element_label_colon'] = 1;
  $handler->display->display_options['fields']['name']['element_default_classes'] = 1;
  $handler->display->display_options['fields']['name']['hide_empty'] = 0;
  $handler->display->display_options['fields']['name']['empty_zero'] = 0;
  $handler->display->display_options['fields']['name']['link_to_taxonomy'] = 1;
  /* Sortierkriterien: Sort by Term */
  $handler->display->display_options['sorts']['name']['id'] = 'name';
  $handler->display->display_options['sorts']['name']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['sorts']['name']['field'] = 'name';
  $handler->display->display_options['sorts']['name']['ui_name'] = 'Sort by Term';
  /* Argument: VocabId */
  $handler->display->display_options['arguments']['vid']['id'] = 'vid';
  $handler->display->display_options['arguments']['vid']['table'] = 'taxonomy_vocabulary';
  $handler->display->display_options['arguments']['vid']['field'] = 'vid';
  $handler->display->display_options['arguments']['vid']['ui_name'] = 'VocabId';
  $handler->display->display_options['arguments']['vid']['style_plugin'] = 'default_summary';
  $handler->display->display_options['arguments']['vid']['default_argument_type'] = 'fixed';
  /* Filter: Filter for Parentless Terms */
  $handler->display->display_options['filters']['tid']['id'] = 'tid';
  $handler->display->display_options['filters']['tid']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['filters']['tid']['field'] = 'tid';
  $handler->display->display_options['filters']['tid']['relationship'] = 'parent';
  $handler->display->display_options['filters']['tid']['ui_name'] = 'Filter for Parentless Terms';
  $handler->display->display_options['filters']['tid']['operator'] = 'empty';
  $handler->display->display_options['filters']['tid']['value'] = '';
  $handler->display->display_options['filters']['tid']['reduce_duplicates'] = 0;
  $handler->display->display_options['filters']['tid']['vocabulary'] = 'tags';
  $translatables['bz_categories'] = array(
    t('Standards'),
    t('…'),
    t('Übernehmen'),
    t('Zurücksetzen'),
    t('Sort By'),
    t('Asc'),
    t('Desc'),
    t('Übergeordneter Eintrag'),
    t('Alles'),
  );
  $views[$view->name] = $view;



  return $views;
};

I have to mention though, that before upgrading to the latest views beta (beta3), these views worked well using beta2.
Thanks for your interest.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

As you can see on #784144: Sort by taxonomy term name throws PDO exception, table not found what you posted is probably not the full error message.

Perhaps you should disable javascript for a moment and do the same stuff.
Then you get a better error message.

-osiris-’s picture

Nope.
This is the error message I get with JS disabled:

PDOException: in ctools_object_cache_set() (Zeile 75 von C:\XAMPP\xampp\htdocs\d7test4\sites\all\modules\ctools\includes\object-cache.inc).
Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es später nochmal.

There is nothing more. Strange, huh?

merlinofchaos’s picture

Maybe you should use devel.module to reinstall CTools -- maybe the table definition is somehow wrong?

dawehner’s picture

Can't you enable a better error displaying?

PDO throws exceptions which often explains the problems... But i have no idea where to enable helpful error messages on xampp.

-osiris-’s picture

@#5: I will try that, as soon as I get near that testing environment again.

@#6: If anyone else could enligten me on ho to enable advanced error messages on xampp, i wolud be ever so grateful.

-osiris-’s picture

Status: Postponed (maintainer needs more info) » Active

@#5: Reinstalling ctools, views and views_ui using devel.module has no effect.

Can anyone confirm this hook works with views 3.0-beta3 and ctools 1.0-alpha4?

merlinofchaos’s picture

Views itself implements this hook, and provides several default views. Yes, I can confirm the hook works.

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

So a proper error message is still missing.

-osiris-’s picture

To simply put it: I can't get a more precise error description, I don't know where to look for, but would be grateful for any advice how to isolate this error.

But I can provide some more information:

1. When I enable one of the default views (Archive, e.g), all filters, fields, etc can be changed. Clicking on one of the properties, the according form is shown, I do the changes, press apply and am returned to the view, where saving is no problem.

2. When I take the exact code of this default view from the node.views_default.inc in views/modules and copy it into my own hook_views_default_views() (of course I change the $view->name and $view->human_name) the view is broken.
Clicking on any property in the Views-Form, the Pop-Up is shown, but the apply button produces the aforementioned error.

I tried this also with a clean install, the result is the same.
Btw, to exclude other sources of fail, here's my hook_views_api(). Just to make sure nothing is wrong with that:

function slidefront_views_api() {
  return array(
    'api' => '3.0-alpha1',
    'path' => drupal_get_path('module', 'slidefront'),
  );
}

The slidefront_views_default_views() resides in
sites/all/modules/bz/slidefront/slidefront.views_default.inc

I'm really stuck here.

merlinofchaos’s picture

Can you attach your views_default.inc file? Maybe there's something subtle wrong there that's causing this.

-osiris-’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new25.9 KB

Thanks for your interest, here's the file.
Of course, I had to append the extension .txt to upload it here, otherwise it's unchanged.

And, btw, what is the correct syntax for a new view:
Is it (like the export code) $view = new view; or is it $view = views_new_view(); ?

Don't get my previous statement about default views wrong, I know that view's default views do indeed work properly, but I can not implement any in my module.

Concerning the unexplained error message: I moved the environment for testing to a hosted site (some *nix driven server) but the error and the message stay the same.

Greetings, o.

dawehner’s picture

Can you pastebin your hook_views_api as well?

-osiris-’s picture

@14:dereine : Just look at #11 !?

merlinofchaos’s picture

I have an idea what may be wrong.

As a test, can you go through this file and edit any word that has non-ASCII characters in it to have only ascii characters? Yes it will ruin the words, but we're mostly doing this to see if maybe it's UTF-8 characters causing PDO to panic trying to write to the object cache.

For example:
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Zur�cksetzen';

That word contains a character that doesn't print properly for me. Change that word to something else.

Another one is this:

$handler->display->display_options['use_more_text'] = '�';

-osiris-’s picture

Status: Active » Fixed

That definitely fixed it.
You were right, it was just the
$handler->display->display_options['use_more_text'] = '...';

Maybe there's the need to raise a ctools-issue to request a proper error handling?

Thank you.

Status: Fixed » Closed (fixed)

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