Hello,
I filtered the URL aliases on my site by the word "term". The attachment shows what comes up: over 700 different URL aliases (i.e. "taxonomy/term/951" maps to "taxonomy/term"). I saw on a thread in the issue queue for this module that upgrading to 1.x-dev should fix it.
I upgraded to 1.x-dev, but when I ran update.php Drupal told me there were "no updates available" for pathauto. The dropdown menu next to pathauto on the update.php page shows options of 1, 3, 4, or 7. (Am I supposed to select one of those?)
I am running Views 2.6 with the taxonomy_term view enabled to emulate the Drupal core's handling of taxonomy/term.
My main questions are:
1. Should I be concerned about 700+ aliases that I don't want, and
2. How do I get rid of them?
Deleting all aliases and starting over is not an option.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto.png | 110.87 KB | kostajh |
Comments
Comment #1
damienmckennaI've been running into this issue too on multiple sites with v6.x-1.1. In all cases the Update Action is set to "Create a new alias. Redirect from old alias." and in all cases during some undetermined action the url_aliases table gets filled with records that have "taxonomy/term/" as the 'src' value.
Comment #2
azinck commentedI've run into the same issue and initially reported it on the Path Redirect module (here http://drupal.org/node/562456) but after some digging through the code I'm fairly sure this is a Pathauto problem.
As I mentioned on the other thread, the problem seems to occur after adding a new term to the vocabulary. When a new term is added a redirect or alias is created for the most recently added term (prior to the new one).
Comment #3
azinck commentedOk, I found the problem.
In pathauto_taxonomy.inc (on line 117 in my 6.x-1.1 copy) change:
$src = taxonomy_term_path($category->tid);To:
$src = taxonomy_term_path($category);taxonomy_term_path() takes a term object, not a term id.
Comment #4
damienmckennaThis fix is already in CVS: Commit 136702 :-|
Could we have a 6.x-1.2 release please?
Comment #5
damienmckennaThis is actually a duplicate of #278368: taxonomy_term_path being passed TID instead of Term Object.
Comment #6
damienmckennaAlso, please help with the tickets listed in #535988: Bugs to fix before a Release 6.x-1.2 so we can push to have a new release out sooner rather than later.