Krinkle added a comment.
This seems to sporadically come up and is limited to the shared WMF-extension gate job, when Wikibase is installed. P22994 (An Untitled Masterwork) <https://phabricator.wikimedia.org/P22994> There appears to be a situation in which something is causing LocalisastionCache to initialise a new uncached language with a dataset of `int(1)` (instead of an array of message keys and values). In that situation, we see the following chain: - .. - `Wikibase LanguageFallbackChainFactory` - .. - `LanguageFactory->newFromCode` - .. - `LocalisationCache->recache` - `LCStoreStaticArray->set(string, string)` - This causes `PHP Warning: Cannot use a scalar value as an array` because `$this->data` is an integer instead of an array. - `LCStoreStaticArray::finishWrite` - This causes the fatal `TypeError: Argument 1 passed to Wikimedia\StaticArrayWriter::create()`. It's not clear to me how `$this->data` can be an integer there. It is explicitly set to an array in the constructor, and we then read `cache/l10n/:lang.php` if it exists, which presumably either won't exist or if we just generated it it would be written as array and up-to-date and not needing to be written to. The fatal error also clearly indicates that the code doesn't even allow itself to create that file as a non-array, so it's not clear how that file can end up as an integer. TASK DETAIL https://phabricator.wikimedia.org/T304515 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Krinkle Cc: hashar, Krinkle, kostajh, Aklapper, Astuthiodit_1, Trngsh15, Sgs, karapayneWMDE, Invadibot, Mengs21, caldera, maantietaja, EgbeRef, NavinRizwi, Vaibhav0199, Akuckartz, Tinzawoo533, Onmir, DannyS712, Nandana, lucamauri, Mh-3110, Yahya, Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, Nattes, QZanden, enigmaeth, rohitt, LawExplorer, Iniquity, _jensen, rosalieper, Taiwania_Justo, Scott_WUaS, Dixtosa, Wikidata-bugs, aude, geraki, Dinoguy1000, Jdforrester-WMF, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org