TypeError: round(): Argument #1 ($num) must be of type int|float, string given in round() (line 211 of geocoder/geocoder.widget.inc).

Created on 30 January 2024, 5 months ago

Problem/Motivation

Getting error on node edit page where the geofield field is added to collect lat and long
TypeError: round(): Argument #1 ($num) must be of type int|float, string given in round() (line 211 of geocoder/geocoder.widget.inc).

Steps to reproduce

  • Add geofield to content type
  • Setup the field to collect lat long from geocoder module.
  • Save content without configuring the google API key in the settings (/admin/config/content/geocoder)
  • Now add the keys and check node edit page

Proposed resolution

To resolved this we are adding the proper data type (float) for the variables used in the round function.

🐛 Bug report
Status

Needs review

Version

1.8

Component

Code

Created by

🇮🇳India virajrajankar Pune

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

Comments & Activities

Production build 0.69.0 2024