Hi,

I have created a date field. I am using that date field in Display Suite token field "since ago" format. I got the below issue.

Error: Call to a member function getTimestamp() on null in field_tokens() (line 1684 of /var/www/html/navitasdev/modules/contrib/token/token.tokens.inc) #0 [internal function]: field_tokens('field_checked_o...', Array, Array, Array, Object(Drupal\Core\Render\BubbleableMetadata))

I have created patch for this. please review.

Comments

saranya ashokkumar’s picture

StatusFileSize
new823 bytes
praveenneelu’s picture

Thanks Saranya. This patch is helpful for me.

punamshelke’s picture

Status: Needs review » Reviewed & tested by the community

Thanks Saranya,

This issue is not getting logged in "Recent Log Message", we have to check error.log then only I found issue and applied your patch its working fine..

sonfd’s picture

Patch #2 also working for me. Also, I was seeing the issue in my dblog when using the bulk generate form.

berdir’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

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