Error
- mwversion: 1.41.0-wmf.30
- reqId: 62366b94-bc29-47b4-9749-882f5cd38922
- Find reqId in Logstash
[{reqId}] {exception_url} PHP Warning: MediaWiki\ResourceLoader\Context::encodeJson partially failed: Malformed UTF-8 characters, possibly incorrectly encodedfrom /srv/mediawiki/php-1.41.0-wmf.30/includes/ResourceLoader/Context.php(513)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.41.0-wmf.30/includes/ResourceLoader/Context.php(513): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.41.0-wmf.30/includes/ResourceLoader/ClientHtml.php(299): MediaWiki\ResourceLoader\Context->encodeJson(array)
#3 /srv/mediawiki/php-1.41.0-wmf.30/includes/Output/OutputPage.php(3511): MediaWiki\ResourceLoader\ClientHtml->getHeadHtml(string)
#4 /srv/mediawiki/php-1.41.0-wmf.30/includes/skins/SkinMustache.php(98): MediaWiki\Output\OutputPage->headElement(MediaWiki\Skins\Vector\SkinVector22)
#5 /srv/mediawiki/php-1.41.0-wmf.30/includes/skins/SkinTemplate.php(174): SkinMustache->generateHTML()
#6 /srv/mediawiki/php-1.41.0-wmf.30/includes/Output/OutputPage.php(2947): SkinTemplate->outputPage()
#7 /srv/mediawiki/php-1.41.0-wmf.30/includes/MediaWiki.php(978): MediaWiki\Output\OutputPage->output(boolean)
#8 /srv/mediawiki/php-1.41.0-wmf.30/includes/MediaWiki.php(613): MediaWiki->main()
#9 /srv/mediawiki/php-1.41.0-wmf.30/index.php(50): MediaWiki->run()
#10 /srv/mediawiki/php-1.41.0-wmf.30/index.php(46): wfIndexMain()
#11 /srv/mediawiki/w/index.php(3): require(string)
#12 {main}Impact
Notes
6 errors in the last 24 hours
76 errors in the last 14 days
Errors come from three different URLs from ZH Wiki and most of those url's point to a user talk page.
In the past, we had a similar issue {T331641: Context::encodeJson partially failed (invalid modules parameter)} but this one is triggered by SkinTemplate->outputPage() where the previous one was triggered via RL load.php script.