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.

CommentFileSizeAuthor
#2 3418570-2.patch464 bytesmukhtarm

Comments

MukhtarM created an issue. See original summary.

mukhtarm’s picture

StatusFileSize
new464 bytes

Please review the patch. thanks

mukhtarm’s picture

Assigned: mukhtarm » Unassigned

scott_euser’s picture

Status: Active » Fixed

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.