Hi!

I'm trying to upgrade a site do D6, but the view taxonomy/term/% always gives me a page containing just the title, and no nodes. This view is essencial for the site, as I'm using Taxonomy_menu.

Is this a known issue? If not, how can I trace it?

Thanks in Advance,
Carlos.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

It's not a known issue. Other than that, there is no way to debug this without some more information. Start with an export of the view and pasting the query produced during view preview.

zottmann’s picture

Hi! Thanks for the answer!

I´ve exported the view as you can see below. I´ve tried to get the query produced during preview (display page), using the value "1" as argument (taxonomy term #1), as well as other values, but I always get the message "No query was run". Should I use something else as an argument?

$view = new view;
$view->name = 'taxonomy_term';
$view->description = 'A view to emulate Drupal core\'s handling of taxonomy/term; it also emulates Views 1\'s handling by having two possible feeds.';
$view->tag = 'default';
$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('sorts', array(
  'sticky' => array(
    'id' => 'sticky',
    'table' => 'node',
    'field' => 'sticky',
    'order' => 'DESC',
    'relationship' => 'none',
  ),
  'created' => array(
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'order' => 'DESC',
    'granularity' => 'second',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'term_node_tid_depth' => array(
    'id' => 'term_node_tid_depth',
    'table' => 'node',
    'field' => 'term_node_tid_depth',
    'default_action' => 'not found',
    'style_plugin' => 'default_summary',
    'style_options' => array(
      'count' => TRUE,
      'override' => FALSE,
      'items_per_page' => 25,
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '%1',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'taxonomy_term',
    'validate_fail' => 'not found',
    'depth' => '0',
    'break_phrase' => 1,
    'relationship' => 'none',
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'album' => 0,
      'artist' => 0,
      'book' => 0,
      'page' => 0,
      'story' => 0,
      'track' => 0,
    ),
    'validate_argument_vocabulary' => array(
      '3' => 0,
      '4' => 0,
      '1' => 0,
      '5' => 0,
      '2' => 0,
    ),
    'validate_argument_type' => 'tids',
    'validate_argument_php' => '',
  ),
  'term_node_tid_depth_modifier' => array(
    'id' => 'term_node_tid_depth_modifier',
    'table' => 'node',
    'field' => 'term_node_tid_depth_modifier',
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(
      'count' => TRUE,
      'override' => FALSE,
      'items_per_page' => 25,
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
  ),
));
$handler->override_option('filters', array(
  'status_extra' => array(
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
    'operator' => '=',
    'value' => '',
    'group' => 0,
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('use_pager', '1');
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'teaser' => TRUE,
  'links' => TRUE,
));
$handler = $view->new_display('page', 'Page', 'page');
$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,
));
$handler = $view->new_display('feed', 'Core feed', 'feed');
$handler->override_option('items_per_page', 15);
$handler->override_option('style_plugin', 'rss');
$handler->override_option('style_options', array(
  'mission_description' => FALSE,
  'description' => '',
));
$handler->override_option('row_plugin', 'node_rss');
$handler->override_option('row_options', array(
  'item_length' => 'default',
));
$handler->override_option('path', 'taxonomy/term/%/%/feed');
$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,
));
$handler->override_option('displays', array(
  'page' => 'page',
  'default' => 0,
));
$handler->override_option('sitename_title', FALSE);
$handler = $view->new_display('feed', 'Views 1 feed', 'feed_1');
$handler->override_option('items_per_page', 15);
$handler->override_option('style_plugin', 'rss');
$handler->override_option('style_options', array(
  'mission_description' => FALSE,
  'description' => '',
));
$handler->override_option('row_plugin', 'node_rss');
$handler->override_option('row_options', array(
  'item_length' => 'default',
));
$handler->override_option('path', 'taxonomy/term/%/feed');
$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,
));
$handler->override_option('displays', array());
$handler->override_option('sitename_title', FALSE);
zottmann’s picture

Hi!

I 'm really needing help on this ... Any hint on what should I do next?

Regards,
Carlos.

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

Updating the status:

The problem was that the argument return 404 if no argument is provided. Thats just a admin ui usage mistake :)

If you want to show every node if no argument is provided change the settings to something you need in the first argument.

merlinofchaos’s picture

No, the taxonomy/term/% view shouldn't ever NOT have an argument.

When I import this view and try it on my test site, it works exactly as it is supposed to.

I do not have an explanation for why it might not be working on another site.

