TypeError: Drupal\advanced_language_selector\Services\StyleManager::getStyle(): Argument #1 ($key) must be of type string, null given, called in

Created on 17 January 2024, 10 months ago
Updated 19 January 2024, 10 months ago

Problem/Motivation

The website encountered an unexpected error. Try again later.
TypeError: Drupal\advanced_language_selector\Services\StyleManager::getStyle(): Argument #1 ($key) must be of type string, null given, called in /modules/advanced_language_selector/src/Plugin/Block/LanguageSelectorBlock.php on line 244 in Drupal\advanced_language_selector\Services\StyleManager->getStyle() (line 47 of modules/advanced_language_selector/src/Services/StyleManager.php).

Sometimes showing other errors in admin menu:
Warning: Undefined array key "look_and_feel" in Drupal\advanced_language_selector\Plugin\Block\LanguageSelectorBlock->build() (line 243 of modules/advanced_language_selector/src/Plugin/Block/LanguageSelectorBlock.php).
Warning: Trying to access array offset on value of type null in Drupal\advanced_language_selector\Plugin\Block\LanguageSelectorBlock->build() (line 243 of modules/advanced_language_selector/src/Plugin/Block/LanguageSelectorBlock.php).
Warning: Undefined array key "look_and_feel" in Drupal\advanced_language_selector\Plugin\Block\LanguageSelectorBlock->build() (line 243 of modules/advanced_language_selector/src/Plugin/Block/LanguageSelectorBlock.php).
Warning: Trying to access array offset on value of type null in Drupal\advanced_language_selector\Plugin\Block\LanguageSelectorBlock->build() (line 243 of modules/advanced_language_selector/src/Plugin/Block/LanguageSelectorBlock.php)

Steps to reproduce

Using newest drupal 10.2.1 PHP 8.1

Installing, Enabling in Block and not working

Proposed resolution

Repair bug

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

🇵🇱Poland Tesam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024