Hi,

All my term redirect fail. Node and image redirects are OK.
I am not sure if this is a problem of path redirect or url alias. Sorry for that.

On my website, http://www.webstrat.fr/goodies/management url is redirect to http://www.webstrat.fr/image/tid/15

So, I make a bulk erase of taxonomy & term alias following by bulk rebuild of them.
I get lot of warning :
*************
# user warning: Duplicata du champ 'taxonomy/term/1-' pour la clef 2 query: INSERT INTO path_redirect (path, redirect, language, type, last_used) VALUES ('taxonomy/term/1', 'taxonomy/term/', '', 301, 1237006478) in /data/www/beta/includes/common.inc on line 3422.
# user warning: Duplicata du champ 'taxonomy/term/2-' pour la clef 2 query: INSERT INTO path_redirect (path, redirect, language, type, last_used) VALUES ('taxonomy/term/2', 'taxonomy/term/', '', 301, 1237006478) in /data/www/beta/includes/common.inc on line 3422.
...
# user warning: Duplicata du champ 'image/tid/13-' pour la clef 2 query: INSERT INTO path_redirect (path, redirect, language, type, last_used) VALUES ('image/tid/13', 'taxonomy/term/', '', 301, 1237006478) in /data/www/beta/includes/common.inc on line 3422.
# user warning: Duplicata du champ 'image/tid/14-' pour la clef 2 query: INSERT INTO path_redirect (path, redirect, language, type, last_used) VALUES ('image/tid/14', 'taxonomy/term/', '', 301, 1237006478) in /data/www/beta/includes/common.inc on line 3422.
************

I was surprise to see term associate to gallery photo.

=> Same problem.

Bellow extract of database :
mysql> select * from path_redirect where redirect not like '%node%';
+-----+----------------------------------+-----------------+-------+----------+------+------------+----------+
| rid | path | redirect | query | fragment | type | last_used | language |
+-----+----------------------------------+-----------------+-------+----------+------+------------+----------+
| 4 | image/tid/11 | taxonomy/term/ | | | 301 | 1236808096 | |
| 5 | category/goodies/marketing-m�dia | taxonomy/term/3 | | | 301 | 1236808096 | |
| 6 | category/goodies/web-marketing | taxonomy/term/3 | | | 301 | 1236808096 | |
| 13 | taxonomy/term/3 | taxonomy/term/ | | | 301 | 1236948063 | |
| 14 | image/tid/12 | taxonomy/term/ | | | 301 | 1236990817 | |
| 15 | image/tid/13 | taxonomy/term/ | | | 301 | 1236954783 | |
| 16 | image/tid/14 | taxonomy/term/ | | | 301 | 1236954776 | |
| 42 | taxonomy/term/1 | taxonomy/term/ | | | 301 | 1237004574 | |
| 43 | taxonomy/term/2 | taxonomy/term/ | | | 301 | 1236961000 | |
| 44 | taxonomy/term/4 | taxonomy/term/ | | | 301 | 1237005978 | |
| 45 | taxonomy/term/5 | taxonomy/term/ | | | 301 | 1237006275 | |
| 46 | taxonomy/term/6 | taxonomy/term/ | | | 301 | 1236841079 | |
| 47 | taxonomy/term/7 | taxonomy/term/ | | | 301 | 1236841077 | |
| 48 | taxonomy/term/8 | taxonomy/term/ | | | 301 | 1236808096 | |
| 49 | taxonomy/term/9 | taxonomy/term/ | | | 301 | 1236808096 | |
| 50 | taxonomy/term/10 | taxonomy/term/ | | | 301 | 1236808096 | |
| 57 | image/tid/15 | taxonomy/term/ | | | 301 | 1236841078 | |
| 120 | taxonomy/term/16 | taxonomy/term/ | | | 301 | 1236808096 | |
| 121 | taxonomy/term/17 | taxonomy/term/ | | | 301 | 1236808096 | |
| 122 | taxonomy/term/18 | taxonomy/term/ | | | 301 | 1236808096 | |
| 278 | taxonomy/term/19 | taxonomy/term/ | NULL | NULL | 301 | 1237004982 | |
+-----+----------------------------------+-----------------+-------+----------+------+------------+----------+
21 rows in set (0.00 sec)

About url alias, I can see strange informations about taxonomy in DB :
mysql> select * from url_alias where url_alias.src not like '%node%';
+-----+------------------+-----------------------------------+----------+
| pid | src | dst | language |
+-----+------------------+-----------------------------------+----------+
| 567 | taxonomy/term/1 | goodies/web-design | |
| 568 | taxonomy/term/2 | goodies/referencement-seo | |
| 569 | taxonomy/term/3 | goodies/marketing-web | |
| 570 | taxonomy/term/4 | goodies/technologie | |
| 571 | taxonomy/term/5 | goodies/management | |
| 572 | taxonomy/term/6 | mission/banque | |
| 573 | taxonomy/term/7 | mission/assurance | |
| 354 | image/tid/11 | image-galleries/systeme | |
| 574 | taxonomy/term/8 | mission/industrie | |
| 355 | image/tid/12 | image-galleries/marketing-web | |
| 356 | image/tid/13 | image-galleries/management | |
| 357 | image/tid/14 | image-galleries/referencement-seo | |
| 358 | image/tid/15 | image-galleries/web-design | |
| 359 | user/1 | users/admin | |
| 360 | user/3 | users/sylvain-lasnier | |
| 491 | category/2 | goodies | |
| 566 | taxonomy/term/ | image/tid/15 | |
| 575 | taxonomy/term/9 | mission/service | |
| 576 | taxonomy/term/10 | mission/media | |
+-----+------------------+-----------------------------------+----------+
19 rows in set (0.00 sec)

Thanks for your help

Comments

dave reid’s picture

Project: Path redirect » Pathauto
Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Status: Active » Closed (duplicate)

Looks like this is a duplicate of #400298: Trouble with taxonomy_xml import. It's likely a pathauto bug. Make sure you are using the latest 6.x-1.x-dev version of pathauto.

Sylvain Lasnier’s picture

Indeed.
I use this component in production.

Did you recommand to use current dev release 6.x-2.x-dev or apply patch on 6.x-1.1 ?

Many thanks.

dave reid’s picture

I'd recommend using pathauto 6.x-1.x-dev. It's what I use in production sites right now.

Also for the record, this is actually duplicate of #278368: taxonomy_term_path being passed TID instead of Term Object.