Problem/Motivation

We noticed the following error in logs. Token version is 8.x-1.13 and Hook entity dispatcher is 4.0.0-rc1.

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::get() in _field_tokens() (line 1790 of /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/token/token.tokens.inc) 

The error seems to happen during cron runs with Ultimate cron.

Here is the completely stacktrace

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::get() in _field_tokens() (line 1790 of /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/token/token.tokens.inc)

#0 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/token/token.tokens.inc(504): _field_tokens()
#1 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(52): token_tokens()
#2 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}()
#3 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(67): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#4 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(59): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith()
#5 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Utility/Token.php(364): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll()
#6 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/token/token.tokens.inc(1095): Drupal\Core\Utility\Token->generate()
#7 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(52): token_tokens()
#8 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}()
#9 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(67): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#10 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(59): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith()
#11 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Utility/Token.php(364): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll()
#12 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Utility/Token.php(241): Drupal\Core\Utility\Token->generate()
#13 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Utility/Token.php(191): Drupal\Core\Utility\Token->doReplace()
#14 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/token_or/src/Token.php(18): Drupal\Core\Utility\Token->replace()
#15 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/pathauto/src/PathautoGenerator.php(239): Drupal\token_or\Token->replace()
#16 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/pathauto/src/PathautoGenerator.php(519): Drupal\pathauto\PathautoGenerator->createEntityAlias()
#17 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/pathauto/pathauto.module(93): Drupal\pathauto\PathautoGenerator->updateEntityAlias()
#18 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(52): pathauto_entity_update()
#19 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}()
#20 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(67): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
#21 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandler.php(59): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith()
#22 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(217): Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll()
#23 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(900): Drupal\Core\Entity\EntityStorageBase->invokeHook()
#24 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(564): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook()
#25 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave()
#26 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(489): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave()
#27 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save()
#28 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/modules/media/src/MediaStorage.php(29): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()
#29 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\media\MediaStorage->save()
#30 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/modules/media/src/Plugin/QueueWorker/ThumbnailDownloader.php(64): Drupal\Core\Entity\EntityBase->save()
#31 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Cron.php(268): Drupal\media\Plugin\QueueWorker\ThumbnailDownloader->processItem()
#32 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/core/lib/Drupal/Core/Cron.php(233): Drupal\Core\Cron->processQueue()
#33 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/ultimate_cron/src/UltimateCron.php(69): Drupal\Core\Cron->processQueues()
#34 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/web/modules/contrib/ultimate_cron/src/ProxyClass/UltimateCron.php(70): Drupal\ultimate_cron\UltimateCron->run()
#35 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/drush/drush/src/Commands/core/DrupalCommands.php(63): Drupal\ultimate_cron\ProxyClass\UltimateCron->run()
#36 [internal function]: Drush\Commands\core\DrupalCommands->cron()
#37 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#38 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#39 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#40 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
#41 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#42 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run()
#43 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand()
#44 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun()
#45 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#46 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#47 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#48 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/drush/drush/drush(4): require('/var/www/html/b...')
#49 /var/www/html/builds/2024-01-12.09-23-59.commit--fafd87874/vendor/bin/drush(117): include('/var/www/html/b...')
#50 {main}


Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

HeikkiY created an issue. See original summary.

samir_shukla’s picture

Hi, I am unable to produce the error. I installed the modules and run all the crons. Do i have to run any particular cron?

heikkiy’s picture

I checked our staging and we seem to be still getting this error during cron run. We will try to debug this a bit more to understood where this error is coming from.

It might be that this issue should be moved to Token module issue queue because the error is coming from web/modules/contrib/token/token.tokens.inc.

Also notable is that we are using Drupal core 10.2.1. I don't think we seen this error in our production environment with Drupal core 10.1.x.

Here is our composer.json

