Page MenuHomePhabricator

[JsonConfig] PHP Notice: Cannot access property on non-object
Closed, DuplicatePublic

Description

Error

Request URL: https://wikimania2014.wikimedia.org/w/api.php?action=jsonconfig&format=jsonfm
Request ID: INSERT_ID

message
PHP Notice: Cannot access property on non-object
trace
#0 /srv/mediawiki/php-1.34.0-wmf.6/extensions/JsonConfig/includes/JCApi.php(34): MWExceptionHandler::handleError(integer, string, string, integer, array, array)
#1 /srv/mediawiki/php-1.34.0-wmf.6/extensions/JsonConfig/includes/JCApi.php(64): JsonConfig\JCApi::addStatusConf(stdClass)
#2 /srv/mediawiki/php-1.34.0-wmf.6/includes/api/ApiMain.php(1593): JsonConfig\JCApi->execute()
#3 /srv/mediawiki/php-1.34.0-wmf.6/includes/api/ApiMain.php(531): ApiMain->executeAction()
#4 /srv/mediawiki/php-1.34.0-wmf.6/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#5 /srv/mediawiki/php-1.34.0-wmf.6/api.php(87): ApiMain->execute()
#6 /srv/mediawiki/w/api.php(3): include(string)
#7 {main}

Impact

Notes

Event Timeline

hashar created this task.May 22 2019, 9:21 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 22 2019, 9:21 AM

That is emitted for lines 32 33 34 and 35 of JCApi.php:

30         if ( isset( $conf->store ) ) {
31             $res['store'] = [
32                 'cacheNewValue' => $conf->store->cacheNewValue,
33                 'notifyUrl' => $conf->store->notifyUrl,
34                 'notifyUsername' => $conf->store->notifyUsername !== '', // true or false
35                 'notifyPassword' => $conf->store->notifyPassword !== '', // true or false
36             ];
37         }

So I guess despite $conf->store being set, it is not an object.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:06 PM