Page MenuHomePhabricator

ZMultiLingualStringSet: TypeError: Illegal offset type
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   TypeError: Illegal offset type
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjects/ZMultiLingualStringSet.php(163)
#0/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjects/ZMultiLingualStringSet.php(32)MediaWiki\Extension\WikiLambda\ZObjects\ZMultiLingualStringSet->setMonoLingualStringSet(MediaWiki\Extension\WikiLambda\ZObjects\ZMonoLingualStringSet)
#1/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjectFactory.php(310)MediaWiki\Extension\WikiLambda\ZObjects\ZMultiLingualStringSet->__construct(MediaWiki\Extension\WikiLambda\ZObjects\ZTypedList)
#2/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjectFactory.php(417)MediaWiki\Extension\WikiLambda\ZObjectFactory::create(stdClass)
#3/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjectFactory.php(352)MediaWiki\Extension\WikiLambda\ZObjectFactory::createKeyValues(array, string)
#4/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjectFactory.php(378)MediaWiki\Extension\WikiLambda\ZObjectFactory::create(stdClass)
#5/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ZObjectFactory.php(308)MediaWiki\Extension\WikiLambda\ZObjectFactory::createKeyValues(array, string)
#6/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ActionAPI/WikiLambdaApiBase.php(198)MediaWiki\Extension\WikiLambda\ZObjectFactory::create(stdClass)
#7/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ActionAPI/ApiPerformTest.php(278)MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase->executeFunctionCall(MediaWiki\Extension\WikiLambda\ZObjects\ZFunctionCall, bool)
#8/srv/mediawiki/php-1.44.0-wmf.24/extensions/WikiLambda/includes/ActionAPI/WikiLambdaApiBase.php(82)MediaWiki\Extension\WikiLambda\ActionAPI\ApiPerformTest->run()
#9/srv/mediawiki/php-1.44.0-wmf.24/includes/api/ApiMain.php(2005)MediaWiki\Extension\WikiLambda\ActionAPI\WikiLambdaApiBase->execute()
#10/srv/mediawiki/php-1.44.0-wmf.24/includes/api/ApiMain.php(947)MediaWiki\Api\ApiMain->executeAction()
#11/srv/mediawiki/php-1.44.0-wmf.24/includes/api/ApiMain.php(918)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#12/srv/mediawiki/php-1.44.0-wmf.24/includes/api/ApiEntryPoint.php(152)MediaWiki\Api\ApiMain->execute()
#13/srv/mediawiki/php-1.44.0-wmf.24/includes/MediaWikiEntryPoint.php(202)MediaWiki\Api\ApiEntryPoint->execute()
#14/srv/mediawiki/php-1.44.0-wmf.24/api.php(44)MediaWiki\MediaWikiEntryPoint->run()
#15/srv/mediawiki/w/api.php(3)require(string)
#16{main}
Notes

Seeing a handful of these - 100 in total - since last week's 1.44.0-wmf.23 (T386218).

Details

Request URL
https://www.wikifunctions.org/w/api.php?action=*&format=*&uselang=*&wikilambda_perform_test_zfunction=*&wikilambda_perform_test_zimplementations=*&wikilambda_perform_test_ztesters=*
Related Changes in Gerrit:

Event Timeline

Change #1136476 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] ZMonoLingualStringSet::setMonoLingualStringSet: Don't explode

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

Change #1136476 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] ZMonoLingualStringSet::setMonoLingualStringSet: Don't explode

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

DSantamaria changed the task status from Open to In Progress.Apr 16 2025, 1:01 PM

The tests at T391329 which was merged here still aren't working. I just nudged Z23746 to refresh the cache, but it's still broken.

hey @Jdforrester-WMF ,
If this is not resolved, should we move it out of the "Needs Sign-off" column?

@Jdforrester-WMF hasn't been deployed already?

Yes, and it's fixed as filed.

The tests at T391329 which was merged here still aren't working. I just nudged Z23746 to refresh the cache, but it's still broken.

That's now a new error. Boo. I'll re-open it with the new details.