Closed (duplicate)
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 17:01 UTC
Updated:
30 May 2011 at 12:29 UTC
Using [node:field-trem:name] just doesn't work, it's interpreted in plain text.
If I use: [node:field-term] I have the following error:
Warning: Illegal offset type in _entity_token_get_token() (line 144 of (...)/sites/all/modules/entity/entity_token.tokens.inc).
Comments
Comment #1
Jerome F commentedMaybe because field tokens are not available yet?
http://drupal.org/node/691078
Comment #2
dave reidYour bug is with the entity module, not token module.
Comment #3
fago>Using [node:field-trem:name] just doesn't work, it's interpreted in plain text.
Of which field-type is "field-trem"?
Comment #4
Jerome F commentedIt's in Node > Destination city (Field field_deal_destination_city) which is a Term reference field in my content type.
Sorry I should have written [node:field-[term_reference_field_machine_name]:name]
Name [node:field-deal-destination-city:name] The name of the taxonomy term.Comment #5
Jerome F commentedComment #6
eileen commentedI'm getting the same error. It's driving me nuts.
Warning: Illegal offset type in _entity_token_get_token() (line 144 of (...) /sites/all/modules/entity/entity_token.tokens.inc).
How can I make it go away? (On a side note, I sure wish Drupal had a forum strictly for error messages and their solutions. Not weeks/years of comments and theories...just a forum strictly where ALL error messages are resolved.)
But I digress. Is there a known cure for this one?
Comment #7
mh86 commentedI'm having the same issue when loading terms from a panels context.
In my case, $wrapper->value() returns the full term object and that's why $options_list[$wrapper->value()] doesn't work.
Comment #8
sun-fire commentedI have the same error. Subscribe.
Comment #9
fagoplease try the patch in http://drupal.org/node/1155512#comment-4534394
Also, let's track this in the linked issue.