Uninstall breaks Token-Installation

Created on 26 February 2025, about 2 months ago

Problem/Motivation

After uninstalling the Views Token Argument module references to the Token module seem to be broken or deleted. I get the warning:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "token" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: current_user_cart_ids, product, product_variation, active_store, eca, entity_browser_widget_context, node, profile_owner, current_user_profile, taxonomy_tid, user, current_user, raw, fixed, query_parameter in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (Zeile 53 in /usr/www/users/arborv/dev/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
This breaks the website.
Reinstalling the Views Token Argument module rectifies the problem.
Problem occurs in Drupal 10.4.3 @ PHP 8.3.17

Steps to reproduce

Uninstall the module. Check reports.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Mediengenosse

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

Comments & Activities

  • Issue created by @Mediengenosse
  • 🇨🇦Canada mandclu

    I could not reproduce the issue reported here. I had the module installed and used it successfully in a view's contextual filter. I removed the contextual filter then uninstalled the module. The rest of the site continued to work as expected, including things like pathauto patterns that rely on tokens. Visiting the status page did not indicate any problems either.

  • 🇩🇪Germany Mediengenosse

    Thanks a lot for testing the issue @mandclue.
    I did retest the deinstallation-issue myself and found out, that the module was still in active use in one of my views. This brought the described behaviour to life. It seems the module is uninstallable when still in use and does allow to be uninstalled without any warning.
    This might be an issue still? But a different one.

Production build 0.71.5 2024