Page MenuHomePhabricator

JsonConfig emits PHP error "Cannot access property on non-object" in JCApi::addStatusConf
Open, Needs TriagePublic

Description

Error

Request ID: W5-vPArAIFoAAGhDdHIAAABF

message
PHP Notice: Cannot access property on non-object

There are close variations of this error from the same method but different line numbers.

JCApi.php:32 Trace
#0 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(32): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(64): JsonConfig\JCApi::addStatusConf(stdClass)
#2 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(1587): JsonConfig\JCApi->execute()
#3 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(531): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.32.0-wmf.20/api.php(87): ApiMain->execute()
#6 /srv/mediawiki/w/api.php(3): include(string)
JCApi.php:33 Trace
#0 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(33): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(64): JsonConfig\JCApi::addStatusConf(stdClass)
#2 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(1587): JsonConfig\JCApi->execute()
#3 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(531): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.32.0-wmf.20/api.php(87): ApiMain->execute()
#6 /srv/mediawiki/w/api.php(3): include(string)
JCApi.php:34 Trace
#0 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(34): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.32.0-wmf.20/extensions/JsonConfig/includes/JCApi.php(64): JsonConfig\JCApi::addStatusConf(stdClass)
#2 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(1587): JsonConfig\JCApi->execute()
#3 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(531): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.32.0-wmf.20/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.32.0-wmf.20/api.php(87): ApiMain->execute()
#6 /srv/mediawiki/w/api.php(3): include(string)

Notes

Different wikis, mostly API.