Page MenuHomePhabricator

"PHP Notice: A non well formed numeric value encountered" from DmsCoordinateParser.php in API action=wbparsevalue
Open, MediumPublic

Description

Error

MediaWiki version: 1.35.0-wmf.4

message
[{exception_id}] {exception_url}   ErrorException from line 184 of /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/DmsCoordinateParser.php: PHP Notice: A non well formed numeric value encountered
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/DmsCoordinateParser.php(184): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/DdCoordinateParser.php(47): DataValues\Geo\Parsers\DmsCoordinateParser->parseCoordinate(string)
#2 /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/LatLongParserBase.php(106): DataValues\Geo\Parsers\DdCoordinateParser->getParsedCoordinate(string)
#3 /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/DdCoordinateParser.php(114): DataValues\Geo\Parsers\LatLongParserBase->parse(string)
#4 /srv/mediawiki/php-1.35.0-wmf.4/vendor/data-values/geo/src/Parsers/GlobeCoordinateParser.php(54): DataValues\Geo\Parsers\DdCoordinateParser->parse(string)
#5 /srv/mediawiki/php-1.35.0-wmf.4/extensions/Wikibase/repo/includes/Api/ParseValue.php(198): DataValues\Geo\Parsers\GlobeCoordinateParser->parse(string)
#6 /srv/mediawiki/php-1.35.0-wmf.4/extensions/Wikibase/repo/includes/Api/ParseValue.php(110): Wikibase\Repo\Api\ParseValue->parseStringValue(DataValues\Geo\Parsers\GlobeCoordinateParser, string, NULL)
#7 /srv/mediawiki/php-1.35.0-wmf.4/includes/api/ApiMain.php(1603): Wikibase\Repo\Api\ParseValue->execute()
#8 /srv/mediawiki/php-1.35.0-wmf.4/includes/api/ApiMain.php(539): ApiMain->executeAction()
#9 /srv/mediawiki/php-1.35.0-wmf.4/includes/api/ApiMain.php(510): ApiMain->executeActionWithErrorHandling()
#10 /srv/mediawiki/php-1.35.0-wmf.4/api.php(83): ApiMain->execute()
#11 /srv/mediawiki/w/api.php(3): require(string)
#12 {main}

Impact

Unclear.

A couple of instances since rolling wmf.4 to all wikis:

brennen@mwlog1001:/srv/mw-log$ grep -c vendor/data-values/geo/src/Parsers/DmsCoordinateParser.php:184 ./error.log
2

Notes

I'm not finding anything earlier than wmf.4 for this, though the error message is similar to T231551 and T226751.

Full URL linked in this phab ticket is https://www.wikidata.org/w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=%1F33%C2%B007%2723%22S%2C%2064%C2%B02%2E10%22E&options=%7B%22lang%22%3A%22en%22%2C%22precision%22%3A2%2E77778e-7%7D

Details

Request ID
XbtjRgpAAEcAAIWyZ6oAAADK
Request URL
/w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=…

Event Timeline

brennen created this task.Oct 31 2019, 11:01 PM
Restricted Application added a project: Discovery-Search. · View Herald TranscriptOct 31 2019, 11:01 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
brennen updated the task description. (Show Details)Oct 31 2019, 11:04 PM
Krinkle renamed this task from DmsCoordinateParser: PHP Notice: A non well formed numeric value encountered to "PHP Notice: A non well formed numeric value encountered" from DmsCoordinateParser.php in API action=wbparsevalue.Thu, Nov 7, 9:04 PM
Krinkle changed Request URL from /w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=%1F33%C2%B007%2723%22S%2C%2064%C2%B02%2E10%22E&options=%7B%22lang%22%3A%22en%22%2C%22precision%22%3A2%2E77778e-7%7D to /w/api.php?action=wbparsevalue&format=json&parser=globecoordinate&values=….
Krinkle updated the task description. (Show Details)
Krinkle edited Stack Trace. (Show Details)
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krinkle.

Re-classifying from mediawiki-extensions-GeoData to mediawiki-extensions-WikibaseRepo. While it contains "Geo"-something, this specific error comes from the Wikibase code.

Addshore triaged this task as Medium priority.Tue, Nov 19, 12:45 PM
Addshore moved this task from Incoming to Ready to estimate on the Wikidata-Campsite board.
Addshore updated the task description. (Show Details)Tue, Nov 26, 1:43 PM

Check if the issue still happening after T238931 is addressed.