computerminds / cm_config_tools

DEPRECATED: Mirror of http://cgit.drupalcode.org/cm_config_tools
1 stars 0 forks source link

PHP warnings around inexistent modules #24

Closed anotherjames closed 7 years ago

anotherjames commented 7 years ago

During a drush cmce:

array_keys() expects parameter 1 to be array, null given ExtensionConfigHandler.php:963                                                                         [warning]
array_diff(): Argument #2 is not an array ExtensionConfigHandler.php:963                                                                                        [warning]

These are due to an inexistent module being referenced by config, so within the troublesome line, $module_data[$missing_dependency] will not exist. The line is only about minimising the list of dependencies, so just avoid running the line as the missing dependency (and any of its dependencies) should be retained in what is about to be exported.