Closed (duplicate)
Project:
Token
Version:
8.x-1.17
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2026 at 21:32 UTC
Updated:
9 Jan 2026 at 22:02 UTC
Jump to comment: Most recent
Just updated to 1.17 and am getting this when I try to save new content. The content saves.
"The website encountered an unexpected error. Try again later.
Error: Call to undefined function _token_field_label() in smart_trim_token_info_alter() (line 34 of modules/contrib/smart_trim/smart_trim.tokens.inc)."
I started with a few modules that needed updating. Token being one. Drupal 10.6.1 to 10.6.2 was also included in my
composer update
did a rollback
froze token to 1.16 in my composer.json
re-updated
tested creating content and saving. problem goes away.
there's also and issue just reported in smart_trim https://www.drupal.org/project/smart_trim/issues/3566575
Comments
Comment #2
berdirYes, this is a duplicate of that issue, as you can see by the caller.
Maybe shouldn't have deleted it, but it's already fixed in smart trim.