Last modified: 2014-01-23 16:11:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53230, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51230 - Maps geocode and distance queries throw Catchable fatal error in MapsGeoFunctions::calculateDistance() called in SemanticResultFormats/Filtered/filters/SRF_FF_Distance.php
Maps geocode and distance queries throw Catchable fatal error in MapsGeoFunct...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Maps (Other open bugs)
master
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-12 10:28 UTC by Neill Mitchell
Modified: 2014-01-23 16:11 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neill Mitchell 2013-07-12 10:28:25 UTC
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.
Comment 1 Andre Klapper 2013-07-12 10:39:35 UTC
(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.?
Comment 2 Neill Mitchell 2013-07-15 09:12:22 UTC
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!
Comment 3 Jeroen De Dauw 2013-11-30 00:43:40 UTC
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?
Comment 4 Andre Klapper 2014-01-23 15:30:07 UTC
Neill: Could you answer comment 3, please?
Comment 5 Neill Mitchell 2014-01-23 16:11:00 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links