Drupal\Component\Plugin\Exception\PluginNotFoundException: The "tag" plugin does not exist.

Created on 17 January 2016, almost 9 years ago
Updated 17 July 2024, 4 months ago

After login as admin, I try to navigate to admin/content I get "The website encountered an unexpected error. Please try again later."

Review of the error logs reveals:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "tag" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 57 of /path/to/public_html/foo.com/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Please advise how I might track down the cause of this error.

πŸ› Bug report
Status

Fixed

Version

10.1 ✨

Component
PluginΒ  β†’

Last updated about 12 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States schuster211

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.

  • πŸ‡©πŸ‡ͺGermany johnnny83

    Similar for me, after a server upgrade the core/modules/views/src/Plugin/views/cache was missing, so I just rebuilt core

  • Hi,
    trying to get an old website up to speed that is still drupal 9 and I wanted to first update to the latest 9.x release (9.5.11).

    However I get the tag-plugin-not-found error:

    Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "The "tag" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: " at /var/www/virtual/viesca/test.viesca.de/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53"

    I already checked the Plugins/views/cache folder which seems to be fine:

    $ ls -la core/modules/views/src/Plugin/views/cache/
    total 32
    drwxrwxr-x.  2 viesca viesca    80 Sep 19  2023 .
    drwxrwxr-x. 21 viesca viesca  4096 Sep 19  2023 ..
    -rw-rw-r--.  1 viesca viesca 11090 Jul 17 03:00 CachePluginBase.php
    -rw-rw-r--.  1 viesca viesca   764 Jul 17 03:00 None.php
    -rw-rw-r--.  1 viesca viesca   765 Jul 17 03:00 Tag.php
    -rw-rw-r--.  1 viesca viesca  6461 Jul 17 03:00 Time.php

    Any other thing i could check?

  • Ok i got the website running again by running

    composer require drush/drush:11.6.0 (other versions seemed to be broken)
    drush eval "\$module_data = \Drupal::config('core.extension')->get('module'); unset(\$module_data['views']); \Drupal::configFactory()->getEditable('core.extension')->set('module', \$module_data)->save();" got it from here: https://www.drupal.org/node/157632 β†’ manual module disable using drush
    drush pm:install views (reinizializing views)

    I hope nothing got lost, but want to rebuild the website from scratch anyway, this was just to extract some information without having the hassle to parse the database directly.

Production build 0.71.5 2024