Hi,
I've got token on my test site, and when I went to the devel tab on my page, I got the error:
Notice: Undefined variable: args in token_tokens() (line 681 of /srv/www/ozses.net/public_html/d7/sites/all/modules/token/token.tokens.inc).
Hi,
I've got token on my test site, and when I went to the devel tab on my page, I got the error:
Notice: Undefined variable: args in token_tokens() (line 681 of /srv/www/ozses.net/public_html/d7/sites/all/modules/token/token.tokens.inc).
Comments
Comment #1
davmorr commentedI changed the title to be a bit more indicative of the issue.
I also got this error on the node Devel tab -> Tokens sub-tab. I believe that this is being caused by a mistake in the the variable naming on line 681 of the token.tokens.inc file.
Currently, it reads:
I believe that the $args variable should actually be $value, which is set on the previous line:
The arg() drupal function expects a path string as it's optional second argument. The $value variable is set to a path string value on the previous line - 680:
Changing this does fix the error, but a maintainer needs to confirm whether this assumption is correct or not.
Comment #2
dave reidThis has already been fixed with 7.x-1.x-dev.