Problem/Motivation
TypeError: Drupal\site_settings\SiteSettingsReplicator::__construct(): Argument #2 ($messenger) must be of type Drupal\Core\Messenger\Messenger, string given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\site_settings\SiteSettingsReplicator->__construct() (line 57 of /var/www/html/web/modules/contrib/site_settings/src/SiteSettingsReplicator.php).
Steps to reproduce
Run a service scan using drush to get all services id (Tried this not in related to get this error. But there may be other ways that will throw this error). This error is not shown in the log before then however.
drush ev 'foreach (\Drupal::getContainer()->getServiceIds() as $id) { $a[$id] = is_object(\Drupal::service($id)) ? get_class(\Drupal::service($id)) : ""; } dump($a);'
Proposed resolution
Pass correct param in service.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3418570-2.patch | 464 bytes | mukhtarm |
Comments
Comment #2
mukhtarm commentedPlease review the patch. thanks
Comment #3
mukhtarm commentedComment #5
scott_euser commentedThank you!