Not able to calculate Haversine Options due to invalid Proximity Origin definition.

Created on 16 January 2024, 10 months ago

Hi there,

I'm trying to print a list of the nearest places to the displayed one in the node/page. Something like:

#3149688: Geofield Proximity Filter from Node/Entity being viewed (guidelines)

Should be easy, but every time I choose the geofield_context_filter (or its settings) in the "Fields" section of my view, I'm getting the error in the Watchdog:

"Not able to calculate Haversine Options due to invalid Proximity Origin definition."

My origin definition is

"[node:field_geolocation:0:lat],[node:field_geolocation:0:lon]<<=5555km"

... in the Token field of the Geolocation Proximity filter.

(and many more other, similar combinations of it)

There are lat/lon values in the database - I can print them in other field, so the view "sees" them. The view also print these places when I deleted the argument.

Is everything allright in Drupal 10.2.1/Geofield 1.57 combination and geofield filters?

Thank you!

Szy.

🐛 Bug report
Status

Closed: works as designed

Version

1.57

Component

Code

Created by

🇵🇱Poland szy

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

Comments & Activities

  • Issue created by @szy
  • Status changed to Closed: works as designed 10 months ago
  • 🇵🇱Poland szy

    Ugggh.

    It took me almost a day to not find out the solution and 30 seconds right after I have posted it here.

    The reason was the doubled "<" when inserting the HTML entity before the kilometres number:

    "[node:field_geolocation:0:lat],[node:field_geolocation:0:lon]<<=5555km"

    Should be:

    "[node:field_geolocation:0:lat],[node:field_geolocation:0:lon]<<=5555km"

    ... with <= as HTML entity.

    So it's Views Token Argument issue, not the Geofield's one.

    Thanks and sorry.

    Szy.

Production build 0.71.5 2024