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.

Comments

virajrajankar created an issue. See original summary.

virajrajankar’s picture

Issue summary: View changes
virajrajankar’s picture

StatusFileSize
new1012 bytes

Use this patch to fix this issue.

virajrajankar’s picture

Status: Needs work » Needs review
leducdubleuet’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the patch is fixing this issue, thank you very much!