Page MenuHomePhabricator

MapSourcesPage.php: PHP Notice: Undefined offset: 13
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined offset: 13
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.5/extensions/MapSources/includes/specials/MapSourcesPage.php(256)
#0 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MapSources/includes/specials/MapSourcesPage.php(256): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MapSources/includes/specials/MapSourcesPage.php(343): MapSourcesPage->setScales()
#2 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MapSources/includes/specials/MapSourcesPage.php(74): MapSourcesPage->getParams(NULL)
#3 /srv/mediawiki/php-1.37.0-wmf.5/includes/specialpage/SpecialPage.php(646): MapSourcesPage->execute(NULL)
#4 /srv/mediawiki/php-1.37.0-wmf.5/includes/specialpage/SpecialPageFactory.php(1396): SpecialPage->run(NULL)
#5 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(313): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#6 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(916): MediaWiki->performRequest()
#7 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(550): MediaWiki->main()
#8 /srv/mediawiki/php-1.37.0-wmf.5/index.php(53): MediaWiki->run()
#9 /srv/mediawiki/php-1.37.0-wmf.5/index.php(46): wfIndexMain()
#10 /srv/mediawiki/w/index.php(3): require(string)
#11 {main}
Notes

New in wmf.5.

Event Timeline

dancy renamed this task from PHP Notice: Undefined offset: 13 to MapSourcesPage.php: PHP Notice: Undefined offset: 13.May 13 2021, 10:02 PM

Change 690792 had a related patch set uploaded (by Ppchelko; author: Ppchelko):

[mediawiki/extensions/MapSources@master] Check array boundaries before accessing array

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

I don't know why it started happening, but the fix above should take care of the out of array bounds issue..

Change 690792 merged by jenkins-bot:

[mediawiki/extensions/MapSources@master] Check array boundaries before accessing array

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

Change 690809 had a related patch set uploaded (by Jforrester; author: Ppchelko):

[mediawiki/extensions/MapSources@wmf/1.37.0-wmf.5] Check array boundaries before accessing array

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

Change 690809 merged by jenkins-bot:

[mediawiki/extensions/MapSources@wmf/1.37.0-wmf.5] Check array boundaries before accessing array

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

Mentioned in SAL (#wikimedia-operations) [2021-05-14T03:25:02Z] <tstarling@deploy1002> Synchronized php-1.37.0-wmf.5/extensions/MapSources/includes/specials/MapSourcesPage.php: fix PHP notice T282833 (duration: 01m 07s)

Should be fixed in wmf.5. I'm not closing it because there was no wmf.4 backport. But we can wait for the train to fix it.

Should be fixed in wmf.5. I'm not closing it because there was no wmf.4 backport. But we can wait for the train to fix it.

Oh, right. This was marginal as a blocker in the first place.