Geolocation fields not working

Created on 18 January 2024, 8 months ago
Updated 16 February 2024, 7 months ago

Problem/Motivation

Adding a Geolocation field to the Geo field on the fields settings when using views shows a WSOD error when accessing the feed. Checking the logs shows the following:

InvalidArgumentException: Field field_geolocation is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of /var/www/vhosts/example.com/httpdocs/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

The view is a view of bookings and each booking is referenced by a location.

Steps to reproduce

Have a content type called "Location" which has an address field, geolocation field and an entity reference field referencing another content type called "bookings". Have a content type called "bookings" which has a date field and the body field.

  1. Create a view of booking nodes which has a relationship via the "bookings" entity reference field
  2. Add a feed page display of format iCal Feed
  3. Add the title, date and body fields and then also add the address and geolocation fields using the relationship on the entity reference field of "bookings" which is on the location content type.
  4. In iCal Fields settings add the geolocation field to the Geo field
🐛 Bug report
Status

Fixed

Version

4.0

Component

iCal Export

Created by

🇬🇧United Kingdom vaccinemedia

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

Comments & Activities

Production build 0.71.5 2024