Drupal\Component\Plugin\Exception\PluginNotFoundException: The "block.settings.<block_name>" plugin does not exist

Created on 23 July 2024, 5 months ago

Problem/Motivation

After updating to Drupal 10.3, translating a block plugin using the form results in an error, regardless of whether config translation is enabled.

Steps to reproduce

  1. Create a block plugin with a label or any translatable field (see documentation β†’ for example) or use a core block like the "Powered by Drupal" block.
  2. Place the block on a source layout.
  3. Edit the layout in a different language.
  4. Use the contextual link to attempt to translate the block.

The off-canvas dialog will not open, and the PluginNotFoundException will appear in the logs.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "block.settings.block_name" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: ... in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Proposed resolution

A possible fix is to set the TypedDataManager to use the TypedConfigManager to ensure it's being used for typed data operations.

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States millerrs

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024