Closed (fixed)
Project:
Taxonomy Token
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 Oct 2010 at 14:54 UTC
Updated:
24 Dec 2010 at 17:00 UTC
Jump to comment: Most recent file
I explain
I use taxonomy token to create url on my site with the term from a vocabulary
when I create the node, already is perfect BUT when I edit the node and I change the term and choice an another term in the vocabulary
url is not correct, it's the old url with the first term selectionned and not the new !
I change in my pathauto settings the token by the core token [term] instead [node:vocab:5:term:url] and I edit my node, save and it's correct ! my url is ok now
it's a problem with taxonomy token , it seems there is no update when I change the term from the vocabulary with taxonomy token
where is the problem ?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | vid.png | 28.48 KB | pixelpreview@gmail.com |
Comments
Comment #1
rsevero commentedWhen editing some contents I noticed that the "Automatic alias" checkbox isn't checked, sometimes it is. I never figured out why sometimes this checkbox gets unchecked.
Could you please change back to use [node:vocab:5:term:url] and re-edit the content? Don't forget to check that the "Automatic alias" checkbox is marked before saving the edited content. Please report back.
Comment #2
pixelpreview@gmail.com commentedI have tested this option too and I have the same problem
see my test :
I rewrite url like this for my test and to discober where is the problem
url/lang/content-type/[node:vocab:5:term:url]/[term-raw]/node-title
http://mysite.com/en/services/music/disco/welcome-on-tv
as you can see taxonomy token don't update ! I have edited the node and the new selected term is "disco" and not "music"
[term-raw] give the good term and taxonomy token keep the old !
it's very strange and I don't understand why pathauto with taxonomy token don't update the path like with [term-raw] ?
Comment #3
rsevero commented[term-raw] and [node:vocab:5:term:url] don't necessarily refer to terms in the same vocabulary.
[term-raw] refers to one of the vocabularies. I don't remember which criteria Pathauto uses to choose to which vocabulary [term-raw] refers to but anyway you don't have any control over that as far as I know.
[node:vocab:5:term:url] refers to the vocabulary with id 5. Are you sure you are changing the term of the vocabulary with id 5?
Could you please share the content of the taxonomy page at admin/content/taxonomy ?
Comment #4
pixelpreview@gmail.com commentedyes you are right term-raw refers to the top term selected but my vocabulary is the first in the edit page
and the both terms are in the same vocabulary
I have the same problem with custom breadcrumb after more investigations yesterday
thus it's not a problem with pathauto
when I do this in custom breadcrumb
type of content
[term]
[title]
it's good when I edit node, the breadcrumb is updated like the url
but when I do this
type of content
[node:vocab:5:...
[title]
no update on the node when I update it
breadcrumb show the old term
I have cache enabled and the revisioning module
token 6.x-1.14
taxonomy token 6.x-1.0-rc2
Comment #5
rsevero commentedI really can't reproduce the behaviour you describe: [term-raw] token being updated and the correspondent Taxonomy Token token not being updated.
Anyway, in the process of looking for it I found out a major bug in the new bottom term token generation which was fixed with #956038: Bottom terms are always equal to top terms.
I'm postponing this issue as I can't fix a bug I can't see ;)
Please upgrade to version 6.x-1.0-rc3 just to check if anything related to this issue changed otherwise I need clear instructions on how to reproduce this bug.
Comment #6
pixelpreview@gmail.com commentedOk I will upgrade tonight my site and I give you feedback rapidly
thank you !
Comment #7
pixelpreview@gmail.com commentedI have tested and I have alaways the same problem but If I change token module to an older version
the bug disappears ... I enabled the laste version 6.1.14 and the bug is there
Comment #8
rsevero commentedPlease observe that the lastest version of the Token module is 6.x-1.15 and not 6.x-1.14. Take a look at http://drupal.org/project/token.
Could you upgrade your Token module, re-test and report back?
Comment #9
pixelpreview@gmail.com commentedok I have installed token 6.x 1.15
same behaviour but one difference
when I edit the node if I delete the old url path in the node edit and I save with automatic url
the URL path is correct but if I don't do that (don't delete manualy the old url path in the node)
the [vocab:5 ...] keep the old term value
Comment #10
rsevero commentedI really can't reproduce the behaviour you describe neither in my testbed neither in two production sites already using Taxonomy Token. Here, if I check the "Automatic URL" checkbox all tokens return updated values for Pathauto, no matter if I cleared the old path value or not.
I wonder if there is some problem arising from the interaction between modules. Can you try disabling modules to eventually identify if there is such a bad interaction?
Other idea would be to create a basic Drupal installation with Pathauto, Token and Taxonomy Token modules to test. After confirming Taxonomy Token works as expected in such a configuration, start to add the other modules you have enabled.
Comment #11
pixelpreview@gmail.com commentedthanks
I will install a new clean site and I give you feedback rapidly
Comment #12
rsevero commentedMarking it as fixed for now. Please reopen with extra info if necessary.
Comment #14
rsevero commentedFinally identified this bug and fixed with http://drupal.org/cvs?commit=462488.
It happened in some situations if, and only if, the node had revisions.