Score:0

Class Drupal\dfm\EventSubscriber\DfmSubscriber not found when try to remove the Drupella File Manager

gb flag

I installed the Drupella File Manager module for Drupal 8.8, but I have Drupal 8.7. I received this error.

Call to undefined method Drupal\Core\File\FileSystem::scanDirectory()

I don't need the module anymore, so I'm trying to remove it. Because of the same error on the uninstall page, I'm trying to manual remove it.

First, I removed dfm (which is the module machine name) from the $module_data configuration as described in Manually disable a module.

Then, I deleted the dfm directory from the /modules directory, but now I receive this error.

Class 'Drupal\dfm\EventSubscriber\DfmSubscriber' not found in Drupal\Component\DependencyInjection\Container->createService() (line 265 of core/lib/Drupal/Component/DependencyInjection/Container.php).

How can I resolve this problem?

Are there other module files that cause problems?

Clearing the cache doesn't help.

Score:0
gb flag

Ok, I commented the line that causes the first error and then uninstalled the module via the uninstall page

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.