Topic on Project:Support desk

$wgHiddenPrefs[] = “skin”; error

2
鈴音雨 (talkcontribs)

Hi, I have only loaded the Citizen skin on my wiki and I used $wgHiddenPrefs[] = “skin”; to hide the skin settings from Preferences, but I get an error on the preferences page.

[7fc6880336eec79626218910] /wiki/Special:Preferences DomainException: HTMLForm::getField: no field named skin
Backtrace:
from /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLForm.php(458)
#0 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(153): HTMLForm->getField()
#1 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(168): HTMLFormField->getNearestField()
#2 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(284): HTMLFormField->getNearestFieldValue()
#3 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(272): HTMLFormField->checkStateRecurse()
#4 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(350): HTMLFormField->checkStateRecurse()
#5 /home/<username>/domains/<domain>/public_html/includes/htmlform/HTMLFormField.php(396): HTMLFormField->isHidden()
#6 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(350): HTMLFormField->validate()
#7 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(265): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues()
#8 /home/<username>/domains/<domain>/public_html/includes/preferences/DefaultPreferencesFactory.php(1895): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor()
#9 /home/<username>/domains/<domain>/public_html/includes/specials/SpecialPreferences.php(147): MediaWiki\Preferences\DefaultPreferencesFactory->getForm()
#10 /home/<username>/domains/<domain>/public_html/includes/specials/SpecialPreferences.php(114): MediaWiki\Specials\SpecialPreferences->getFormObject()
#11 /home/<username>/domains/<domain>/public_html/includes/specialpage/SpecialPage.php(727): MediaWiki\Specials\SpecialPreferences->execute()
#12 /home/<username>/domains/<domain>/public_html/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run()
#13 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#14 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(960): MediaWiki->performRequest()
#15 /home/<username>/domains/<domain>/public_html/includes/MediaWiki.php(613): MediaWiki->main()
#16 /home/<username>/domains/<domain>/public_html/index.php(50): MediaWiki->run()
#17 /home/<username>/domains/<domain>/public_html/index.php(46): wfIndexMain()
#18 {main}

I originally posted this on Skin talk:Citizen, but I heard that the problem is not Citizen related, so I came here. Using: MediaWiki 1.41.1 Citizen: 2.13.1

Bawolff (talkcontribs)
Reply to "$wgHiddenPrefs[] = “skin”; error"