Needs review
Project:
Simple XML sitemap
Version:
4.2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2025 at 15:03 UTC
Updated:
16 Dec 2025 at 19:49 UTC
Jump to comment: Most recent
TypeError: Drupal\simple_sitemap\Logger::__construct(): Argument #1 ($messenger) must be of type Drupal\Core\Messenger\MessengerInterface, Drupal\Core\Logger\LoggerChannel given, called in /public_html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\simple_sitemap\Logger->__construct() (line 35 of modules/simple_sitemap/src/Logger.php).
Attempted update from 4.2.2 to 4.2.3 fails with the TypeError message. Drupal version 10.5.6. I tried clearing cache before the update, but that didn't change anything.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
f0ns commentedJust noticed the same error on updating:
Don't have the time to dig into it now so rolled back for now.
Comment #4
f0ns commentedFixed the issue on my side.
Also had to apply: https://www.drupal.org/project/simple_sitemap/issues/3264573
Comment #5
f0ns commentedComment #6
peter pulsifer commentedThe changes seemed to fix the problem. I had to separately upload the new module and the new version of the simple_sitemap.services.yml file, but after doing so the update proceeded without a problem. I don't really see why double quotes are important, but they do seem to make a difference!