PHP error with Drupal 10.5.1 Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist.

Created on 27 June 2025, 6 days ago

Problem/Motivation

When using this module I get the error below

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\media_contextual_crop\MediaContextualCropPluginManager are: focal_point, image_widget_crop in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

I have installed the following modules on a clean install of Drupal 10.5.1

  • Drupal - 10.5.1
  • Media Contextual Crop API - 2.1.5
  • Media Contextual Crop Reference - 2.0.7
  • Media Contextual Focal Point Adapter - 2.0.2
  • Media Contextual ImageWidgetCrop Adapter - 2.0.3
  • Media Library Media Modify - 2.0.0-beta1
  • Crop API - 8.x-2.4
  • Focal Point - 2.1.2
  • Image Widget Crop - 8.x-2.4

Steps to reproduce

I created a Image media entity that uses focal point and displays the image style using focal point crop. I made a content type called page that uses Media with contextual modifications field to reference my image media

When I insert the media into the field and change the focal point and save the node. I do not see the image style with the focal point set. In the database the field_media_overwritten_property_map field is empty "[]". When I go back in and edit the media again and change the alt text and save the node that is when I get the error on node view. In the database the property map field has these values. "{"field_media_image":[{"alt":"new alt text"}]}". But has no information about the focal point change.

I have downgraded to Drupal 10.4.8 and it works where the information in the mapping field shows "{"path":[{"alias":"","pid":null}],"field_media_image":[{"alt":"Cat with green background TEST","focal_point":"99,0"}]}" so It seems that the Drupal core is the issue.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada erichomanchuk

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

Comments & Activities

  • Issue created by @erichomanchuk
  • 🇫🇷France DrDam

    I'll just made a test on a fresh install with last versions ( only focal point) :

    PHP : 8.2.0
    Mysql : 8.0.35
    Drupal - 10.5.1
    Media Contextual Crop API - 2.1.6
    Media Contextual Crop Reference - 2.0.7
    Media Contextual Focal Point Adapter - 2.0.2

    Media Library Media Modify - 2.0.0-beta1
    Crop API - 8.x-2.4
    Focal Point - 2.1.2

    It works for me.

Production build 0.71.5 2024