I think this is a problem introduced by a recent update. (exists on all 3.x versions that I've tried)

When the user tries to save a "node location" after having dragged the marker into the correct position, the "save" fails with the error message "Longitude cannot be longer than 20 characters but is currently 21 characters long.". The user editable "longitude" textbox does indeed have a significantly longer set of digits than the latitude. (see attached)

Steps to re-create:
1. Edit node with location_node enabled
2. Click map to position marker
3. Notice longitude is too longer
4. Attempt to save. Get error message.

Any suggestions appreciated.

Files: 
CommentFileSizeAuthor
#6 gmap-long-lat-1989942-6.patch737 bytesPete B
FAILED: [[SimpleTest]]: [MySQL] 586 pass(es), 140 fail(s), and 0 exception(s).
[ View ]
#3 gmap-fix-1989942-3.patch734 bytessimg
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch gmap-fix-1989942-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
Selection_052.png60.29 KBsimg

Comments

TimeBandit’s picture

Same issue here, 7.x-3.0-rc1

dave_robinson’s picture

We hit this problem and traced through with Firebug. The longer longitude is actually coming from calls to googles LatLng constructor in gmap_location's locpick.js.
We've patched temporarily by adding .toFixed(6) where it updates the field element in the locpick_longitude and lockpick_latitude handlers.

simg’s picture

StatusFileSize
new734 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch gmap-fix-1989942-3.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

#2 fixed the issue for me, thanks (seems like this is a problem with the gmap module)

Pete B’s picture

Project:Location» GMap Module
Version:7.x-3.x-dev» 7.x-2.x-dev
Issue summary:View changes
Status:Active» Reviewed & tested by the community

Moving this to the GMap issue queue. The patch works, but is for GMap.

Status:Reviewed & tested by the community» Needs work

The last submitted patch, 3: gmap-fix-1989942-3.patch, failed testing.

Pete B’s picture

StatusFileSize
new737 bytes
FAILED: [[SimpleTest]]: [MySQL] 586 pass(es), 140 fail(s), and 0 exception(s).
[ View ]

Patch path depth was wrong. Reroll.

Pete B’s picture

Status:Needs work» Needs review

Updating status...

Status:Needs review» Needs work

The last submitted patch, 6: gmap-long-lat-1989942-6.patch, failed testing.