Page MenuHomeMiraheze

MediaWiki internal error on obeymewiki
Closed, ResolvedPublic

Description

In the middle of the mediawiki, update, my wiki www.obeymewiki.com stopped working and shows this error:

MediaWiki internal error.

Original exception: [a9e187cf3a8d517205655059] 2022-06-16 00:29:52: Fatal exception of type "Error"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

Event Timeline

Unknown Object (User) added a comment.Jun 16 2022, 00:43
Call to undefined method User::isWatched()
from /srv/mediawiki/w/skins/Tweeki/includes/TweekiTemplate.php(51)
#0 /srv/mediawiki/w/includes/skins/SkinTemplate.php(135): TweekiTemplate->execute()
#1 /srv/mediawiki/w/includes/skins/SkinTemplate.php(150): SkinTemplate->generateHTML()
#2 /srv/mediawiki/w/includes/OutputPage.php(2807): SkinTemplate->outputPage()
#3 /srv/mediawiki/w/includes/MediaWiki.php(924): OutputPage->output(boolean)
#4 /srv/mediawiki/w/includes/MediaWiki.php(937): MediaWiki::{closure}()
#5 /srv/mediawiki/w/includes/MediaWiki.php(564): MediaWiki->main()
#6 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#7 /srv/mediawiki/w/index.php(46): wfIndexMain()
#8 {main}

I fixed this issue upstream for the Video extension a couple weeks ago, I will see if maybe I can submit an upstream patch for this one also.

Unknown Object (User) triaged this task as Normal priority.Jun 16 2022, 00:43
Unknown Object (User) added projects: Extensions, MediaWiki (SRE).
Unknown Object (User) moved this task from Backlog to Deployed Extension Bugs on the Extensions board.
Unknown Object (User) moved this task from Backlog to Short Term on the MediaWiki (SRE) board.

Okay, thank you. Is there anything that can be done in the meantime so the wiki is at least accessible to its users?

Unknown Object (User) added a comment.Jun 16 2022, 00:53

Okay, thank you. Is there anything that can be done in the meantime so the wiki is at least accessible to its users?

Change the skin away from Tweeki.

I can't access the wiki to do so. Every single page shows that error.

Unknown Object (User) added a comment.Jun 16 2022, 00:55

I can't access the wiki to do so. Every single page shows that error.

Oh... yeah I can see if it will let me disable it from the server if you want.

That would be a great help, thank you.

Unknown Object (User) added a comment.Jun 16 2022, 01:01

That would be a great help, thank you.

Now done.

Thank you. Would it be possible to have an estimate of when - if fixed - we will be able to change our wiki back to the tweeki skin? While it's very good the wiki itself is accessible again, much of the content is broken or missing, as it depends on using the tweeki skin.

Unknown Object (User) added a comment.Jun 16 2022, 01:16

Thank you. Would it be possible to have an estimate of when - if fixed - we will be able to change our wiki back to the tweeki skin? While it's very good the wiki itself is accessible again, much of the content is broken or missing, as it depends on using the tweeki skin.

I will try to do a patch within the next week. I do not know if or when upstream would merge it though.

Oh...well that's bad. I had a nightmare like this. Oh crap. Is it possible to temporarily revert the MediaWiki update just for our wiki? At least until I have the time to scramble and try to get another skin working properly?

I've encountered another error when trying to change the skin by visiting Special:Preferences

[ff69251308ff2d38cdb3c713] 2022-06-16 01:32:06: Fatal exception of type "DomainException"

Unknown Object (User) added a comment.Jun 16 2022, 01:42

I've encountered another error when trying to change the skin by visiting Special:Preferences

[ff69251308ff2d38cdb3c713] 2022-06-16 01:32:06: Fatal exception of type "DomainException"

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}

so some other skin is causing that as well, but the error here does not give us which one.

Okay this is really bad. The skin we use is broken, but I also can't even try using and editing other skins to find a new one to use in the meantime.

Is it possible to temporarily revert just our wiki to the older Mediawiki to fix all these errors and give me the time and means to try and find a solution to these problems?

It is not unfortunately as all wikis share the same codebase.

What should I do then? If it's another skin causing the error, would removing all but the basic skins fix it? Then I could at least test other skins, and if installing a skin again causes the error to return, as least I'd know which skin is the problem.

But I can't do that because of the error making the entire preferences page inaccessible.

I was able to get to the skins by the extensions page and then get to the Special:ManageWiki/settings page to change the default skin to Chameleon, but this this error returned:

MediaWiki internal error.

Original exception: [e2cffba9239282fe18e4c2fa] 2022-06-16 02:50:00: Fatal exception of type "Error"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

