I haven't been able to figure out why, but on actual pages (both on production wikis and in beta-labs) wgGlobalGroups is no longer being defined.
As a result, various gadgets and user scripts are no longer working properly.
wgGlobalGroups
Uncaught ReferenceError: wgGlobalGroups is not defined
It's declared in CentralAuthHooks::onMakeGlobalVariablesScript (source code).
Executing those steps from the console (deployment-bastion.wmflabs$ mwscript eval.php --wiki metawiki) results in the expected value, so something is going wrong in the front-end.
> global $wgUser; > $wgUser = User::newFromName('Krinkle'); > $vars = array(); > CentralAuthHooks::onMakeGlobalVariablesScript( &$vars ); > return $vars; array(1) { ["wgGlobalGroups"]=> array(2) { [0]=> string(9) "developer" [1]=> string(7) "steward" } }
> return $wgHooks['MakeGlobalVariablesScript']; array(14) { [0]=> string(45) "CentralAuthHooks::onMakeGlobalVariablesScript" [1]=> string(45) "AbuseFilterHooks::onMakeGlobalVariablesScript" [2]=> string(42) "WikiEditorHooks::makeGlobalVariablesScript" [3]=> string(48) "MultimediaViewerHooks::makeGlobalVariablesScript" [4]=> string(46) "VisualEditorHooks::onMakeGlobalVariablesScript" [5]=> string(41) "Gather\Hooks::onMakeGlobalVariablesScript" [6]=> string(25) "TranslateHooks::addConfig" [7]=> string(36) "EchoHooks::makeGlobalVariablesScript" [8]=> string(44) "CodeEditorHooks::onMakeGlobalVariablesScript" [9]=> string(49) "WikimediaEventsHooks::onMakeGlobalVariablesScript" [10]=> string(44) "UniversalLanguageSelectorHooks::addVariables" [11]=> array(1) { [0]=> string(46) "BetaFeaturesHooks::onMakeGlobalVariablesScript" } [12]=> string(27) "efCategoryTreeGetConfigVars" [13]=> string(23) "efCentralNoticeDefaults" }