I've been using Pathauto for a while now, but recently when the URL alias is automatically generated, it prints "Array" instead of the token value.
The pattern is set as: content/[term-raw]/[title-raw]
I just performed a test in this way:
1. I edited a page selecting "Automatic alias" and clicked "Save."
2. When the page refreshed, the URL contained "Array" where the [term-raw] token should be.
3. I immediately flushed the cache and the path displayed correctly in the address bar.
Sometimes flushing the cache doesn't make it display properly. Anyone know what might be happening?
Comments
Comment #1
dave reidThat likely means you recently enabled a module that provides a token that uses the same namespace as term-raw.
Comment #2
weekbeforenextI think the only likely module that could be causing the problem is Google Analytics. However, when I disabled that module, the problem remained. I changed the token to [termpath-raw] instead of [term-raw] to match the pattern for another node type that seems to be working. The problem persists and it seems to only be happening for Page. Any other ideas?
Comment #3
weekbeforenextI reverted back to Pathauto 6.x -1.4 and the problem was resolved. Someone please take a look at what might have happened between 1.4 and 1.5. It seems to only be a problem on Page content types.
Thanks.
Comment #4
gregglesThere must be a second module on your system that creates the termpath-raw token.
Please scour all the directories looking for a hook_token_values.
Comment #5
weekbeforenextI did a search in my sites>all>modules folder. The following modules contained hook_token_values:
FileField, Google Analytics, Pathauto, Rules, Token
Of those, the most recently added was Google Analytics. I still think it is weird that when I disable the Google Analytics module the problem persisted, the problem only occurred for Page nodes and when I reverted to an earlier release of Pathauto, the issue was resolved. Google Analytics doesn't seem to create a termpath-raw token either.
Any ideas?
Thanks.
Comment #6
dave reidComment #7
mably commented