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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | round-argument-data-type-issue-3417962-3.patch | 1012 bytes | virajrajankar |
Comments
Comment #2
virajrajankar commentedComment #3
virajrajankar commentedUse this patch to fix this issue.
Comment #4
virajrajankar commentedComment #5
leducdubleuet commentedI can confirm the patch is fixing this issue, thank you very much!