Page MenuHomePhabricator

Unable to create StringMangler for group ext-randomincategory: Custom StringManglers (MediaWiki\Extension\Translate\MessageProcessing\StringMatcher) are currently not supported.
Closed, ResolvedPublicBUG REPORT

Description

During MediaWiki export of today I got 2 errors:

The command "php /srv/mediawiki/targets/production/extensions/Translate/scripts/export.php --group='ext-randomincategory' --quiet='1' --lang='*' --always-export-languages='en-ca,en-gb,es-formal,de-formal,de-at,de-ch,hu-formal,nl-inf
ormal,pap-aw,zh-hk,qqq' --never-export-languages='test,aeb,ais,be-x-old,crh,dk,en,fiu-vro,gan,gom,hif,kbd,kk,kk-cn,iu,kk-kz,kk-tr,ko-kp,ku,ku-arab,no,ruq,simple,sr,tg,tp,tt,ug,zh,zh-classical,zh-cn,zh-sg,zh-min-nan,zh-mo,zh-my,zh-tw
,zh-yue,bbc,ady' --skip-source-language='1' --threshold='0' --target='/scratch/exports'" failed.

Exit Code: 1(General error)

Working directory: /scratch/exports

Output:
================


Error Output:
================
InvalidArgumentException from line 134 of /srv/mediawiki/tags/2021-11-03_16:18:12/extensions/Translate/messagegroups/MessageGroupBase.php: Unable to create StringMangler for group ext-randomincategory: Custom StringManglers (MediaWi
ki\Extension\Translate\MessageProcessing\StringMatcher) are currently not supported.

and

The command "php /srv/mediawiki/targets/production/extensions/Translate/scripts/export.php --group='mediawiki-skin-anisa' --quiet='1' --lang='*' --always-export-languages='en-ca,en-gb,es-formal,de-formal,de-at,de-ch,hu-formal,nl-inf
ormal,pap-aw,zh-hk,qqq' --never-export-languages='test,aeb,ais,be-x-old,crh,dk,en,fiu-vro,gan,gom,hif,kbd,kk,kk-cn,iu,kk-kz,kk-tr,ko-kp,ku,ku-arab,no,ruq,simple,sr,tg,tp,tt,ug,zh,zh-classical,zh-cn,zh-sg,zh-min-nan,zh-mo,zh-my,zh-tw
,zh-yue,bbc,ady' --skip-source-language='1' --threshold='0' --target='/scratch/exports'" failed.

Exit Code: 1(General error)

Working directory: /scratch/exports

Output:
================


Error Output:
================
InvalidArgumentException from line 134 of /srv/mediawiki/tags/2021-11-03_16:18:12/extensions/Translate/messagegroups/MessageGroupBase.php: Unable to create StringMangler for group mediawiki-skin-anisa: Custom StringManglers (MediaWi
ki\Extension\Translate\MessageProcessing\StringMatcher) are currently not supported.

Outcome

Regression caused by code refactoring broke exports for some MediaWiki message groups. Regression was fixed.

Event Timeline

Change 736649 had a related patch set uploaded (by Nikerabbit; author: Nikerabbit):

[mediawiki/extensions/Translate@master] Support both namespaced and unnamespaced StringMatcher

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

I have cherry-picked and deployed my proposed fix. @Raymond this should work now.

Nikerabbit renamed this task from /MessageGroupBase.php: Unable to create StringMangler for group ext-randomincategory: Custom StringManglers (MediaWi ki\Extension\Translate\MessageProcessing\StringMatcher) are currently not supported. to Unable to create StringMangler for group ext-randomincategory: Custom StringManglers (MediaWiki\Extension\Translate\MessageProcessing\StringMatcher) are currently not supported..Nov 4 2021, 8:40 AM
Nikerabbit triaged this task as High priority.
Nikerabbit added a project: Regression.

Change 736649 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Support both namespaced and unnamespaced StringMatcher

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

Nikerabbit updated the task description. (Show Details)