- Issue created by @joseph.olstad
- 🇨🇦Canada joseph.olstad
Possible lead to a fix.
Steps to reproduce:
- Fresh install of Drupal 10.4.6
- Set french as original language (site default language)
- Add english as a second language option
- configure language negotiation using a two letter prefix
- install layout_builder_st
- configure a bundle like article or basic page to have translation enabled
- create a node, then try to edit the layout on one node in english (the second language)
Exception occurs
- edit the layout on the same node using french (the original/site default language), no error , able to edit the layout without exception.
see screenshot:
→exception message follows: (from core)
The website encountered an unexpected error. Try again later. TypeError: Drupal\Component\Utility\UrlHelper::buildQuery(): Argument #1 ($query) must be of type array, null given, called in /docroot/html/core/modules/contextual/contextual.module on line 178 in Drupal\Component\Utility\UrlHelper::buildQuery() (line 42 of core/lib/Drupal/Component/Utility/UrlHelper.php).
- 🇨🇦Canada joseph.olstad
My guess is, something in core changed between Drupal 9.5 through to Drupal 10.4 / Drupal 11.1 causing this exception to be thrown.