Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In the latest Drupal core update, Drupal\ckeditor\CKEditorPluginBase::getModulePath has method updates which Drupal\token_filter\Plugin\CKEditorPlugin\TokenBrowser must implement.
The following error is received on any attempt to load Ckeditor with the Token Filter.
PHP Fatal error: Declaration of Drupal\token_filter\Plugin\CKEditorPlugin\TokenBrowser::getModulePath() must be compatible with Drupal\ckeditor\CKEditorPluginBase::getModulePath(string $module_name):
Steps to reproduce
Update Drupal to >= 9.2.6 and enabled Token Filter then attempt to load a page with CkEditor. You will encounter a fatal error.
Proposed resolution
Patch to follow
Comment | File | Size | Author |
---|---|---|---|
#2 | token_filter-ckeditor_fatal_error-3236440-2.patch | 1.37 KB | rickyoh |
Comments
Comment #2
rickyoh CreditAttribution: rickyoh at Black Antelope commentedPatch to resolve compatibility issue with extending
CKEditorPluginBase
Comment #3
mohit.bansal623 CreditAttribution: mohit.bansal623 as a volunteer and at Axelerant commented@rickyoh, Is there anything left in this issue? I can see the patch uploaded.
Comment #5
darvanenVery straight-forward, thank you for this.
Reviewed, committed and pushed, release on the way.
Comment #7
joseph.olstadthanks for this fix, noticed it also