Closed (duplicate)
Project:
Entity API
Version:
7.x-1.0-rc3
Component:
Entity tokens
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2012 at 05:00 UTC
Updated:
6 Jun 2012 at 00:59 UTC
I am trying to create a custom formatter for a date field in my content type called "field_time" with an underscore. The date format for this field is ISO format. The Entity Token module shows me a token replacement called
[node:field-time:?]
I created a replacement token for my custom formatter as follows
<p>[node:field-time:value:custom:Y]</p>
<p>[node:field-time:value:custom:D]</p>
<p>[node:field-time:value:custom:j]</p>
<p>[node:field-time:value:custom:M]</p>
However, when I try to test it I get the following error
Fatal error: Call to a member function value() on a non-object in .........\Sites\mysitename\sites\all\modules\entity\entity_token.tokens.inc on line 297
I am using the following versions
DATE: 7.x-2.5
ENTITY API and ENTITY TOKEN: 7.x-1.0-rc3
TOKEN: 7.x-1.1
Custom Formatters: 7.x-2.0
Comments
Comment #1
bforchhammer commentedSee #1618200: Fix date tokens for multiple values (fatal php error).
Comment #2
matmasr commentedbforchhammer Thank you for articulating the bug better than I could ever do ... I will be waiting to see how this get fixed.