Page MenuHomePhabricator

Exception from ResourceLoaderULSModule (ext.uls.languagenames) on frr.wikipedia.org "JSON serialization of config data failed."
Closed, ResolvedPublic

Description

Noticed in mediawiki-errors in both wmf.8 and wmf.9

[XBuwowpAAEIAACIQ3x8AAAAL] /w/load.php?debug=false&lang=frr&modules=startup&only=scripts&skin=vector   Exception from line 1535 of /srv/mediawiki/php-1.33.0-wmf.8/includes/resourceloader/ResourceLoader.php: JSON serialization of config data failed. This usually means the config data is not valid UTF-8.
[XBuxzQpAICwAAJHqxlwAAAAS] /w/load.php?debug=false&lang=frr&modules=startup&only=scripts&skin=vector   Exception from line 1535 of /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoader.php: JSON serialization of config data failed. This usually means the config data is not valid UTF-8.

There are two similar closed tasks:

Event Timeline

Restricted Application added a project: Performance-Team. · View Herald TranscriptDec 20 2018, 3:39 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle renamed this task from includes/resourceloader/ResourceLoader.php: JSON serialization of config data failed. This usually means the config data is not valid UTF-8. to Exception from ResourceLoaderULSModule (ext.uls.languagenames) on frr.wikipedia.org "JSON serialization of config data failed.".Dec 20 2018, 7:34 PM
Krinkle added a subscriber: Krinkle.
JSON serialization of config data failed. This usually means the config data is not valid UTF-8.

#0 /srv/mediawiki/php-1.33.0-wmf.9/extensions/UniversalLanguageSelector/includes/ResourceLoaderULSModule.php(49): ResourceLoader::makeConfigSetScript(array)
#1 /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoaderModule.php(708): ResourceLoaderULSModule->getScript(ResourceLoaderContext)
#2 /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoaderModule.php(675): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#3 /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoaderModule.php(812): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#4 /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoaderStartUpModule.php(258): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#5 /srv/mediawiki/php-1.33.0-wmf.9/includes/resourceloader/ResourceLoaderStartUpModule.php(436): ResourceLoaderStartUpModule->getModuleRegistrations(ResourceLoaderContext)

/w/load.php?debug=false&lang=frr&modules=startup&only=scripts&skin=vector

Source code of UniversalLanguageSelector:/ResourceLoaderULSModule.php.

I suspect its caused by a7cbc776ba7

Change 481547 had a related patch set uploaded (by Brian Wolff; owner: Brian Wolff):
[mediawiki/extensions/cldr@master] Convert LocalNamesFrr.php from windows-1252 -> UTF8

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

Change 481547 merged by jenkins-bot:
[mediawiki/extensions/cldr@master] Convert LocalNamesFrr.php from windows-1252 -> UTF8

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