Incompatible with Drupal 9.5 and higher

Created on 23 December 2022, almost 2 years ago
Updated 17 January 2023, almost 2 years ago

Problem/Motivation

When trying to open page that uses CKEditor on Drupal 9.5 this error appears:

Error: Class 'Drupal\media\Plugin\CKEditorPlugin\DrupalMedia' not found in include() (line 19 of modules/contrib/media_library_ckeditor_replace/src/Plugin/CKEditorPlugin/DrupalMediaLibraryReplace.php).

Steps to reproduce

Install Drupal 9.5, install this module and ckeditor module (not ckeditor 5).

Proposed resolution

Class Drupal\media\Plugin\CKEditorPlugin\DrupalMedia doesn't exist anymore in media module, it was moved to ckeditor module Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia

So I guess a new version of the module is needed, that works with Drupal 9.5 and higher, so that the class location is correct. Or somehow conditionally extend this class here src/Plugin/CKEditorPlugin/DrupalMediaLibraryReplace.php

Also dependency to ckeditor module should be added.

Remaining tasks

Create a patch or MR

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

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

Comments & Activities

Not all content is available!

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

No activities found.

Production build 0.71.5 2024