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".

Issue fork domain-3563870

Command icon 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

velmir_taky created an issue. See original summary.

velmir_taky’s picture

Status: Active » Needs review
StatusFileSize
new793 bytes

Added 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:

  1. Renames $storage to $baseStorage to match the parent class.
  2. Adds missing arguments ($eventDispatcher, $typedConfigManager, etc.) to prevent deprecation warnings and ensure compatibility.

Please review.

velmir_taky’s picture

Issue summary: View changes

mably made their first commit to this issue’s fork.

mably’s picture

Hi @velmir_taky, can you give a try to this issue's MR please?

mably’s picture

Assigned: velmir_taky » Unassigned
velmir_taky’s picture

Tested MR !289 – works great on Drupal 11.3, error gone.

RTBC, thanks @mably!

  • mably committed df2cf09b on 3.x
    fix: #3563870 Compatibility with Drupal 11.3: Update service argument...
mably’s picture

Status: Needs review » Fixed

Thansk @velmir_taky for the review!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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