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

Created on 16 January 2024, 5 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
  • πŸ‡΅πŸ‡±Poland szy
  • Status changed to Closed: works as designed 5 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.69.0 2024