Metatag is not recognizing token.tree

Created on 20 June 2024, 8 days ago
Updated 25 June 2024, 3 days ago

The website encountered an unexpected error. Try again later.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "token.tree" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Drupal 10.2.7
Business Responsive Theme 3.0.5 by Zymphonies

Token is installed. By the way, Metatag donยดt install without token module...

Steps to reproduce:
Adminin > Structure > Content types > basic page
Create new field: Metatag.

๐Ÿ’ฌ Support request
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ทBrazil numerabilis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @numerabilis
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States DamienMcKenna NH, USA

    Thank you for reporting the bug, I'm sorry you've ran into this problem.

    What other contrib modules are installed? Are there any problems on the site reported on the system reports page (admin/reports/status)? What admin theme is being used?

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil numerabilis

    Admin theme is Claro 10.2.7
    Yes, there is something in Report status:

    Token types do not have any tokens defined
    $info['types']['block_content-layout_builder__layout']
    $info['types']['contact_message-layout_builder__layout']
    $info['types']['node-layout_builder__layout']

    Drupal Symfony Mailer Lite 1.0.6
    Layout Builder Block Decorator 1.0.x-dev (2024-Jan-24)
    Layout Builder Modal 8.x-1.2
    Mail System 8.x-4.4
    Metatag 2.0.0
    Mime Mail 8.x-1.0-alpha6
    Schema.org Metatag 3.0.1
    SMTP Authentication Support 8.x-1.2
    Token 8.x-1.14
    Token OR 2.2.0

    Themes

    Business Responsive Theme 3.0.5
    Tara - Modern Drupal 8, 9, 10 Theme 10.1.2

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States DamienMcKenna NH, USA

    Are you able to load the tokens on other admin pages?

    Have you tried Pathauto? It uses tokens to generate consistent URLs for different types of content, so might be able to tell if the problem is limited to Metatag.

    Do any of the other modules you've installed (besides Token and Token OR) add any tokens to the site? ie. do they have a MODULENAME.tokens.inc file?

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil numerabilis

    The site is running but I canยดt add METATAGS field in basic page structure.
    I added Pathauto as you said but nothing happend.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States DamienMcKenna NH, USA

    The "token.tree" route comes from the Token module. Something must be interfering with that route, which causes it to not work. Either which way, this is not a problem from Metatag, so I'm passing it to the Token issue queue, maybe someone here will have an idea what to look at.

Production build 0.69.0 2024