{
    "name": "drupal/recommended-project",
    "description": "Composer project.",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "drupal/config_notify",
                "version": "dev-3286667-automated-drupal-10",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/config_notify-3286667.git",
                    "reference": "3286667-automated-drupal-10"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "drupal/system_status",
                "version": "dev-3299281-automated-drupal-10",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/system_status-3299281.git",
                    "reference": "3299281-automated-drupal-10"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "drupal/better_field_descriptions",
                "version": "dev-3296624-automated-drupal-10",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/better_field_descriptions-3296624",
                    "reference": "3296624-automated-drupal-10"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "drupal/conflict",
                "version": "dev-3286695-automated-drupal-10",
                "type": "drupal-module",
                "source": {
                    "type": "git",
                    "url": "https://git.drupalcode.org/issue/conflict-3286695.git",
                    "reference": "3286695-automated-drupal-10"
                }
            }
        },
        {
            "type": "git",
            "url": "https://git.drupalcode.org/issue/file_download-3297221.git"
        },
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],
    "require": {
        "composer/installers": "^1.2",
        "cweagans/composer-patches": "^1.7",
        "drupal/address": "^2.0@beta",
        "drupal/admin_toolbar": "^3.0",
        "drupal/adv_varnish": "^4.0",
        "drupal/allowed_formats": "^2.0 || ^3.0",
        "drupal/better_exposed_filters": "^6.0",
        "drupal/better_field_descriptions": "dev-3296624-automated-drupal-10",
        "drupal/ckeditor": "^1.0",
        "drupal/color_field": "^3.0",
        "drupal/components": "^3.0",
        "drupal/composer_deploy": "^1.7",
        "drupal/conditional_fields": "^4.0@alpha",
        "drupal/config_filter": "^2.2",
        "drupal/config_notify": "dev-3286667-automated-drupal-10",
        "drupal/config_split": "^2.0",
        "drupal/conflict": "dev-3286695-automated-drupal-10",
        "drupal/content_lock": "^2.3",
        "drupal/content_translation_redirect": "^2.0",
        "drupal/cookie_content_blocker": "^2.1",
        "drupal/cookieinformation": "^2.0",
        "drupal/core-composer-scaffold": "^10",
        "drupal/core-project-message": "^10",
        "drupal/core-recommended": "^10",
        "drupal/core-vendor-hardening": "~9.3.0",
        "drupal/ctools": "^4.0",
        "drupal/datetimehideseconds": "^1.2",
        "drupal/decorative_image_widget": "^1.0@alpha",
        "drupal/ds": "^3.17",
        "drupal/easy_breadcrumb": "^2.0",
        "drupal/elb": "^2.0",
        "drupal/entity_browser": "^2.5",
        "drupal/entity_reference_display": "^2.0",
        "drupal/entity_usage": "^2.0@beta",
        "drupal/environment_indicator": "^4.0",
        "drupal/extlink": "^1.6",
        "drupal/feeds": "^3.0",
        "drupal/feeds_ex": "^1.0@beta",
        "drupal/feeds_tamper": "^2.0@beta",
        "drupal/field_defaults": "^2.0",
        "drupal/field_group": "^3.1",
        "drupal/fieldhelptext": "^1.0",
        "drupal/file_download": "dev-3297221-automated-drupal-10",
        "drupal/focal_point": "2.x-dev#fa5774b811785bb3e10cdbbcf9b620099f3e95ca",
        "drupal/gin": "^3.0",
        "drupal/google_tag": "^1.4",
        "drupal/honeypot": "^2.0",
        "drupal/hook_event_dispatcher": "^4.0",
        "drupal/icon_select": "^3.0",
        "drupal/iframe": "^2.5",
        "drupal/image_style_warmer": "^1.1",
        "drupal/jquery_ui_accordion": "^2.0",
        "drupal/jquery_ui_touch_punch": "^1.0",
        "drupal/json_field": "^1.0@RC",
        "drupal/linkit": "^6.1",
        "drupal/maxlength": "^2.0@RC",
        "drupal/media_download": "^1.2",
        "drupal/media_duplicates": "^2.0",
        "drupal/menu_multilingual": "^1.0@alpha",
        "drupal/menu_trail_by_path": "^2.0",
        "drupal/metatag": "^1.13",
        "drupal/migrate_plus": "^6.0",
        "drupal/migrate_skip_on_404": "^1.0",
        "drupal/node_revision_delete": "^1.0",
        "drupal/node_title_validation": "^2.0",
        "drupal/oembed_providers": "^2.1",
        "drupal/open_readspeaker": "^1.10",
        "drupal/openid_connect": "^3.0@alpha",
        "drupal/override_node_options": "^2.7",
        "drupal/paragraph_view_mode": "^2.0",
        "drupal/paragraphs": "^1.14",
        "drupal/paragraphs_admin": "^1.1",
        "drupal/paragraphs_asymmetric_translation_widgets": "^1.0@beta",
        "drupal/paragraphs_features": "^2.0",
        "drupal/pathauto": "^1.6",
        "drupal/piwik_pro": "^1.0",
        "drupal/preprocess": "^2.0",
        "drupal/quick_node_clone": "^1.15",
        "drupal/quicklink": "^2.0",
        "drupal/rabbit_hole": "^1.0@beta",
        "drupal/redirect": "^1.5",
        "drupal/responsive_tables_filter": "^1.9",
        "drupal/robotstxt": "^1.5",
        "drupal/save_edit": "^1.3",
        "drupal/scheduler": "^1.1",
        "drupal/schema_metatag": "^2.2",
        "drupal/search_api": "^1.31",
        "drupal/search_api_autocomplete": "^1.8",
        "drupal/search_api_exclude_entity": "^2.0",
        "drupal/search_api_solr": "^4.3",
        "drupal/select2": "^1.13",
        "drupal/simple_sitemap": "^4.1",
        "drupal/site_alert": "^1.0",
        "drupal/slack": "^1.4",
        "drupal/smart_date": "^3.5",
        "drupal/smart_trim": "^2.1",
        "drupal/social_media": "^2.0",
        "drupal/social_media_links": "^2.8",
        "drupal/stage_file_proxy": "^2.0",
        "drupal/structure_sync": "^2.0",
        "drupal/system_status": "dev-3299281-automated-drupal-10",
        "drupal/telephone_validation": "^2.3",
        "drupal/toc_js": "^2.0",
        "drupal/token": "^1.13",
        "drupal/token_or": "^2.1",
        "drupal/translatable_menu_link_uri": "^2.0",
        "drupal/twig_tweak": "^3.2",
        "drupal/ui_patterns": "^1.2",
        "drupal/ui_patterns_field_formatters": "^2.0",
        "drupal/ui_patterns_settings": "^2.0",
        "drupal/ultimate_cron": "^2.0@alpha",
        "drupal/username_enumeration_prevention": "^1.1",
        "drupal/view_unpublished": "^1.0",
        "drupal/views_contextual_filters_or": "^1.4",
        "drupal/viewsreference": "^2.0",
        "drupal/webform": "^6.2@beta",
        "drupal/yoast_seo": "^1.8",
        "drush/drush": "^12",
        "emulsify-ds/emulsify-drupal": "^4.5",
        "mnater/hyphenopoly": "5.2.1",
        "npm-asset/select2": "^4.0",
        "oomphinc/composer-installers-extender": "^2.0",
        "wikimedia/composer-merge-plugin": "^2.0"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "alpha",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "platform": {
            "php": "8.1"
        },
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "composer/installers": true,
            "cweagans/composer-patches": true,
            "drupal/console-extend-plugin": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "drupal/core-vendor-hardening": true,
            "oomphinc/composer-installers-extender": true,
            "wikimedia/composer-merge-plugin": true,
            "phpstan/extension-installer": true,
            "php-http/discovery": true
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "web/"
            },
            "file-mapping": {
                "[web-root]/robots.txt": {
                    "mode": "skip"
                },
                "[web-root]/web.config": {
                    "mode": "skip"
                },
                "[web-root]/sites/default/settings.php": {
                    "mode": "replace",
                    "path": "assets/settings/default/settings.php"
                },
                "[web-root]/sites/development.services.yml": {
                    "mode": "skip"
                }
            }
        },
        "enable-patching": true,
        "composer-exit-on-patch-failure": true,
        "patchLevel": {
            "drupal/core": "-p2"
        },
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
        "drupal-core-project-message": {
            "include-keys": [
                "homepage",
                "support"
            ],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",
                "  * Install the site: https://www.drupal.org/docs/8/install",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        },
        "patches": {
            "drupal/core": {
                "#1766338 Incorrect filter group OR behavior, LEFT JOIN changed to INNER JOIN": "https://www.drupal.org/files/issues/2019-10-08/1766338-106.patch",
                "#2313309 Admin toolbar and contextual links should always be rendered in the admin language (if set)": "https://www.drupal.org/files/issues/2023-12-19/2313309-179.patch",
                "#2321071 BaseFieldOverride fails to take into account ContentEntityInterface": "https://www.drupal.org/files/issues/2023-11-02/2321071-71.patch",
                "#2761273 Make exposed filter values available as tokens for text areas": "https://www.drupal.org/files/issues/2022-10-30/2761273-50.patch",
                "#2819908 Any views argument after a missing one is silently ignored (D8)": "https://www.drupal.org/files/issues/2019-08-13/2819908-14.patch",
                "#2863629 Plural translation: Undefined offset": "https://www.drupal.org/files/issues/2018-06-29/notice_undefined-2863629-11.patch",
                "#2913497 ExposedFormCache invalid logic": "https://www.drupal.org/files/issues/exposedformcache-2913497-3.patch",
                "#2918784 Views RSS row plugin incorrectly assumes links are relative": "https://www.drupal.org/files/issues/2021-07-01/2918784_42.patch",
                "#2940605 Can only intentionally re-render an entity with references 20 times.": "assets/patches/2940605--core--rerender-entity-multiple-times.patch",
                "#2993688 Views relationships with multi-valued entity reference fields invalidate Distinct query option": "https://www.drupal.org/files/issues/2022-06-16/2993688-99.patch",
                "#3025542 Support optgroups for taxonomy selection list in Views": "https://www.drupal.org/files/issues/2021-12-01/core-3025542-8.9.x-support_optgroups_taxonomy_select_views_list_filter.patch",
                "#3054641 Local tasks should honor selected admin interface language (if set)": "https://www.drupal.org/files/issues/2023-07-19/3054641-77.patch",
                "#3101344 Fix issues with paths when creating new translations for 9.3.x": "https://www.drupal.org/files/issues/2021-11-15/drupal-path-error-when-not-visible-3101344-81-D9.patch",
                "#3114467 'Negate' form value for condition plugins should be cast to boolean in validation": "https://www.drupal.org/files/issues/2023-11-06/3114467-30.patch",
                "#3087608 Tabledrag is resetting the region value if items are nested": "https://www.drupal.org/files/issues/2019-10-12/table-region-reset-3087608-4.patch",
                "#3089151 TableDrag JS :first-of-type issues": "assets/patches/3089151--core--table-drag-first-of-type.patch",
                "#2557469 Route validation does not preserve request method, defaults to GET": "https://www.drupal.org/files/issues/2021-12-22/preserve_request-2557469-30.patch",
                "#3114824 Add multilingual support for caching basefield definitions": "https://www.drupal.org/files/issues/2022-02-27/3114824-9.patch",
                "#3221375 Wrong language field labels after `drush cr` because of Drush language negotiation": "https://www.drupal.org/files/issues/2023-02-07/3221375-35.patch",
                "#3027240 Undefined index: #parents FormState.php": "https://www.drupal.org/files/issues/2022-09-05/3027240-57.patch",
                "#3340973 Media Library: Argument #1 ($array) must be of type array, null given in array_filter().": "https://www.drupal.org/files/issues/2023-02-10/fix_media_library_php_error-3340973-2.patch",
                "#3075230 Provide menu link with disable option [Node Add Form]": "https://www.drupal.org/files/issues/2023-09-26/provide-menu-link-with-disable-option-3075230-56.patch",
                "#2466553 Untranslated menu items are displayed in menus": "https://www.drupal.org/files/issues/2023-12-19/2466553-171.patch",
                "#2913303 Multiple Views exposed forms in the same page": "assets/patches/2913303--core--multiple-exposed-forms.patch"
            },
            "drupal/better_exposed_filters": {
                "#3282228 Add option to hide exposed field labels": "https://www.drupal.org/files/issues/2022-09-08/bef-visually_hidden.3282228.8.patch"
            },
            "drupal/admin_toolbar": {
                "#3338408 Resolve access check errors for D10 compatibility": "https://www.drupal.org/files/issues/2023-05-30/3338408-fix-access-check-error.patch"
            },
            "drupal/components": {
                "#3107993 Template is not defined error on admin pages when using administration theme": "assets/patches/3107993--components--template-not-defined.patch"
            },
            "drupal/config_filter": {
                "#3286655 Automated Drupal 10 compatibility fixes": "https://www.drupal.org/files/issues/2022-07-22/config_filter.2.x-dev.rector.patch"
            },
            "drupal/content_lock": {
                "#2951652 Redirect response when executing migrate-rollback on console or mass deletion with views bulk operation": "https://www.drupal.org/files/issues/2022-11-28/content_lock-2951652-22.patch",
                "#3307402 Content Lock should typehint ModuleHandler interface rather than a specific implementation": "assets/patches/3307402--content-lock--hook-dispatch-event-error.patch"
            },
            "drupal/cookie_content_blocker": {
                "#3194933 Big pipe integration ": "assets/patches/3194933--cookie-content-blocker--big-pipe-integration.patch"
            },
            "drupal/ds": {
                "#3414906 Cannot use object of type DrupalCoreRenderMarkup as array in ds_theme_suggestions_alter()": "https://www.drupal.org/files/issues/2024-01-16/3414906-10.patch"
            },
            "drupal/feeds": {
                "#3080098 Delete Empty Files Created If Empty/Error Exception is Returned": "https://www.drupal.org/files/issues/2022-03-21/delete-empty-error-file_3080098_6.patch",
                "#3390530 Error: Call to a member function unlink() on null": "https://www.drupal.org/files/issues/2023-09-29/feeds-3390530.patch"
            },
            "drupal/field_group": {
                "#2969051 HTML5 Validation Prevents Submission in Tabs": "https://www.drupal.org/files/issues/2023-04-24/2969051-99.patch",
                "3166855 Critical error in theme suggestions when printing an empty nested paragraph.": "https://www.drupal.org/files/issues/2022-05-24/field_group-critical-error-in-theme-suggestions-when-printing-an-empty-nested-paragraph-3166855-5_0.patch"
            },
            "drupal/linkit": {
                "#2886455: Add support for multilanguage": "https://www.drupal.org/files/issues/2023-10-17/2886455-73-linkit-6.1.2-multilingual.patch"
            },
            "drupal/node_revision_delete": {
                "#3118464 Add support for Maximum number allowed revisions per content node translation": "https://www.drupal.org/files/issues/2023-12-07/node_revision_delete-per_translation-3118464-45.patch"
            },
            "drupal/openid_connect": {
                "#3365465: Several warning and deprecated functions for PHP > 8.0": "https://www.drupal.org/files/issues/2023-06-15/openid_connect_improved_error_handling_3365465.patch",
                "3383036 Redirect URI has the language prefix": "https://www.drupal.org/files/issues/2023-10-13/openid_connect_lang_fix.patch",
                "#3375886 Warning: Undefined array key iss_allowed_domains": "assets/patches/3375886--openid_connect--undefined-array-key-iss_allowed_domains.patch"
            },
            "drupal/paragraphs": {
                "#2904705: Support asymmetric translation in experimental widget": "https://www.drupal.org/files/issues/2020-11-27/paragraphs_support_asym_translations-2904705-122.patch",
                "#3027525 Show the paragraph and field label of fields that fail validation": "https://www.drupal.org/files/issues/2023-04-27/3027525_17.patch"
            },
            "drupal/path_guard": {
                "#3192503 Invalid translation language (en) specified": "https://www.drupal.org/files/issues/2021-01-13/3192503-2.patch",
                "#3289026 Automated Drupal 10 compatibility fixes": "https://www.drupal.org/files/issues/2022-08-22/path_guard.1.x-dev.rector.patch"
            },
            "drupal/preprocess": {
                "#3165828 Add a weight to the processors, so we can sort when they're being executed": "https://www.drupal.org/files/issues/2021-09-23/3165828_03.patch"
            },
            "drupal/quick_node_clone": {
                "#3183249 Nested paragraph support": "https://www.drupal.org/files/issues/2023-01-31/quick_node_clone-nested-paragraphs-support-3183249-14.patch"

            },
            "drupal/select2": {
                "#3327053 Select2 dropdown broken style with gin theme": "https://www.drupal.org/files/issues/2022-12-14/3327053-2.patch",
                "#3353591: Select2 dropdown overlaps Gin menu when open": "https://www.drupal.org/files/issues/2023-04-19/style-zindex-fix-for-select2.patch",
                "#3271205 Removing selected option sometimes needs multiple clicks": "https://www.drupal.org/files/issues/2022-04-20/select2-check-indexes-3271205-8.patch"
            },
            "drupal/structure_sync": {
                "#2960436: Support for translations of taxonomy terms": "https://www.drupal.org/files/issues/2021-02-12/structure_sync-term_translations-2960436-9.patch",
                "#3032480: Entity IDs inconsistent across exports and imports": "https://www.drupal.org/files/issues/2019-11-20/structure-sync-taxonomy-id-not-preserved-3032480-9.patch"
            },
            "drupal/icon_select": {
                "#3173774: Icon select widget broken with Claro": "https://www.drupal.org/files/issues/2021-02-16/3173774-6-claro-styles.patch"
            },
            "drupal/toc_js": {
                "#3293602: For readability the TOC title should have a h2 tag instead of a div tag": "https://www.drupal.org/files/issues/2022-12-15/toc_js-make_title_tag_configurable-3293602-2.patch",
                "#3388836: Increase the #maxlength of the Selector and container elements ": "https://www.drupal.org/files/issues/2023-09-21/toc-338883-increase-textfield-limit-4.diff"
            },
            "drupal/pathauto": {
                "#3016532 Pathauto token for node menu hierarchy not working after updating parent node": "https://www.drupal.org/files/issues/2021-01-14/pathauto-update_child_aliases-3016532-16.patch"
            },
            "drupal/token": {
                "#3281871 Token generation of entity references are not respecting the given langcode": "https://www.drupal.org/files/issues/2023-11-09/3281871_token_entity_references_langcode.patch"
            },
            "drupal/ui_patterns": {
                "#3357835 Twig error when using a pattern in an admin theme and wrapping a rendered entity in a pattern": "https://www.drupal.org/files/issues/2023-06-27/ui_patterns-preview-pattern-from-other-theme-3357835-7.patch"
            }
        },
        "merge-plugin": {
            "include": [
                "web/modules/contrib/webform/composer.libraries.json",
                "composer.libraries.json"
            ]
        }
    },
    "require-dev": {
        "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
        "drupal/coder": "^8.3",
        "drupal/core-dev": "^10",
        "drupal/devel": "^5.1",
        "drupal/twig_xdebug": "^1.2",
        "phpspec/prophecy-phpunit": "^2"
    }
}
heikkiy’s picture

Status: Active » Closed (works as designed)

We debugged this more and it seems to be related to this Token patch we are using:

"drupal/token": {
   "#3281871 Token generation of entity references are not respecting the given langcode": "https://www.drupal.org/files/issues/2023-11-09/3281871_token_entity_references_langcode.patch"
},

I will close this ticket and continue the discussion there.