zottmann’s picture

Hi!

Thanks for the answers, and sorry for the my delay, but I was away from work last week.

I think that the key to the problem is that no query is being run, as I stated in post #2. What can be the cause of this behaviour?

Thanks again,
Carlos.

zottmann’s picture

Hi!

I´ve installed the devel module and tried to display the "taxonomy/term/%" page, and the devel module showed a little more than 100 queries. I think that the most relevant ones are the following, that I found at the begining of the queries list presented by devel (there were 3 queries before them, but apparently not related to taxonomy or menus)

Thanks again,
Carlos.

1.08 1 drupal_lookup_path SELECT src FROM url_alias WHERE dst = 'taxonomy/term/1935' AND language IN('pt-br', '') ORDER BY language DESC

1.48 1 module_list SELECT name, filename, throttle FROM system WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC

1.75 1 menu_get_item SELECT * FROM menu_router WHERE path IN ('taxonomy/term/1935','taxonomy/term/%','taxonomy/%/1935','taxonomy/%/%','taxonomy/term','taxonomy/%','taxonomy') ORDER BY fit DESC LIMIT 1 OFFSET 0

0.97 1 load SELECT * FROM views_view WHERE name = 'taxonomy_term'

1.87 1 cache_get SELECT data, created, headers, expire, serialized FROM cache_views WHERE cid = 'views_default_views:pt-br'

3.26 1 cache_get SELECT data, created, headers, expire, serialized FROM cache WHERE cid = 'locale:pt-br'

10.55 1 locale SELECT s.lid, t.translation, s.version FROM locales_source s LEFT JOIN locales_target t ON s.lid = t.lid AND t.language = 'pt-br' WHERE s.source = 'Attachments added to other displays to achieve multiple views in the same view.' AND s.textgroup = 'default'

1.6 1 locale SELECT s.lid, t.translation, s.version FROM locales_source s LEFT JOIN locales_target t ON s.lid = t.lid AND t.language = 'pt-br' WHERE s.source = 'Displays the summary unformatted, with option for one after another or inline.' AND s.textgroup = 'default'

9.59 1 cache_get SELECT data, created, headers, expire, serialized FROM cache_views WHERE cid = 'views_data:pt-br'

1.09 5 validate_argument SELECT * FROM term_data WHERE tid IN (1935)
0.68 5 validate_argument SELECT * FROM term_data WHERE tid IN (1935)
0.31 5 validate_argument SELECT * FROM term_data WHERE tid IN (1935)

0.6 1 drupal_lookup_path SELECT dst FROM url_alias WHERE src = 'taxonomy/term/1935/all/feed' AND language IN('pt-br', '') ORDER BY language DESC

zottmann’s picture

Status: Fixed » Active
zottmann’s picture

Hi!
Just changed the status of this issue to "active", as I´m still facing the problem and I´m still needing help.

Regards,
Carlos.

zottmann’s picture

Hi!

Just another piece of information. Nodes created after the site was upgraded do D6 are being shown in the views. Only the old documents, added when the site was D5, are not being shown.

Thanks again,
Carlos.

merlinofchaos’s picture

Do you get the same kind of behavior if you disable the taxonomy_term view and let Drupal handle it?

zottmann’s picture

Hi!

Thanks for the answer!!

I´ve disabled the view, and the behaviour remains the same.

I´ve also built a new view, that just lists the titles of the published nodes, and added a filter to it, on the taxonomy term associated to the nodes. When I configure the filter to a taxonomy term associated to a node created after the upgrade to D6, the nodes appear on this new view. When I configure the filter to any taxonomy term associated only to nodes created before the upgrade, I get an empty view again.

The taxonomy terms themselves were all created before the upgrade to D6.

If this information is relevant, this site is run on a Postgres database.

Regards,
Carlos.

ccshannon’s picture

Hey there, I came across this thread as I suddenly had a similar problem, but with only one vocabulary's terms. This is what solved my issue. In case this helps ...

Did you go into the View's 'Arguments' section and make sure the term argument's proper vocabularies were set? It might be you are trying to run a feed off a vocabulary you aren't allowing in the View.

mdlepage’s picture

ditto over here. I did try what ccshannon suggested but it didn't work.

Help!

zottmann’s picture

Hi! Thanks for your help! I'll try that and will let you know ...

esmerel’s picture

Status: Active » Closed (fixed)

No activity for more than 6 months