Page MenuHomeMiraheze

error Fatal exception of type "MediaWiki\Config\ConfigException" when trying to load page
Closed, ResolvedPublic

Description

Dear Miraheze Team,

There is an issue with several pages on https://2b2t.miraheze.org of the type Fatal exception of type "MediaWiki\Config\ConfigException"
For example https://2b2t.miraheze.org/wiki/Jared2013 throws this.

Do you have any suggestions how we can fix this? Any help would be greatly appreciated.

Best regards and a wonderful start to the week,

Terbin

Event Timeline

[34c511e3f1ae1b4f5f8651ca] /wiki/Jared2013 MediaWiki\Config\ConfigException: Invalid empty value in $wgFlaggedRevsRestrictionLevels

Backtrace:

from /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FlaggedRevs.php(138)
#0 /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FRPageConfig.php(177): FlaggedRevs::getRestrictionLevels()
#1 /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FRPageConfig.php(45): FRPageConfig::isValidRestriction(string)
#2 /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FlaggableWikiPage.php(479): FRPageConfig::getVisibilitySettingsFromRow(stdClass)
#3 /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FlaggableWikiPage.php(352): FlaggableWikiPage->loadPageData()
#4 /srv/mediawiki/1.41/extensions/FlaggedRevs/backend/FlaggableWikiPage.php(307): FlaggableWikiPage->getStabilitySettings()
#5 /srv/mediawiki/1.41/extensions/FlaggedRevs/frontend/FlaggedRevsUIHooks.php(259): FlaggableWikiPage->isReviewable()
#6 /srv/mediawiki/1.41/includes/HookContainer/HookContainer.php(161): FlaggedRevsUIHooks->onInitializeArticleMaybeRedirect(MediaWiki\Title\Title, MediaWiki\Request\WebRequest, boolean, boolean, Article)
#7 /srv/mediawiki/1.41/includes/HookContainer/HookRunner.php(2191): MediaWiki\HookContainer\HookContainer->run(string, array)
#8 /srv/mediawiki/1.41/includes/MediaWiki.php(500): MediaWiki\HookContainer\HookRunner->onInitializeArticleMaybeRedirect(MediaWiki\Title\Title, MediaWiki\Request\WebRequest, boolean, boolean, Article)
#9 /srv/mediawiki/1.41/includes/MediaWiki.php(361): MediaWiki->initializeArticle()
#10 /srv/mediawiki/1.41/includes/MediaWiki.php(960): MediaWiki->performRequest()
#11 /srv/mediawiki/1.41/includes/MediaWiki.php(613): MediaWiki->main()
#12 /srv/mediawiki/config/initialise/entrypoints/index.php(100): MediaWiki->run()
#13 /srv/mediawiki/config/initialise/entrypoints/index.php(95): wfIndexMain()
#14 {main}

This is a bit of a weird one, because the documentation says that the levels are set at Special:Stabilization, but that special page doesn't exist on that wiki despite having FlaggedRevs enabled.

Maybe removing and re-installing the extension could help?

Sorry for the delayed response but you can try that, yes, but I'm not certain it will help. I will look more into this soon.

Universal_Omega claimed this task.

This should be fixed now, for some reason $wgFlaggedRevsRestrictionLevels was set to [ 'reviewer', 'sysop', '' ] which is invalid as only rights, not groups can be in there additionally '' being there is defined to return a ConfigException I have reset this variable to what it should have been which should fix the issue...