Page MenuHomePhabricator

Maps geocode and distance queries throw Catchable fatal error in MapsGeoFunctions::calculateDistance() called in SemanticResultFormats/Filtered/filters/SRF_FF_Distance.php
Closed, InvalidPublic

Description

Author: mitchell_neill

Description:
Hi.

All my sites that use the Maps geocode and distance queries have died
today. They throw the following error:

Catchable fatal error: Argument 1 passed to
MapsGeoFunctions::calculateDistance() must be an array, boolean given,
called in
/var/www/webapps/gateway/extensions/SemanticResultFormats/Filtered/filters/SRF_FF_Distance.php
on line 119 and defined in
/var/www/webapps/gateway/extensions/Maps/includes/Maps_GeoFunctions.php
on line 31

I suspect the cause of this is perhaps the distance queries are using V2 of the API and Google has pulled the plug on this. I'm told the fix for this is pretty simple if this is the case.

Or it could be that Google Maps V7 has changed something in the V3 API today.

I'm running Maps 1.0.5, Semantic Maps 1.0.5 with SMW 1.8 and MW 1.19.4.
Same error is thrown by Maps V2.

Thanks.


Version: master
Severity: blocker
Whiteboard: aklapper-moreinfo

Details

Reference
bz51230

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:47 AM
bzimport set Reference to bz51230.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Hi.

All my sites that use the Maps geocode and distance queries have died
today.

Just to make this clear: You did not change anything in the last days, like updating parts of the software etc.?

mitchell_neill wrote:

Nothing has changed in the code.

The fatal error is caused by the Maps geocoder code not passing back the Google error response. So the SRF code above it crashes. Needless to say this is not good!

Hey Neill. I did not see this report before now. Is the issue still there? Do you know if it really is a Maps issue and not a thing the Filtered format is doing wrong?

Neill: Could you answer comment 3, please?

mitchell_neill wrote:

Google changed the rules. Geocodes are now licensed separately to all other Map operations. So you are limited to 2500 geocodes a day unless you pay them a lot of money. Worse still, license is per domain.

So this bug can be closed.