I'm using [catpath-raw] as a replacement pattern for term paths. When changing a term name, the term path is not updated after saving the term. When editing the term a second time and just pressing "save" without a change, the term path gets updated, however.
This can be easily reproduced using a clean D6.17 install, with pathauto and token as the only contributed modules, caching turned off, and without any content except of some terms.
New terms or terms without an alias get updated immediately, but when term names change, you have to save the term twice.
This only happens with patterns [catpath] and [catpath-raw], not with other patterns like [vocab-raw] or [cat-raw].
Example with terms:
Fruit
- Apple
- Cherry
When inserting those terms, catpath works, aliases are "fruit/apple" or "fruit/cherry" for example.
Editing the term "Cherry" , changing it to "Banana" and saving the term leaves the alias untouched as "fruit/cherry".
Editing the term a second time and just pressing "Save" updates the alias to "fruit/banana".
I dont't know wheter this is the same in 6.x.1.x versions of pathauto, I'm preferring the 6.x.2.x versions because they are using the transliteration module...
Regards,
Boris
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 822174-pathauto-taxonomy-cache-D7.patch | 1.83 KB | dave reid |
| #10 | 822174-pathauto-taxonomy-cache-D7.patch | 1.72 KB | dave reid |
| #10 | 822174-pathauto-taxonomy-cache-D6.patch | 2.04 KB | dave reid |
Comments
Comment #1
gregglesCan you confirm the weight of the Pathauto module in the system table?
Comment #2
drubbHere they are:
taxonomy = 0
pathauto = 1
token = 10
These seem to be the default values, all other modules = 0.
Regards,
Boris
Comment #3
gregglesDo you have the same problem with any other token or just catpath?
Maybe this is due to the way catpath is generated/calculated.
Comment #4
drubbThis only happens with patterns [catpath] and [catpath-raw], not with other patterns like [vocab-raw] or [cat-raw].
:-)
Comment #5
dave reidThere was a recent bug with the termpath and catpath tokens. Can you re-download the latest -dev release and re-confirm this bug?
Comment #6
drubbI did this already, yesterday. I'll have a look on the code. Maybe I'll give a try to a former drupal core version, there are some substantial changes in Drupal 6.17. And I'll try a 6.x.1.x version of pathauto module...
We'll get it, surely!
Comment #7
drubbHere are my first results:
- it has nothing to do with drupal core, same in 6.16
- catpaths are working fine with this OLD pathauto dev version (6.x.2.x.dev, april 2009):
// $Id: pathauto.module,v 1.124 2009/04/20 22:52:37 greggles Exp $
This version is ok, too:
// $Id: pathauto.module,v 1.126 2009/10/17 17:45:10 greggles Exp $
Tried both together with d6.17 and latest dev version of token module. The module weights didn't change.
It's always nice to have some kind of archive :-)
So something got lost on the way...
Comment #8
drubbAnd another result:
this bug is also contained in latest 6.x.1.x-dev version!
But NOT in stable 6.x.1.3 version!
Comment #9
dave reidOk I can reproduce this. Debugging and on it although its hardly critical.
Comment #10
dave reidPatches for D7 and D6-2 attached for review. BorisB, it would be great if you could test out the 6.x-2.x patch and report back on success/failure.
Comment #11
dave reidComment #12
dave reidD'oh. We also need this core patch reviewed: #826334: taxonomy_terms_static_reset() is missing reset for taxonomy_get_parents_all() in order to properly fix this.
Comment #13
dave reidThis is the D7 patch that is needed in the meantime.
Comment #14
dave reidI manually tested this on all three branches, so committing to CVS since the testbot is no longer reliable for contrib.
http://drupal.org/cvs?commit=379448
http://drupal.org/cvs?commit=379450
http://drupal.org/cvs?commit=379452
Comment #15
drubbI've applied the D6-2 patch to latest 6.x.2.x-dev version and had a short look at it - patch seems to do the job!
Regards,
Boris