Fatal error after installing Tool API on drupal/core:^10.3

Created on 17 November 2025, 3 months ago
Updated 20 November 2025, 3 months ago

Problem/Motivation

The module's .info.yml file says it's compatible with drupal/core:^10.3 but in my testing this is not true. The code in \Drupal\tool\Normalizer\ContextDefinitionNormalizer, and \Drupal\tool\Normalizer\MapDefinitionNormalizer uses use Drupal\serialization\Normalizer\SchematicNormalizerTrait which doesn't exist in Drupal 10.x. See ✨ Introduce "schematic" normalizers Active .

Steps to reproduce

  1. Download the module into a Drupal ^10.3 site
  2. Install tools module
  3. Navigate to any page on your site and get a PHP fatal error:

( ! ) Fatal error: Trait "Drupal\serialization\Normalizer\SchematicNormalizerTrait" not found in /var/www/html/web/modules/contrib/tool/src/Normalizer/ContextDefinitionNormalizer.php on line 27

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States eojthebrave Minneapolis, MN

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024