There appears to be a mistake starting on line 927 of location.module. Specifically, values() is not a valid method.

db_update('location')
->fields(array('latitude', 'longitude', 'source'))
->values($location)
->condition('lid', $location['lid'])
->execute();
}

The fields() method is supposed to accept an associative array of keys and values. I believe it should be more like this:

db_update('location')
->fields(array('latitude' => $location['latitude'], 'longitude' => $location['longitude'], 'source' => 0))
->condition('lid', $location['lid'])
->execute();
}

In the end, I had to manually enter the coordinates of my locations rather than let JIT encoding handle them, so this fix didn't work for me, but I suspect it was due to Google not responding to geocoding requests from my IP (it's happened before). Hopefully this puts someone on the right path to fixing the error.

Comments

rooby’s picture

Status: Active » Fixed

Thank for the report.

Made a slight change to your fix: source should = $location['source'], not zero.

Committed.
http://drupalcode.org/project/location.git/commit/13e5545

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.