Page MenuHomePhabricator

Property 'type' of non-object (in Kartographer)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Trying to get property 'type' of non-object
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.1/extensions/Kartographer/includes/SimpleStyleParser.php(204)
#0 /srv/mediawiki/php-1.37.0-wmf.1/extensions/Kartographer/includes/SimpleStyleParser.php(204): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.1/extensions/Kartographer/includes/SimpleStyleParser.php(97): Kartographer\SimpleStyleParser->normalize(array)
#2 /srv/mediawiki/php-1.37.0-wmf.1/extensions/JsonConfig/includes/JCMapDataContent.php(49): Kartographer\SimpleStyleParser->normalizeAndSanitize(array)
#3 /srv/mediawiki/php-1.37.0-wmf.1/extensions/JsonConfig/includes/JCDataApi.php(35): JsonConfig\JCMapDataContent->getSafeData(stdClass)
#4 /srv/mediawiki/php-1.37.0-wmf.1/includes/api/ApiMain.php(1652): JsonConfig\JCDataApi->execute()
#5 /srv/mediawiki/php-1.37.0-wmf.1/includes/api/ApiMain.php(622): ApiMain->executeAction()
#6 /srv/mediawiki/php-1.37.0-wmf.1/includes/api/ApiMain.php(593): ApiMain->executeActionWithErrorHandling()
#7 /srv/mediawiki/php-1.37.0-wmf.1/api.php(90): ApiMain->execute()
#8 /srv/mediawiki/php-1.37.0-wmf.1/api.php(45): wfApiMain()
#9 /srv/mediawiki/w/api.php(3): require(string)
#10 {main}
Impact

Low. One instance, only, but this is clearly a programming error.

Notes

Event Timeline

Krinkle renamed this task from PHP Notice: Trying to get property 'type' of non-object to Property 'type' of non-object (in Kartographer).Apr 28 2021, 6:09 PM

Change 692260 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/JsonConfig@master] Add temporary compatibility before calling Kartographer

https://gerrit.wikimedia.org/r/692260

Change 692266 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Fix incomplete SimpleStyleParser::normalize() implementation

https://gerrit.wikimedia.org/r/692266

Change 692260 merged by jenkins-bot:

[mediawiki/extensions/JsonConfig@master] Add temporary compatibility before calling Kartographer

https://gerrit.wikimedia.org/r/692260

Change 692266 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Fix incomplete SimpleStyleParser::normalize() implementation

https://gerrit.wikimedia.org/r/692266

Krinkle assigned this task to thiemowmde.

Change 987442 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/JsonConfig@master] Drop obsolete compatibility with Kartographer's SimpleStyleParser

https://gerrit.wikimedia.org/r/987442

Change 987442 merged by jenkins-bot:

[mediawiki/extensions/JsonConfig@master] Drop obsolete compatibility with Kartographer's SimpleStyleParser

https://gerrit.wikimedia.org/r/987442