Error when a property of type Geographic Coordinates has no value (SM 2.1alpha)
Closed, ResolvedPublic

Description

This error occurs when you have a template holding e.g. three different locations and none, one or just two locations are set.

Attempt to get the latitude of an invalid location
Backtrace:
#0 /.../extensions/Maps/includes/Maps_Location.php(427): MapsLocation->getLatitude()
#1 /.../extensions/Maps/includes/manipulations/Maps_ParamLocation.php(77): MapsLocation->getJSONObject()
#2 /.../extensions/Validator/includes/ItemParameterManipulation.php(61): MapsParamLocation->doManipulation(Object(MapsLocation), Object(ListParameter), Array)
#3 /.../extensions/Validator/includes/Param.php(244): ItemParameterManipulation->manipulate(Object(ListParameter), Array)
#4 /.../extensions/Validator/includes/Validator.php(341): Param->format(Array, Array, Object(ValidatorOptions))
#5 /.../extensions/Validator/includes/Validator.php(281): Validator->doParamProcessing()
#6 /.../extensions/SemanticMaps/includes/forminputs/SM_FormInput.php(115): Validator->validateParameters()
#7 /.../extensions/SemanticMaps/includes/forminputs/SM_FormInputs.php(129): SMFormInput->getInputOutput('', 'Person[Assured ...', false, false, Array)
#8 [internal function]: smfSelectFormInputHTML('', 'Person[Assured ...', false, false, Array)
#9 /.../extensions/SemanticForms/includes/SF_FormPrinter.php(1664): call_user_func_array('smfSelectFormIn...', Array)
#10 /.../extensions/SemanticForms/includes/SF_FormPrinter.php(1255): SFFormPrinter->formFieldHTML(Object(SFFormField), '')
#11 /.../extensions/SemanticForms/specials/SF_FormEdit.php(197): SFFormPrinter->formHTML('<includeonly>?<...', false, true, 203, '{{Person?|Vorna...', 'Benutzer:Bodo', NULL)
#12 /.../extensions/SemanticForms/includes/SF_FormEditAction.php(205): SFFormEdit::printForm('Person', 'Benutzer:Bodo')
#13 /.../extensions/SemanticForms/includes/SF_FormEditAction.php(32): SFFormEditAction::displayForm(Object(SFFormEditAction), Object(Article))
#14 /.../includes/Wiki.php(484): SFFormEditAction->show()
#15 /.../includes/Wiki.php(278): MediaWiki->performAction(Object(Article))
#16 /.../62451/includes/Wiki.php(593): MediaWiki->performRequest()
#17 /.../includes/Wiki.php(503): MediaWiki->main()
#18 /.../index.php(58): MediaWiki->run()
#19 {main}


Version: unspecified
Severity: normal

bzimport set Reference to bz42344.
Kghbln created this task.Via LegacyNov 22 2012, 12:59 AM
JeroenDeDauw added a comment.Via ConduitJan 18 2013, 6:04 PM

This can no longer occur

Add Comment