Trying to access array offset on value of type bool in Drupal\views\Plugin\views\PluginBase->setOptionDefaults()

Created on 3 April 2023, over 1 year ago

Problem/Motivation

After updating to alpha3, we noticed a large number of errors in our logs whenever a user visited a view with the lat long search field. The error is Trying to access array offset on value of type bool in Drupal\views\Plugin\views\PluginBase->setOptionDefaults()

Steps to reproduce

Install the module and create a view with the search api location exposed filter.

Proposed resolution

Attached is a patch that resolves the issue. The cause was a bad defaults definition for `required` in SearchApiFilterLocation->defineOptions()

Remaining tasks

Test and review

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom nicrodgers Monmouthshire, UK

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

Comments & Activities

  • Issue created by @nicrodgers
  • @nicrodgers opened merge request.
  • Status changed to Closed: duplicate over 1 year ago
  • 🇬🇧United Kingdom nicrodgers Monmouthshire, UK

    Apologies, just realised this is a duplicate of 3343143 and has already been fixed there.

Production build 0.71.5 2024