After upgrading to the latest 2.2.0 version I get the WSD and the following error message in the Apache error log:

[Tue Jan 14 17:02:44.443745 2025] [php:notice] [pid 4021868] [client xxx] Uncaught PHP Exception TypeError: "Drupal\\lang_dropdown\\Plugin\\Block\\LanguageDropdownBlock::__construct(): Argument #7 ($library_discovery_collector) must be of type Drupal\\Core\\Asset\\LibraryDiscoveryCollector, Drupal\\Core\\Asset\\LibraryDiscovery given, called in /modules/contrib/lang_dropdown/src/Plugin/Block/LanguageDropdownBlock.php on line 115" at /modules/contrib/lang_dropdown/src/Plugin/Block/LanguageDropdownBlock.php line 101
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

kaipipek created an issue. See original summary.

jibus’s picture

Same here

aspagarino’s picture

Getting the same error. Noticed that changing on LanguageDropdownBlock.php from library_discovery_collector to library_discovery would fixed the issue for creating a module but it won't switch languages.

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

priti197’s picture

Status: Active » Needs review

Created MR !12 to fix the issue.

  • priti197 committed afc0caf0 on 8.x-2.x
    Issue #3499679: Fix for LibraryDiscoveryCollector incorrect argument
kala4ek’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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