Problems after uninstalling (PluginNotFoundException: The "php" plugin does not exist)

Created on 1 February 2022, over 2 years ago
Updated 3 April 2024, 3 months ago

I have PHP installed in a Drupal 9.3.3 site.
I tried to uninstall it with Drush emu php.
It successfully uninstalls, but on a lot of sites, I get a WSOD an in log following error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "php" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: node, taxonomy_tid, current_user, user, fixed, query_parameter, raw in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (Zeile 53 in /var/www/html/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Cache rebuild, database update nothing helps.
If there a way to safely uninstall this module?
I think its a big problem, that there is no error massage while uninstalling and you don't know which sites are affected by the WSOD!

Thanks in advance.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

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.

  • πŸ‡³πŸ‡±Netherlands navneet0693 Amsterdam, Netherlands

    I was also facing this issue, but I later found out that the some configuration in database was not updated and it had the condition "php" entry into it.

  • πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

    @nojj: you have a view that uses the PHP filter. Normally Drupal tracks dependencies on config entities, eg. the views test module has a test view in the PHP module which does have a dependency on the PHP module. As such, config that depends on modules being uninstalled would be entirely removed. I think in your case that dependency was missing somehow. It is not something this module would do but rather something the config system does.

Production build 0.69.0 2024