- Issue created by @neclimdul
- πΊπΈUnited States mark_fullmer Tucson
Not really sure what got me in this state, walked away and it was there when I came back.
For us, this occurred thusly:
1. We maintain a feature module that includes configuration that can be installed newly on multiple sites.
2. The configuration in this module included configuration for a contrib module that subsequently removed that part of the configuration.
3. When we tried to install this feature module using the latest version of the contrib module, we got the error above.
4. This was resolved by removing the no-longer-relevant config from our .yml files.Reference: https://www.drupal.org/project/facets/issues/3514174#comment-16049977 π Facets throws error on install Active
I agree that the simplest resolution would seem to be to skip the processing if the the attempt to load results in a null object, e.g.
foreach (['config', 'content'] as $dependency_type) { $affected_dependencies[$dependency_type] = array_combine( array_map(function ($entity) { + if (is_null($entity) || !method_exists($entity, 'getConfigDependencyName')) { + return ''; + } return $entity->getConfigDependencyName(); }, $affected_dependencies[$dependency_type]), $affected_dependencies[$dependency_type] ); }