The taxonomy_xml module allows one to import (and export) taxonomy files in XML and CSV format. The import works OK, but causes problems with path_redirect. A set of additional entries is made in the path_redirect table with a redirect value of 'taxonomy/term/' and a null query.

I also get:

user warning: Duplicate entry 'taxonomy/term/461-' for key 2 query: INSERT INTO path_redirect (path, redirect, language, type, last_used) VALUES ('taxonomy/term/461', 'taxonomy/term/', '', 301, 1236900180) in D:\development\drupal\NVFA\branches\1.4\drupal\includes\common.inc on line 3425.

for every taxonomy term imported.

Ideas?

Comments

dave reid’s picture

Project: Path redirect » Pathauto
Version: 6.x-1.0-beta3 » 6.x-1.1

Hmm...the path_redirect module doesn't automatically add any redirects for taxonomy terms, but I'm guessing that the pathauto module is creating these. Let's bounce this to greggles in the pathauto queue because I think I saw an issue about this there.

@Liberation: What version of pathauto are you using?

greggles’s picture

This does sound similar to existing pathauto issues. Please make sure you are using Pathauto 6.x-1.x-dev.

dave reid’s picture

Marked #401624: Term redirect issue as a duplicate of this one as well.

dave reid’s picture

Status: Active » Closed (duplicate)

I found the original issue...so this is a duplicate of #278368: taxonomy_term_path being passed TID instead of Term Object. We can re-open if this is actually still a bug in the latest 6.x-1.x-dev of pathauto. I will note that I haven't had this problem on any of my sites and their taxonomy, using latest 6.x-1.x-dev.

Liberation’s picture

I am happy to report that using 6.x.1.x-dev of 2009-03-08 appears to fix this problem, and taxonomies can be imported via taxonomy_xml without difficulty now.

Thanks all for the prompt responses. :)