Last modified: 2013-01-08 00:15:20 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 T33377, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31377 - Fatal error: Call to undefined method SMWDIError::getLatitude()
Fatal error: Call to undefined method SMWDIError::getLatitude()
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticMaps (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-05 14:56 UTC by Dan Bolser
Modified: 2013-01-08 00:15 UTC (History)
2 users (show)

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


Attachments

Description Dan Bolser 2011-10-05 14:56:04 UTC
Some pages with apperently correct 'address' information
sometimes fail to #geocode (actually I passed the wrong field in
a template, so it's geocoding correctly now, however...).

I tried lots of things to force the 'update' of the coordinate
data on the problem page, including "Data repair and
upgrade". When I ran this, however, runJobs.php gave the
following error when it arrived on the problem page:

2011-10-04 19:08:24 SMWUpdateJob Dip._Biologia_Cellulare_e_dello_Sviluppo t=809 good
PHP Fatal error:  Call to undefined method SMWDIError::getLatitude() in /home/www/htdocs/CellLinesWiki/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php on line 278

Fatal error: Call to undefined method SMWDIError::getLatitude() in /home/www/htdocs/CellLinesWiki/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php on line 278


Here, runJobs.php fails, and the status of the "Data repair and
upgrade" job is left at 50%.

Firing it off again hits the same problem again:


Although I fixed the geocoding string, I don't think this should
be dieing in this way. I'm not sure if this is an SMW bug or a
Maps bug... I figure Jeroen will know.


Here is the text of my template in case it's relevant:
http://sandbox.referata.com/wiki/Template:Laboratory

and here is the calling page (fails to #geocode if you don't pass the city field correctly):
http://sandbox.referata.com/wiki/Dip._Biologia_Cellulare_e_dello_Sviluppo






Cheers,
Dan.
Comment 1 Markus Krötzsch 2012-02-11 18:17:28 UTC
I am not sure whether this is an SMW or an SMW bug either. Clearly, SM treats an objects as a coordinate that really is an error. Most likely, this just means that SM forgot to check if the object has errors before accessing it. On the other hand, it could be that SMW returns such an error object in a place where it promises to not do this. Then it would be an SMW issue. But the entry point clearly is SM here, so I reassign this accordingly and let Jeroen decide whether he thinks it should be changed back to SMW.
Comment 2 Jeroen De Dauw 2012-02-11 19:18:34 UTC
Hay Dan, sorry for not getting back to you earlier. I remember fixing something like this at least some months back. Are you sure it is still present in the latest releases?
Comment 3 Dan Bolser 2012-02-12 14:28:06 UTC
I'll have to dig up access to the old wiki where I was seeing this problem. Please give me a few months to get down to it (sorry!),
Dan.
Comment 4 Jeroen De Dauw 2013-01-08 00:15:20 UTC
Assuming this is fixed

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


Navigation
Links