- Issue created by @diqidoq
- π«π·France Chris64 France
@diqidoq, could you provide an associated stack trace?
- π¬π§United Kingdom james.williams
This module currently sets the 'title' properties in the render array to a string / TranslatableMarkup, whereas the posted stack trace shows it has been set to an array (containing a #markup), alongside a 'flag' render array (using the 'flags' theme hook).
But there are no mentions of 'flag' or 'flags' in the toolbar_language_switcher codebase (2.0.x-dev at least); are you running any other modules that could be adding these? Perhaps this module is currently incompatible with one you're using, because it assumes the language names would be strings rather than render arrays? (Which is why turning this module off would fix your problem of course.) If we can establish which module is conflicting, perhaps we can consider building support for language switcher links that are render arrays rather than simple strings. I suppose
\Drupal\Core\Language\LanguageManagerInterface::getLanguageSwitchLinks()
never actually promises what will be inside the array of links.Adjusting priority to normal, since this will only affect sites using the combination of conflicting modules, which is not possible with core and the most common contrib modules. (At least until we can be shown otherwise!)
- π«π·France Chris64 France
In #7 stack trace means the functions list. With a WSOD such a list may be in the log.
- Status changed to Postponed: needs info
10 months ago 9:55am 23 August 2023 - πΊπ¦Ukraine voleger Ukraine, Rivne
Setting the appropriate status of the issue.