After updating to beta3, I'm getting this error:

User warning: Attempting to perform token replacement for token type content-type without required data in token_tokens() (line 791 of /var/www/at/sites/all/modules/token/token.tokens.inc).

I have a view attached to a node using EVA and the entity populates the view arguments with tokens. The content type token to be precise. This worked before (and actually still works), but now an error is being thrown. I'm not sure if this should be fixed here or by EVA.

I've searched where the code throwing the error came from, this is the actual commit: http://drupalcode.org/project/token.git/commit/e838089
And the corresponding issue: #1164030: URL tokens need 'path' data, not 'url' data

If you need any more info, I'm happy to provide it. Thanks

Files: 
CommentFileSizeAuthor
#3 1233746-mute-token-type-mismatch-warning.patch1.03 KBDave Reid
PASSED: [[SimpleTest]]: [MySQL] 245 pass(es).
[ View ]

Comments

Dave Reid’s picture

Status:Active» Postponed (maintainer needs more info)

I'm unable to duplicate this with just Token module.

Dave Reid’s picture

Title:trigger_error warning in new release.» Error triggered about mismatched token data types is too aggressive
Assigned:Unassigned» Dave Reid
Status:Postponed (maintainer needs more info)» Active

I guess our warning when this happens is too aggressive and should not show during normal operations since it's ok for a token to return nothing. We should only show this warning when tests are running.

Dave Reid’s picture

Status:Active» Needs review
StatusFileSize
new1.03 KB
PASSED: [[SimpleTest]]: [MySQL] 245 pass(es).
[ View ]
a.ross’s picture

Status:Needs review» Reviewed & tested by the community

Heh, that's fast :)

The error disappears with the patch, thanks.

Dave Reid’s picture

Status:Reviewed & tested by the community» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Elijah Lynn’s picture