Page MenuHomePhabricator

wgNamespacesWithSubpages seems to be set mutiple times in extension.json
Closed, ResolvedPublic

Description

Hi, scap is failing because uncaught exception 'RuntimeException' with message 'The configuration setting 'wgNamespacesWithSubpages' was already set by another extension, and cannot be set again.' in /srv/mediawiki-staging/php-master/includes/registration/ExtensionProcessor.php:494\nStack trace:\n#0 /srv/mediawiki-staging/php-master/includes/registration/ExtensionProcessor.php(481): ExtensionProcessor->addConfigGlobal('wgNamespacesWit...', Array)\n#1 /srv/mediawiki-stagi

hashar did a quick look and found this

[20:40:44] <+hasharAway> EducationProgram/extension.json: "NamespacesWithSubpages": {
[20:40:45] <+hasharAway> Html2Wiki/extension.json: "NamespacesWithSubpages": {
[20:40:45] <+hasharAway> SecurePoll/extension.json: "NamespacesWithSubpages": {

this issue is caused by https://gerrit.wikimedia.org/r/#/c/374334/

Event Timeline

Paladox triaged this task as Unbreak Now! priority.Oct 24 2017, 7:44 PM

Setting priority to match T178940

Change 386260 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/EducationProgram@master] Indicate Education_Program_talk namespace properly

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

Change 386263 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/SecurePoll@master] Move most namespace handling into extension.json

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

hashar subscribed.

Html2Wiki has a similar issue. It sets wgNamespacesWithSubpages for most namespaces. I am not sure how maintained/used it is though MediaWiki-extensions-Html2Wiki

Change 386260 merged by jenkins-bot:
[mediawiki/extensions/EducationProgram@master] Indicate Education_Program_talk namespace properly

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

Change 386263 merged by jenkins-bot:
[mediawiki/extensions/SecurePoll@master] Move most namespace handling into extension.json

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

Change 386314 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/Html2Wiki@master] Remove bogus $wgNamespacesWithSubpages from extension.json

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

Html2Wiki has a similar issue. It sets wgNamespacesWithSubpages for most namespaces. I am not sure how maintained/used it is though MediaWiki-extensions-Html2Wiki

I submitted a patch but it looks like that extension has other issues based on my quick skim of it.

Change 386314 merged by jenkins-bot:
[mediawiki/extensions/Html2Wiki@master] Remove bogus $wgNamespacesWithSubpages from extension.json

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