Closed (fixed)
Project:
Pathauto
Version:
7.x-1.0-rc2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2011 at 15:46 UTC
Updated:
13 Sep 2011 at 08:31 UTC
I've got the following pattern set up for URL aliases for my Page nodes:
[node:field-taxonomy-course:name]/[node:title]
The "Course" taxonomy field is not a required field, so Pages can be created without a term chosen.
If a term is not chosen, Drupal returns the following warning message when the node is saved (or updated):
User warning: Attempting to perform token replacement for token type term without required data in token_tokens() (line 791 of .../sites/all/modules/token/token.tokens.inc).
Perhaps I should be reporting this in the Token issue queue, but I guessed that this was triggered by a setting I'd made in Pathauto, and by the way Pathauto is asking Token for information...
Comments
Comment #1
huesator commentedSame error here.
After I installed the pathauto module with the default options, I get the same error creating any kind of node.
It works good, I mean, the path is the desired one, but it can confuse people who see the warning.
I decided to uninstall the module, but I still have the same error when I create a node, even after cron execution and cache flush...
Any ideas???
Comment #2
dave reidThis was an error message meant to be displayed during tests only - if you upgrade to Token 7.x-1.x-dev it should go away for you.
Comment #3
huesator commentedI upgraded the Token module and it is solved.
Thank you Dave!
Comment #5
Mark Nielsen commentedThanks, Dave, for this information. Much appreciated.