InvalidArgumentException: Input doesn't contain a location value. in Drupal\search_api_location_geocoder\Plugin\search_api_location\location_input\Geocode->getParsedInput()

Created on 27 March 2021, about 3 years ago
Updated 23 February 2023, over 1 year ago

Problem/Motivation

When I search a location with views, location search, geocoder if the location value can not be geocoded with the submodule search_api_location_geocoder it rises an exception and the final user see white page with an error.
I expected to get a no results page with an error message in my view.

Steps to reproduce

Create a view that show SOLR index with an exposed geocoder filter. Input method "geocoded input" and select a geocoder plugin.
Save the view and try a search an invalid address -> it rises the exception.

Proposed resolution

When an address can not be geocoded, display the view "no results" page and display a simple error message.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France nikosnikos

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.69.0 2024