WSOD error when placing a facet using map on a search api solr view

Created on 31 October 2019, over 5 years ago
Updated 10 March 2024, about 1 year ago

I have a content type called listings with a geolocation field which is being indexed in a solr index as both long / lat and spacial recursive prefix tree. I have a view of listings with some facets in the sidebar for taxonomy terms and have also added a facet for the geolocation field. The field I have used as the facet source is the one indexed as spatial recursive prefix tree. I have the facet set to use a map as the widget and have placed the map block in the banner region. On viewing the view there is a WSOD and examining the recent log messages there is:

Error: Call to a member function getUrl() on null in Drupal\facets_map_widget\Plugin\facets\widget\RptMapWidget->build() (line 36 of /var/www/vhosts/example.com/httpdocs/modules/contrib/search_api_location/modules/facets_map_widget/src/Plugin/facets/widget/RptMapWidget.php)

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom vaccinemedia

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