Download & Extend

"Array" prints in URL alias instead of the token value

Project:Pathauto
Version:6.x-1.5
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

Category:bug report» support request

That likely means you recently enabled a module that provides a token that uses the same namespace as term-raw.

#2

I 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?

#3

Category:support request» bug report

I 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.

#4

Category:bug report» support request
Status:active» fixed

There 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.

#5

Status:fixed» active

I 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.

#6

Priority:major» normal
nobody click here