- Issue created by @awasson
Drupal has changed the library for the HttpFoundation RequestStack to use Symfony\Component\HttpFoundation\RequestStack.
As a result, the module will not autocomplete and find locations. The error is as follows:
TypeError: Drupal\weather\Controller\WeatherPlacesAutocompleteController::__construct(): Argument #1 ($request_stack) must be of type Drupal\Core\Http\RequestStack, Symfony\Component\HttpFoundation\RequestStack given, called in /web/modules/contrib/weather-weather/src/Controller/WeatherPlacesAutocompleteController.php on line 46 in Drupal\weather\Controller\WeatherPlacesAutocompleteController->__construct() (line 37 of /web/modules/contrib/weather-weather/src/Controller/WeatherPlacesAutocompleteController.php).
Install fresh latest Drupal 10.
Install Weather.
Configure per Readme
Add Display and attempt to add a location.
Test/Apply attached patch.
Test patch
N/A
N/A
N/A
Needs review
3.0
Code
Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.