After drupal core upgraded from 8 to 9 faced issue like deprecation template must contain the "%alias_id%" placeholder at Alias.php

Created on 3 January 2024, over 1 year ago

Problem/Motivation

System Requirement
OS : Windows 10
PHP Version: 7.4.24
Apache Version: 2.4.49

Upgraded Drupal version from 8.9.19 to 9.5.11 and ended up with a deprecation template that must contain the "%alias_id%" placeholder issue after the core update is completed.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

💬 Support request
Status

Active

Version

9.5

Component
Other 

Last updated about 6 hours ago

Created by

🇮🇳India muthukris

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

Comments & Activities

  • Issue created by @muthukris
  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Can you provide the error message in full or a stack trace, thanks

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Something is reading a module from `core/modules/js...` that has a services.yml

    Guessing its jsonapi

    Can you check the file matches https://git.drupalcode.org/project/drupal/-/blob/9.5.x/core/modules/json...

  • 🇮🇳India muthukris

    Thanks for the quick turnaround @larowlan. Let me check and update.

  • 🇮🇳India muthukris

    Yes, there is a difference in the jsonapi.services.yml file when I compare it with my local.

    The below lines are missing in the services.yml file.

    alias: serializer.normalizer.fieldable_entity.jsonapi
    deprecated: The "%service_id%" service is deprecated. You should use the 'serializer.normalizer.fieldable_entity.jsonapi' service instead.
    serializer.normalizer.fieldable_entity.jsonapi:
    class: Drupal\jsonapi\Normalizer\FieldableEntityDenormalizer

    After applying this code , introduce new error like below.

    FieldStorageConfigStorage.php line 167:

    Unable to determine class for field type 'viewsreference' found in the 'field.storage.paragraph.field_view' configuration

    In DiscoveryTrait.php line 53:

    The "viewsreference" plugin does not exist. Valid plugin IDs for Drupal\Core\Field\FieldTypePluginManager are: app_callback_url, comment, datetime, entity_reference_re
    visions, file, file_uri, file_link, fontawesome_icon, image, link, list_float, list_integer, list_string, path, text, text_long, text_with_summary, boolean, changed, c
    reated, decimal, email, entity_reference, float, integer, language, map, password, string, string_long, timestamp, uri, uuid

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Is that provided by a contrib module?

  • 🇮🇳India muthukris

    Apologies for the late response. Yes, it is provided by contrib module.

  • Status changed to Closed: works as designed 1 day ago
  • 🇳🇿New Zealand quietone

    The last comment isolated the problem to a contrib module. So this is resolved.

Production build 0.71.5 2024