Instance class "Drupal\token_filter\Plugin\CKEditorPlugin\TokenBrowser" does not exist

Created on 4 June 2024, 6 months ago
Updated 25 June 2024, 5 months ago

Problem/Motivation

After upgrading to 2.2.0, attempting to edit a text field or a text format that uses this filter throws the following error:
Drupal\Component\Plugin\Exception\PluginException: Plugin (tokenbrowser) instance class "Drupal\token_filter\Plugin\CKEditorPlugin\TokenBrowser" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /var/www/html/html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).

Steps to reproduce

Install latest 2.2.0 and try to edit a Text Format that uses this filter.
We are still using the CKEditor 4 module, if that makes a difference.

Proposed resolution

Reverting to 2.1.0 fixes this issue for us, so something has changed in the 2.2.0 release.

💬 Support request
Status

Fixed

Version

2.2

Component

Code

Created by

🇨🇦Canada darkodev

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

Comments & Activities

  • Issue created by @darkodev
  • 🇦🇺Australia darvanen Sydney, Australia

    Thanks for reporting this @darkodev. I’m in transit right now, I’ll look at this as soon as I can if someone else doesn’t get there first.

    We did update the JS dependencies and rebuild the script, and “it worked on my machine” 😅

    Really gotta get some more tests on this module.

    As it’s a plugin issue can I just double check that you’ve cleared your cache?

  • Status changed to Postponed: needs info 6 months ago
  • 🇦🇺Australia darvanen Sydney, Australia

    I found a moment to check this and followed these steps:

    • Open my D10 site that has the token_filter installed on the 'Advanced HTML' text filter
    • Checkout 2.2.0
    • Go to the text filter edit page
    • drush cr
    • Refresh the text filter edit page
    • Checkout 2.1.0
    • refresh the text filter edit page
    • drush cr
    • refresh the text filter edit page
    • Checkout 2.2.0
    • drush cr
    • Refresh the text filter edit page
    • Save the text filter
    • Go to an article edit page that uses the text filter
    • Save the article

    I didn't see any errors at any point.

    Can you provide steps to reproduce from a fresh Drupal install please?

  • Status changed to Closed: works as designed 6 months ago
  • 🇨🇦Canada darkodev

    Sorry for wasting your time. A cache clear right after a composer update on ^2.0 fixed the issue for me.

  • Status changed to Fixed 6 months ago
  • 🇦🇺Australia darvanen Sydney, Australia

    No worries mate, glad it's working for you :)

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024