Opening "admin/modules/uninstall" removes input filter

Created on 28 June 2018, about 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 New Zealand

    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.69.0 2024