Page MenuHomePhabricator

MapCacheLRU::has called with invalid key. Must be string or integer.
Closed, ResolvedPublicPRODUCTION ERROR

Description

From Fatal-Monitor immediately after all wikis to 1.32.0-wmf.14:

[{exception_id}] {exception_url} UnexpectedValueException from line 144 of /srv/mediawiki/php-1.32.0-wmf.14/includes/libs/MapCacheLRU.php: MapCacheLRU::has called with invalid key. Must be string or integer.

Event Timeline

Change 448095 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[operations/mediawiki-config@master] Revert "all wikis to 1.32.0-wmf.14"

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

zeljkofilipin triaged this task as Unbreak Now! priority.Jul 26 2018, 6:22 PM

Change 448095 merged by jenkins-bot:
[operations/mediawiki-config@master] Revert "all wikis to 1.32.0-wmf.14"

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

Seems like title parsing broke for URLs which contain nothing but a curid. rMW3d990d17a031: Convert Title::getTitleCache() to using MapCacheLRU (again) is obviously related but it seems like this would throw even without that patch.

...except that the parent catches MalformedTitleException but not UnexpectedValueException.

Change 448097 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/core@master] Handle $title === null in Title::newFromText

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

Change 448107 had a related patch set uploaded (by Aaron Schulz; owner: Gergő Tisza):
[mediawiki/core@wmf/1.32.0-wmf.14] Handle $title === null in Title::newFromText

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

Change 448097 merged by jenkins-bot:
[mediawiki/core@master] Handle $title === null in Title::newFromText

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

Change 448107 merged by jenkins-bot:
[mediawiki/core@wmf/1.32.0-wmf.14] Handle $title === null in Title::newFromText

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

Mentioned in SAL (#wikimedia-operations) [2018-07-26T21:32:59Z] <tgr@deploy1001> Synchronized php-1.32.0-wmf.14/includes/Title.php: SWAT T200456: Handle $title === null in Title::newFromText (duration: 00m 57s)

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