Page MenuHomePhabricator

Unable to run update.php Fatal error on wgDisableCounters
Open, Needs TriagePublic

Description

WIKI=en /opt/htdocs/wiki/mediawiki/maintenance/update.php --quick

Fatal error: Uncaught RuntimeException: The configuration setting 'wgDisableCounters' was already set by MediaWiki core or another extension, and cannot be set again by HitCounters. in /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionProcessor.php:520
Stack trace:
#0 /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionProcessor.php(473): ExtensionProcessor->addConfigGlobal('wgDisableCounte...', false, 'HitCounters')
#1 /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionProcessor.php(224): ExtensionProcessor->extractConfig1(Array)
#2 /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionRegistry.php(271): ExtensionProcessor->extractInfo('/opt/htdocs/wik...', Array, 1)
#3 /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionRegistry.php(161): ExtensionRegistry->readFromQueue(Array)
#4 /opt/htdocs/wiki/mediawiki/includes/Setup.php(125): ExtensionRegistry->loadFromQueue()
#5 /opt/htdocs/wiki/mediawiki/maintenance/doMaintenance.php(81): require_once('/opt/htdocs/wik...')
#6 /opt/htdocs/wiki/media in /opt/htdocs/wiki/mediawiki/includes/registration/ExtensionProcessor.php on line 520

Event Timeline

@freephile: Which exact MediaWiki version(s)? Which exact version and branch of HitCounters extension?
$wgDisableCounters was removed in 1.25.0 from MediaWiki itself.

Also see e.g. https://www.mediawiki.org/wiki/Topic:Ul5u73nr0pl8vdqh

MediaWiki version 1.32.3
https://beta.familysearch.org/wiki/en/Special:Version
master branch for HitCounters

I was simply trying to add HitCounters (the extension) to the wiki. I received the fatal error at the step when I ran upate.php