Error
MediaWiki version: 1.36.0-wmf.9
PHP Notice: Undefined index: 94thpedal.JPG
Impact
Occasional bursts of screen fulls of these errors in logspam-watch output.
MediaWiki version: 1.36.0-wmf.9
PHP Notice: Undefined index: 94thpedal.JPG
Occasional bursts of screen fulls of these errors in logspam-watch output.
#0 /srv/mediawiki/php-1.36.0-wmf.9/extensions/GlobalUsage/includes/ApiQueryGlobalUsage.php(57): MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/php-1.36.0-wmf.9/includes/api/ApiQuery.php(263): ApiQueryGlobalUsage->execute() #2 /srv/mediawiki/php-1.36.0-wmf.9/includes/api/ApiMain.php(1600): ApiQuery->execute() #3 /srv/mediawiki/php-1.36.0-wmf.9/includes/api/ApiMain.php(536): ApiMain->executeAction() #4 /srv/mediawiki/php-1.36.0-wmf.9/includes/api/ApiMain.php(507): ApiMain->executeActionWithErrorHandling() #5 /srv/mediawiki/php-1.36.0-wmf.9/api.php(90): ApiMain->execute() #6 /srv/mediawiki/php-1.36.0-wmf.9/api.php(45): wfApiMain() #7 /srv/mediawiki/w/api.php(3): require(string) #8 {main}
added as blocker even though this isn't new. It's currently the highest frequency logspam in kibana.
and yet the code in question hasn't been touched since 2009:
https://phabricator.wikimedia.org/diffusion/EGUS/browse/master/includes/ApiQueryGlobalUsage.php$57
So the code in question appears to be ok, I think something changed in the code it's calling so the assumption that pageId would be valid is no longer valid.
Requests are generating a lot of noise here. For example the 1 request-id in this task generated 164 notices https://logstash.wikimedia.org/goto/0aa65e4883b273a1497897615ab6a081
Change 629391 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/extensions/GlobalUsage@master] ApiQueryGlobalUsage: handle undefined indexes
Change 629399 had a related patch set uploaded (by Ahmon Dancy; owner: DannyS712):
[mediawiki/extensions/GlobalUsage@wmf/1.36.0-wmf.10] ApiQueryGlobalUsage: handle undefined indexes
Change 629391 merged by jenkins-bot:
[mediawiki/extensions/GlobalUsage@master] ApiQueryGlobalUsage: handle undefined indexes
Change 629399 merged by jenkins-bot:
[mediawiki/extensions/GlobalUsage@wmf/1.36.0-wmf.10] ApiQueryGlobalUsage: handle undefined indexes
Mentioned in SAL (#wikimedia-operations) [2020-09-23T20:42:50Z] <dancy> dancy@deploy1001 Started scap: Deploying fixes for T263601 and T263675 to 1.36.0-wmf.10
ApiQueryGlobalUsage::execute() has been modified to defend against the undefined index error but the root cause has not been resolved.
Change 636148 had a related patch set uploaded (by Umherirrender; owner: Umherirrender):
[mediawiki/extensions/GlobalUsage@master] Fix database query from api for number-only titles
The bad query can also results in WMFTimeoutException, I have produce one while looking at this bug. If you found it in the logs/logstash, there is no need to report.
Change 636148 merged by jenkins-bot:
[mediawiki/extensions/GlobalUsage@master] Fix database query from api for number-only titles