All of my wiki pages are down again, so I can't change the skin back to fix it.

Unknown Object (User) added a comment.Jun 16 2022, 02:59

I apologize for all the issues you have received here. Unfortunately I am now mobile, without access to change it back. Could you please try using ?useskin=vector at the end of the url and see if it works to change it back?

Okay thank you, that did work and now the site is back up again.

If using the Chameleon skin caused the error to return, is that skin also broken? Are there other wikis using that skin on Miraheze, and if so are they working? Or are they also down?

Unknown Object (User) added a comment.Jun 16 2022, 03:07

Okay thank you, that did work and now the site is back up again.

If using the Chameleon skin caused the error to return, is that skin also broken? Are there other wikis using that skin on Miraheze, and if so are they working? Or are they also down?

The chameleon skin should be fixable from our end, not an upstream patch. I'll work on it tomorrow.

Original exception: [e2cffba9239282fe18e4c2fa] 2022-06-16 02:50:00: Fatal exception of type "Error"

Class 'FileFetcher\SimpleFileFetcher' not found
from /srv/mediawiki/w/skins/chameleon/src/Chameleon.php(137)
#0 /srv/mediawiki/w/skins/chameleon/src/Chameleon.php(124): Skins\Chameleon\Chameleon->getComponentFactory()
#1 /srv/mediawiki/w/includes/skins/SkinTemplate.php(216): Skins\Chameleon\Chameleon->setupTemplateForOutput()
#2 /srv/mediawiki/w/skins/chameleon/src/Chameleon.php(112): SkinTemplate->prepareQuickTemplate()
#3 /srv/mediawiki/w/includes/skins/SkinTemplate.php(133): Skins\Chameleon\Chameleon->prepareQuickTemplate()
#4 /srv/mediawiki/w/includes/skins/SkinTemplate.php(150): SkinTemplate->generateHTML()
#5 /srv/mediawiki/w/includes/OutputPage.php(2807): SkinTemplate->outputPage()
#6 /srv/mediawiki/w/includes/MediaWiki.php(924): OutputPage->output(boolean)
#7 /srv/mediawiki/w/includes/MediaWiki.php(937): MediaWiki::{closure}()
#8 /srv/mediawiki/w/includes/MediaWiki.php(564): MediaWiki->main()
#9 /srv/mediawiki/w/index.php(53): MediaWiki->run()
#10 /srv/mediawiki/w/index.php(46): wfIndexMain()
#11 {main}

Okay, well I guess hopefully having found the only other culprit and it not being another upstream issue is good news. I had no idea the update was going to cause such major problems for my wiki.

Unknown Object (User) added a comment.Jun 18 2022, 18:41

Actually I just tested Chameleon on my own wiki and it does work, does the issue with that still persist?

Unknown Object (User) added a comment.Jun 18 2022, 18:48

I've encountered another error when trying to change the skin by visiting Special:Preferences

[ff69251308ff2d38cdb3c713] 2022-06-16 01:32:06: Fatal exception of type "DomainException"

Does this one still happen? I've only managed to reproduce this once, if skin is in $wgHiddenPrefs.

I tried using it again and it still does not work. I get this error, which I can't tell if it's the same error or not:

MediaWiki internal error.

Original exception: [2472bddd37f65f9ba120cade] 2022-06-18 18:48:13: Fatal exception of type "Error"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

I can get to the Special:Preferences page now and didn't have the error for that page show up, at least not this time.

Edit: Just to be sure, I previewed all of the basic skins, then added the Blue Sky skin and tried it as well, and all of those skins do work on my wiki.

Unknown Object (User) added a comment.Jun 18 2022, 20:31

The Chameleon issue should be fixed now.

Unknown Object (User) added a comment.Jun 18 2022, 20:32

Hopefully my patch for Tweeki will be merged soon also.

Thank you so very much! Now I can get to work formatting the Chameleon skin to be our stand-in until our original skin is hopefully available again.

Unknown Object (User) closed this task as Resolved.Jun 21 2022, 23:18
Unknown Object (User) claimed this task.

Closing as resolved, Tweeki should now work on your wiki again, so long as you don't set $wgTweekiSkinUseIconWatch in ManageWiki again. I am still waiting on my upstream patch to be merged to fix that config.

It does looks like the Tweeki skin works now, or at least using it doesn't break the wiki. There still seem to be display issues, like the fixed footer not being fixed anymore and CSS styles not working the way they did before the update. I guess my wiki will just stick to the Chameleon skin, though it's good to know if something else happens with that skin then we'll have a backup skin.