A bullet list of steps to reproduce the error. Note if the error always happens or sometimes happens.
Since Drupal 11.3.0, the core LanguageConfigFactoryOverride class uses named arguments in its constructor. The argument previously known as $storage has been renamed to $baseStorage. Additionally, new parameters $defaultLanguageValues and $translateEnglish were introduced.
The current service definition in domain_config still uses $storage, which causes a fatal error on Drupal 11.3 sites:
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Invalid service "domain.language.config_factory_override": method "Drupal\language\Config\LanguageConfigFactoryOverride::__construct()" has no argument named "$storage".
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | domain_config-drupal-11-3-fix-3563870.patch | 793 bytes | velmir_taky |
Issue fork domain-3563870
Show commands
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
velmir_taky commentedAdded a patch to fix a fatal error in Drupal 11.3.0.
The core LanguageConfigFactoryOverride class now uses named arguments and requires additional parameters in its constructor. This patch:
Please review.
Comment #3
velmir_taky commentedComment #6
mably commentedHi @velmir_taky, can you give a try to this issue's MR please?
Comment #7
mably commentedComment #8
velmir_taky commentedTested MR !289 – works great on Drupal 11.3, error gone.
RTBC, thanks @mably!
Comment #10
mably commentedThansk @velmir_taky for the review!