I can't get any node:menu-based tokens to work in my Pathauto replacement patterns. Other tokens, such as [current-user:name] or [node:language], work fine. But the token I am trying to use, a menu-based token, specifically [node:menu-link:parents:join:/] does not. I've tried a slew of the node:menu-link tokens, such as [node:menu-link:parent:url:path], and they're all being skipped.
When I bulk delete all Content aliases, then bulk update them, I do not get any error messages. The resulting aliases from my pattern [node:menu-link:parents:join:/]/[node:title] just ends up being the node title. git status
I've been banging my head against this for days, and in trying to fix it have:
- installed Token Tweaks and set the depth to 2
- run drush @test ev "token_clear_cache(); incessantly
- disabled Menu Firstchild, then when that didn't help...
- updated Menu Firstchild to the dev version and applied this patch
- applied this Token patch
- applied this core (!) patch
Now I'm running:
- Pathauto 7.x-1.2+21-dev
- Token 7.x-1.5+4-dev
- Token Tweaks 7.x-1.x-dev
- Menu Firstchild 7.x-1.1+1-dev
An additional detail: Going to node/[nid]/devel/token for any given page hangs for a while, then displays a blank screen. It produces three errors like this:
Notice: Undefined property: stdClass::$field_studio_location in addressfield_tokens() (line 219 of /var/www/html/test/sites/all/modules/contrib/addressfield/addressfield.tokens.inc).
This doesn't seem particularly serious, but maybe relevant.
Any ideas? Even pointers on how to debug would be great.