Issue #3626509: Call to a member function getLabel() on null after a config import uninstalls a purger module

  • Drop a purger that initializePurgers() skips (because creating it throws ServiceNotFoundException, typically while its module is being uninstalled) from pluginsEnabled too, so getLabels(), getTypesByPurger() and setPluginsEnabled() never meet an enabled id without an instance.
  • Log the exception message instead of the exception object: with zend.exception_ignore_args=Off the exception carries the container, and serializing the log context throws "The container was serialized."

Steps to reproduce and results before and after: https://www.drupal.org/project/purge/issues/3626509

Drafted with the help of an AI assistant; tested and reviewed by me.

Merge request reports

Loading
Loading