Call to undefined method Symfony\\Component\\HttpFoundation\\RequestStack::getMasterRequest() in Domain Config UI when editing domain-specific site information

Created on 13 April 2023, over 1 year ago
Updated 21 July 2024, 5 months ago

Drupal version: 10.0.7

Domain module version: 2.0.x

Expected Behavior

Switch domain on Site information page. It should load domain-specific site settings form.

Actual Behavior

Apparently, nothing happens. Looking in further, it looks like in module domain_config_ui, on the SwitchForm switchCallback function, it requests an unknown (for D10) function in requestStack.

Code looks like

$request = \Drupal::service('request_stack')->getMasterRequest();

while it should be

$request = version_compare(\Drupal::VERSION, '9.3', '>=') ?
      \Drupal::service('request_stack')->getMainRequest() :
      \Drupal::service('request_stack')->getMasterRequest();
🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

- Domain Config UI

Created by

🇮🇹Italy fadeslayer

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024