Page MenuHomePhabricator

ConfigException: MediaWiki\Config\GlobalVarConfig::get: undefined option: 'OresModels'
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Install AutoModerator
  • Use default settings, including on wiki config settings
  • Attempt editing a page

What happens?:
MediaWiki\Config\ConfigException: MediaWiki\Config\GlobalVarConfig::get: undefined option: 'OresModels'

What should have happened instead?:

Page editing should work.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
It seems the ORES extension is not a hard requirement and there are checks for that. But there are also attempts to access the config values before the existence checks.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Ammarpad updated the task description. (Show Details)

Change #1075244 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/AutoModerator@master] Do not access ORES config values before it's installed

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

Change #1075244 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Do not access ORES config values before it's installed

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