Last modified: 2013-04-28 22:33:57 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 T40632, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38632 - [Fatal error] Attempt to get the latitude of an invalid location
[Fatal error] Attempt to get the latitude of an invalid location
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Maps (Other open bugs)
REL1_20-branch
All All
: Normal major (vote)
: MW 1.21 version
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks: 39480
  Show dependency treegraph
 
Reported: 2012-07-24 08:12 UTC by Niklas Laxström
Modified: 2013-04-28 22:33 UTC (History)
5 users (show)

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


Attachments
Fixes the empty location bug. (574 bytes, patch)
2013-04-28 22:33 UTC, Ruud Koolen
Details

Description Niklas Laxström 2012-07-24 08:12:07 UTC
2012-07-24 08:10:48 v22011026445052.yourvserver.net mediawiki-bw_: [674bb581] /w/i.php?title=User:BetelgeuSeginus&action=formedit   Exception from line 214 of /www/w/extensions/Maps/includes/Maps_Location.php: Attempt to get the latitude of an invalid location
#0 /www/w/extensions/Maps/includes/Maps_Location.php(427): MapsLocation->getLatitude()
#1 /www/w/extensions/Maps/includes/manipulations/Maps_ParamLocation.php(77): MapsLocation->getJSONObject()
#2 /www/w/extensions/Validator/includes/ItemParameterManipulation.php(61): MapsParamLocation->doManipulation(Object(MapsLocation), Object(ListParameter), Array)
#3 /www/w/extensions/Validator/includes/Param.php(217): ItemParameterManipulation->manipulate(Object(ListParameter), Array)
#4 /www/w/extensions/Validator/includes/Validator.php(317): Param->format(Array, Array)
#5 /www/w/extensions/Validator/includes/Validator.php(257): Validator->doParamProcessing()
#6 /www/w/extensions/SemanticMaps/includes/forminputs/SM_FormInput.php(115): Validator->validateParameters()
#7 /www/w/extensions/SemanticMaps/includes/forminputs/SM_FormInputs.php(122): SMFormInput->getInputOutput('', 'Location[1]', false, false, Array)
#8 [internal function]: smfSelectFormInputHTML('', 'Location[1]', false, false, Array)
#9 /www/w/extensions/SemanticForms/includes/SF_FormPrinter.php(1628): call_user_func_array('smfSelectFormIn...', Array)
#10 /www/w/extensions/SemanticForms/includes/SF_FormPrinter.php(1223): SFFormPrinter->formFieldHTML(Object(SFFormField), '')
#11 /www/w/extensions/SemanticForms/specials/SF_FormEdit.php(198): SFFormPrinter->formHTML('<includeonly>?<...', false, true, 2156538, '{{Location}}?{{...', 'User:BetelgeuSe...', NULL)
#12 /www/w/extensions/SemanticForms/includes/SF_FormEditAction.php(202): SFFormEdit::printForm('Translator', 'User:BetelgeuSe...')
#13 /www/w/extensions/SemanticForms/includes/SF_FormEditAction.php(32): SFFormEditAction::displayForm(Object(SFFormEditAction), Object(Article))
#14 /www/w/includes/Wiki.php(492): SFFormEditAction->show()
#15 /www/w/includes/Wiki.php(277): MediaWiki->performAction(Object(Article))
#16 /www/w/includes/Wiki.php(601): MediaWiki->performRequest()
#17 /www/w/includes/Wiki.php(511): MediaWiki->main()
#18 /www/w/index.php(58): MediaWiki->run()
#19 {main}
Comment 1 Niklas Laxström 2012-08-09 06:46:15 UTC
Any ETA?
Comment 2 Niklas Laxström 2012-08-17 12:29:25 UTC
How to reproduce:

Template:Location:
<includeonly>[[Coordinates::{{{1}}}]]</includeonly>

Have a page with:
{{Location|}}

And it it with a form which as:
{{{field|1|property=Coordinates|input type=googlemaps}}}

This seems to be triggered sometimes even without {{Location|}}, but always on action=formedit
Comment 3 Siebrand Mazeland 2012-08-31 07:37:21 UTC
Jeroen?
Comment 4 Niklas Laxström 2012-10-17 09:46:11 UTC
Jeroen, did you fix this? I haven't seen this error recently.
Comment 5 Nemo 2012-11-25 11:44:01 UTC
Still happening and preventing users from creating userpages as of yesterday. https://translatewiki.net/w/i.php?title=User:BaseBot&action=history
Comment 6 Jeroen De Dauw 2013-01-08 22:12:08 UTC
The code throwing this exception no longer exists, so I'm guessing the error is no longer there either :)

Siebrand and Nikelas: Just saw this bug now. Getting lots of bug reports. If I don't respond here in a timely manner, do feel free to poke me on irc or mail me :)
Comment 7 David Leonelli 2013-02-16 14:47:36 UTC
Although this is listed as fixed/resolved I still get exactly the same error. 

May config is as below the alphas are an attempt to see if an update would fix the error. Also I have tried initializing Maps and SM outside of SB.

Are you still getting reports from others?

PS, Thanks for all your hard work on SMW!   

MediaWiki 	1.20.2
PHP 	5.3.13 (cgi-fcgi)
MySQL 	5.0.91-log

Semantic Bundle (Version 1.8alpha)	
Semantic Compound Queries (Version 0.3.4)	
Semantic Drilldown (Version 1.2.4)	
Semantic Forms (Version 2.5.1)	
Semantic Forms Inputs (Version 0.7 alpha)	
Semantic Image Input (Version 0.2 alpha)	
Semantic Internal Objects (Version 0.7.1)	
Semantic Maps (Version 2.0.1.2)	
Semantic MediaWiki (Version 1.8.0.1)	
Semantic Result Formats (Version 1.8)	
SemanticTasks (Version 1.4.1)	
Admin Links (Version 0.1.7)	
Data Transfer (Version 0.3.12)	
Nuke (Version 1.1.7)	
Renameuser 	
Replace Text (Version 0.9.5)	
Parser hooks
Arrays (Version 2.0rc3 alpha)	
External Data (Version 1.4.2)	
Header Tabs (Version 0.9.2)	
Maps (Version 2.1 alpha)	
Page Schemas (Version 0.3.1)	
ParserFunctions (Version 1.4.1)	
ConfirmEdit (Version 1.1)	
Other
Gadgets 	
Validator (Version 0.5.1)	
Vector (Version 0.3.0)	
WikiEditor (Version 0.3.1)
Comment 8 Jeroen De Dauw 2013-02-16 15:56:59 UTC
> Although this is listed as fixed/resolved I still get exactly the same error.

I'm guessing it is still there. It however can no longer be there on the latest dev version as the relevant code no longer exists, and thus will also not be present in the next release.
Comment 9 Ruud Koolen 2013-04-28 22:33:57 UTC
Created attachment 12198 [details]
Fixes the empty location bug.

This patch fixes the problem for me, in SemanticMaps 2.0.1.2. I have not yet tested it extensively for completion and correctness.

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


Navigation
Links