Page MenuHomePhabricator

[Fatal error] Attempt to get the latitude of an invalid location
Closed, ResolvedPublic


2012-07-24 08:10:48 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}

Version: REL1_20-branch
Severity: major



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:58 AM
bzimport set Reference to bz38632.

How to reproduce:


Have a page with:

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

Jeroen, did you fix this? I haven't seen this error recently.

Still happening and preventing users from creating userpages as of yesterday.

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 :)

leonelli.david wrote:

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
Semantic MediaWiki (Version
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)
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)
Validator (Version 0.5.1)
Vector (Version 0.3.0)
WikiEditor (Version 0.3.1)

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.

redlizard wrote:

Fixes the empty location bug.

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