Page MenuHomePhabricator

PHP Warning: Undefined array key 20250325232704
Open, LowPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined array key 20250325232704
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiRevisionDelete.php(129)
#0/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiRevisionDelete.php(129)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiMain.php(2005)MediaWiki\Api\ApiRevisionDelete->execute()
#2/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiMain.php(947)MediaWiki\Api\ApiMain->executeAction()
#3/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiMain.php(918)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#4/srv/mediawiki/php-1.44.0-wmf.23/includes/api/ApiEntryPoint.php(152)MediaWiki\Api\ApiMain->execute()
#5/srv/mediawiki/php-1.44.0-wmf.23/includes/MediaWikiEntryPoint.php(202)MediaWiki\Api\ApiEntryPoint->execute()
#6/srv/mediawiki/php-1.44.0-wmf.23/api.php(44)MediaWiki\MediaWikiEntryPoint->run()
#7/srv/mediawiki/w/api.php(3)require(string)
#8{main}
Impact
Notes

Details

Request URL
https://en.wikipedia.org/w/api.php

Event Timeline

HCoplin-WMF subscribed.

Not enough information; marking as low priority.

We will keep it on our board for now, in case similar issues arise.

Somewhere in here it seems ?

$list->reloadFromPrimary();
for ( $item = $list->reset(); $list->current(); $item = $list->next() ) {
    $data['items'][$item->getId()] += $item->getApiData( $this->getResult() );
}

Since changed to:

$list->reloadFromPrimary();
foreach ( $list as $item ) {
    $data['items'][$item->getId()] += $item->getApiData( $this->getResult() );
}