InvalidArgumentException: The configuration property display.default.display_options.filters.field_[field_name]_location_proximity.group_info.group_items.1.value.value doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 74 of core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

caldenjacobs created an issue. See original summary.

ChristianAdamski’s picture

Status: Active » Postponed (maintainer needs more info)

Could you lay out the steps to reproduce this on a clean drupal install?

caldenjacobs’s picture

The error occurs if the following steps are taken:

Add a geolocation field to a content type.
Create one or more content nodes containing the geolocation field, populated with valid data.
Create a View querying the geolocation field's proximity.
Add a geolocation field:proximity exposed filter to the View, selecting 'Grouped filter'. Populate the exposed filter's Label (cannot be empty), Operator ('Is less than or equal to'), and Value (desired distance limits, i.e. '5', '10', '50') columns.
Attempt to save the View.

ChristianAdamski’s picture

Have to check later, but that double 'value' in the schema is probably wrong. Should be easy to fix.

ChristianAdamski’s picture

Status: Postponed (maintainer needs more info) » Needs work
ChristianAdamski’s picture

It's actually not simple. Darn.

ChristianAdamski’s picture

This patch locally allows for grouped proximity filters against a statically defined center. The exposed form proximity filter requires more work.

ChristianAdamski’s picture

Next task:

Make ProximityFilter.php -> acceptInput() function smart enough to retrieve values from a grouped filter.

ChristianAdamski’s picture

Hmm, the exposed form is not rendered at all, when the filter is set to grouped input, so that can't work.

  • ChristianAdamski committed 99d07dc on 8.x-1.x
    Issue #2870523 by ChristianAdamski: Grouped filter in Views display...
ChristianAdamski’s picture

Status: Needs review » Fixed

Added check to not try to retrieve exposed values when grouped.
Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.