Fixed
Project:
Metatag
Version:
2.2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2026 at 19:34 UTC
Updated:
29 Oct 2026 at 07:39 UTC
Jump to comment: Most recent
Updating metatag 2.2.0 → 2.2.3 will crash the site if drupal/token is not updated to the latest version.
In DefinitionErrorExceptionPass.php line 51:
Cannot autowire service "Drupal\metatag\Hook\TokenHooks": argument "$token_entity_mapper" of method "__construct()" references interface "Drupal\tok
en\TokenEntityMapperInterface" but no such service exists. You should maybe alias this interface to the existing "token.entity_mapper" service.
Update metatag while keeping token to 1.15.0
Update the composer.json (https://git.drupalcode.org/project/metatag/-/blob/2.2.x/composer.json?re...) to indicate the new minimum compatible version
Review
None
None
None
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bserem commentedComment #4
bserem commentedComment #6
damienmckennaThank you for reporting the bug and providing a possible fix.
I wonder if it would work with 8.x-1.16?
Comment #7
damienmckennaComment #8
damienmckennaI confirmed that 1.16 was not enough, it does in fact require 1.17.
Thank you!
Comment #10
damienmckennaCommitted. Thank you,
Comment #12
bserem commentedWow! Super fast response!
Thanks for the new release