Hello there,
All my views up to this point were working fine and as expected with Teaser Thumbnail before. However, as our site has grown in complexity, so have our views. I have been asked to create a view that can display all nodes tagged with a certain term, the term being specified by the URL. Our views must have the thumbnails along with a few other fields. The problem is, I create the view as I normally would, this time adding arguments for Taxonomy Term ID with depth and Taxonomy Term ID with depth modifier. I have also tried adding Taxonomy Term ID as well, but no luck. Every time I create the view, the preview shows me as expected thumbnails and all. When I try to type in the URL, whatever/%, the thumbnails do not display and I get the following errors from teaser thumbnail:
Error: handler for teaserthumbnail > filepath doesn't exist!
Then in all my other views, which had the thumbnails working as expected, using the ImageCache presets, stop doing so and appear all weird. When I clear the views cache the issue resolves for the other views temporarily, but going back to this taxonomy based view continues to yield the same results, time and again. I've narrowed down that this definitely has something to do with having the "%" in the URL, but the problem is I need this because we need to be able to fetch these views by clicking on a taxonomy menu.
I am attaching the view code below and a screen shot of my view's configuration:
$view = new view;
$view->name = 'taxonomy_news';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'filepath' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 0,
'ellipsis' => 0,
'html' => 1,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 1,
'original_picture' => 0,
'preset' => 'thumbnail',
'exclude' => 0,
'id' => 'filepath',
'table' => 'teaserthumbnail',
'field' => 'filepath',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 0,
'ellipsis' => 0,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'field_post_date_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'group' => '',
),
'repeat' => array(
'show_repeat_rule' => '',
),
'fromto' => array(
'fromto' => 'both',
),
'exclude' => 0,
'id' => 'field_post_date_value',
'table' => 'node_data_field_post_date',
'field' => 'field_post_date_value',
'relationship' => 'none',
),
'field_slideshow_teaser_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_slideshow_teaser_value',
'table' => 'node_data_field_slideshow_teaser',
'field' => 'field_slideshow_teaser_value',
'relationship' => 'none',
),
'name' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 0,
'ellipsis' => 0,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_taxonomy' => 0,
'exclude' => 0,
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'tid' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'break_phrase' => 0,
'add_table' => 0,
'require_value' => 0,
'reduce_duplicates' => 0,
'set_breadcrumb' => 0,
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'4' => 0,
'5' => 0,
'3' => 0,
'7' => 0,
'6' => 0,
'8' => 0,
),
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_fixed' => '',
'default_argument_user' => 0,
'default_argument_php' => '',
'validate_argument_node_type' => array(
'blog' => 0,
'poll' => 0,
'iframe_page' => 0,
'woo_fullpage' => 0,
'panel' => 0,
'book' => 0,
'event' => 0,
'event_speaker' => 0,
'home' => 0,
'job_posting' => 0,
'latest_news' => 0,
'page' => 0,
'pictures' => 0,
'profile' => 0,
'quicklinks' => 0,
'simplenews' => 0,
'story' => 0,
'video' => 0,
'webform' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'8' => 0,
'6' => 0,
'10' => 0,
'7' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
'term_node_tid_depth' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'taxonomy_tid',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'depth' => '5',
'break_phrase' => 0,
'set_breadcrumb' => 0,
'use_taxonomy_term_path' => 0,
'id' => 'term_node_tid_depth',
'table' => 'node',
'field' => 'term_node_tid_depth',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'4' => 0,
'5' => 0,
'3' => 0,
'7' => 0,
'6' => 0,
'8' => 0,
),
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_fixed' => '',
'default_argument_user' => 0,
'default_argument_php' => '',
'validate_argument_node_type' => array(
'latest_news' => 'latest_news',
'blog' => 0,
'poll' => 0,
'iframe_page' => 0,
'woo_fullpage' => 0,
'panel' => 0,
'book' => 0,
'event' => 0,
'event_speaker' => 0,
'home' => 0,
'job_posting' => 0,
'page' => 0,
'pictures' => 0,
'profile' => 0,
'quicklinks' => 0,
'simplenews' => 0,
'story' => 0,
'video' => 0,
'webform' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'6' => 6,
'8' => 0,
'10' => 0,
'7' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_php' => '',
),
'term_node_tid_depth_modifier' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'id' => 'term_node_tid_depth_modifier',
'table' => 'node',
'field' => 'term_node_tid_depth_modifier',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'latest_news' => 'latest_news',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'language' => array(
'operator' => 'in',
'value' => array(
'***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'language',
'table' => 'node',
'field' => 'language',
'relationship' => 'none',
),
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('style_plugin', 'table');
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'taxonomy/term/%');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2011-08-15 at 10.57.54 AM.png | 139.88 KB | elshae |
Comments
Comment #1
elshae commentedComment #2
elshae commentedSorry about that, I realized that it's the views handler giving me errors and I figured I should move it here :)
Comment #3
merlinofchaos commentedYes but it's a handler provided by a module that's missing, so it actually has to go back to the module. We're not able to help with module-provided handlers.
Comment #4
elshae commentedI'm still struggling with this, haven't figured it out :/
Comment #5
elshae commentedAnyone, please?? I can't be the only one this happened to...
Comment #6
salientknight commentedI'm using Taxonomy and it has been working fine for me for months, but just stopped today. The solution for me was to clear the cache (I used drush clear all cache), which I'm guessing forced the thumbnails to be rebuilt and fixed the path issue.
Comment #7
pavelculacov commentedI have the same probleme, 1 week ago, can some solve this? I use block view taxonomy link to taxonomy page.