Page MenuHomeMiraheze

Special:Preference page throws DomainException
Closed, ResolvedPublic

Description

my Preferences page acts up since the upgrade (well, I *guess* since then, at least currently it does), tested with 3 different browsers

37BFECD7-D838-41A0-9F6F-E41395352A8D.png (299×1 px, 50 KB)

: Internal error
: [663bfa7e0ff2d56adfb96305] 2022-06-21 23:24:07: Fatal exception of type "DomainException"

https://dmlwiki.miraheze.org/wiki/Special:Preferences

It works on all other Wikis I have tried though.

Event Timeline

HTMLForm::getField: no field named skin
from /srv/mediawiki/w/includes/htmlform/HTMLForm.php(441)
#0 /srv/mediawiki/w/includes/htmlform/HTMLFormField.php(145): HTMLForm->getField(string)
#1 /srv/mediawiki/w/includes/htmlform/HTMLFormField.php(160): HTMLFormField->getNearestField(string, boolean)
#2 /srv/mediawiki/w/includes/htmlform/HTMLFormField.php(277): HTMLFormField->getNearestFieldValue(array, string, boolean, boolean)
#3 /srv/mediawiki/w/includes/htmlform/HTMLFormField.php(347): HTMLFormField->checkStateRecurse(array, array)
#4 /srv/mediawiki/w/includes/htmlform/HTMLFormField.php(362): HTMLFormField->isHidden(array)
#5 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(2033): HTMLFormField->isDisabled(array)
#6 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(578): HTMLForm->loadData()
#7 /srv/mediawiki/w/includes/htmlform/HTMLForm.php(630): HTMLForm->prepareForm()
#8 /srv/mediawiki/w/includes/specials/SpecialPreferences.php(122): HTMLForm->show()
#9 /srv/mediawiki/w/includes/specialpage/SpecialPage.php(671): SpecialPreferences->execute(NULL)
#10 /srv/mediawiki/w/includes/specialpage/SpecialPageFactory.php(1378): SpecialPage->run(NULL)
#11 /srv/mediawiki/w/includes/MediaWiki.php(315): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#12 /srv/mediawiki/w/includes/MediaWiki.php(910): MediaWiki->performRequest()
#13 /srv/mediawiki/w/includes/MediaWiki.php(564): MediaWiki->main()
#14 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#15 /srv/mediawiki/w/index.php(46): wfIndexMain()
#16 {main}

The actual error above doesn't help us at all in figuring out which extension is causing this.

I (or one of you) can disable all the extensions at will - the site is private anyway and with the removed Pivot skin needs a major revamp.

I think I have an idea on issue. Please try changing the default skin in ManageWiki, then back again to reset skin, since I'm assuming the default skin before was Pivot? If so then three isn't a skin preference anymore, which from what I can see from core now makes skin not appear at all, and with 1.38 that seems to fatal.

Trace:

it was (that was my original idea as well btw.)
now as it said "Timeless" I thought - this would do.
changed it to "Vector-2022" now, same error
Cosmos (just now added with the manage-wiki) also throws that error

fixed it - we had "Timeless" on our skip list
and there was apparently no way to get the page to accept a different skin than that.

removed Timeless from the Skip-Skin list, works again

it was (that was my original idea as well btw.)
now as it said "Timeless" I thought - this would do.
changed it to "Vector-2022" now, same error
Cosmos (just now added with the manage-wiki) also throws that error

Cosmos actually does throw the error do to preferences it uses, I just did a patch for Cosmos (https://github.com/wikimedia/mediawiki-skins-Cosmos/commit/afb9753) that removes the preference entirely to make it not at fault anymore. But something else is causing this as well, since last I looked on that wiki, Cosmos wasn't actually enabled.

I'm guessing the overall cause is wgSkipSkins being set, but that is intended to support most skins being set there, so not sure why it would happen.

I'm guessing the overall cause is wgSkipSkins being set, but that is intended to support most skins being set there, so not sure why it would happen.

yes that was it
Deleting "Pivot" (which was our only skin) set the wiki appearance to "Timeless", which was in our wgSkipSkins list. So it had no skin to set.
After removing it from the list I got it working again.

Soukupmi claimed this task.

Solution: remove Timeless from the Skip Skins ($wgSkipSkins) list