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

dave reid’s picture

Category: bug » support

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

weekbeforenext’s picture

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?

weekbeforenext’s picture

Category: support » bug

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.

greggles’s picture

Category: bug » support
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.

weekbeforenext’s picture

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.

dave reid’s picture

Priority: Major » Normal
mably’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.