Opening "admin/modules/uninstall" removes input filter

Created on 28 June 2018, over 6 years ago
Updated 23 March 2023, over 1 year ago

In the last days we ran into a curious problem which I can not explain so far and have no idea where to start:

Whenever I open the module uninstall page (admin/modules/uninstall) the input filter "php_code" from the php module is being completely removed (with the consequence that all text areas using it are not working anymore). I already checked that all dependencies of the input filter are NOT missing / uninstalled.

Does anyone know where to start searching for the reason? We're using Druapl 8.5.4.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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.

  • 🇳🇿New Zealand quietone

    I tested this on Drupal 9.5.x, standard install. I was able to reproduce the problem in the issue summary. I dig some debugging and found that the module install form does calls \Drupal\Core\Extension\ModuleInstaller::validateUninstall and then \Drupal\php\PhpUninstallValidator::validate is called which does

      public function validate($module) {
        $reasons = [];
        if ($module == 'php') {
          $this->removeFilterConfig();
        }
        return $reasons;
      }

    And it is that removeFilterConfig which is removing the filter.

    Therefor, I am moving this to the php contrib project.

  • Status changed to Closed: duplicate over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @quietone and sorry, this is a reeeaaaally old one (5 years).

    It's a duplicate of 🐛 Text format with system name "php_code" is deleted when you view admin/modules/uninstall RTBC which has never been fixed. Sorry I didn't know about this duplicate issue anymore, I would have marked it duplicate before myself.

  • Thank you @quietone, this was driving me crazy for the last 2 days.. So what would be solution? I just commented that line $this->removeFilterConfig(); but what would be the proper way to handle this? Thx.

Production build 0.71.5 2024