Wikipedia:Reference desk/Archives/Computing/2024 March 5
Computing desk | ||
---|---|---|
< March 4 | << Feb | March | Apr >> | Current desk > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
March 5
editOOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set
editI pulled mediawiki:latest in docker desktop. I received the notification: "You've just made your tenth edit; thank you, and please keep going!". When I click on it I see the following error:
http://localhost:999/index.php?title=Nonsense&oldid=prev&diff=11&markasread=6
Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /var/www/html/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /var/www/html/vendor/oojs/oojs-ui/php/Element.php(259): OOUI\Theme::singleton() #1 /var/www/html/vendor/oojs/oojs-ui/php/Tag.php(507): OOUI\Element->toString() #2 /var/www/html/extensions/VisualEditor/includes/Hooks.php(244): OOUI\Tag->__toString() #3 /var/www/html/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onTextSlotDiffRendererTablePrefix(Object(TextSlotDiffRenderer), Object(RequestContext), Array) #4 /var/www/html/includes/HookContainer/HookRunner.php(1334): MediaWiki\HookContainer\HookContainer->run('TextSlotDiffRen...', Array) #5 /var/www/html/includes/diff/TextSlotDiffRenderer.php(273): MediaWiki\HookContainer\HookRunner->onTextSlotDiffRendererTablePrefix(Object(TextSlotDiffRenderer), Object(RequestContext), Array) #6 /var/www/html/includes/diff/DifferenceEngine.php(942): TextSlotDiffRenderer->getTablePrefix(Object(RequestContext), Object(MediaWiki\Title\Title)) #7 /var/www/html/includes/diff/DifferenceEngine.php(928): DifferenceEngine->showTablePrefixes() #8 /var/www/html/includes/page/Article.php(979): DifferenceEngine->showDiffPage(false) #9 /var/www/html/includes/page/Article.php(490): Article->showDiffPage() #10 /var/www/html/includes/actions/ViewAction.php(78): Article->view() #11 /var/www/html/includes/MediaWiki.php(583): ViewAction->show() #12 /var/www/html/includes/MediaWiki.php(363): MediaWiki->performAction(Object(Article), Object(MediaWiki\Title\Title)) #13 /var/www/html/includes/MediaWiki.php(960): MediaWiki->performRequest() #14 /var/www/html/includes/MediaWiki.php(613): MediaWiki->main() #15 /var/www/html/index.php(50): MediaWiki->run() #16 /var/www/html/index.php(46): wfIndexMain() #17 {main} in /var/www/html/vendor/oojs/oojs-ui/php/Tag.php on line 509
I Googled it and it sent me to https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ConfirmEdit/+/534902 but that line was already in my version of that file.
I added:
$wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; $wgDefaultUserOptions['usebetatoolbar-cdt'] = 1; $wgDefaultUserOptions['usebetatoolbar-source'] = 1; $wgDefaultUserOptions['usebetatoolbar-diff'] = 1; $wgDefaultUserOptions['usebetatoolbar-wikitext'] = 1;
to LocalSettings.php but that did nothing as far as I can see. How can I fix this error?
MediaWiki 1.41.0
PHP 8.1.27 (apache2handler)
ICU 72.1
SQLite 3.40.1
Poem, Echo, Thanks, LoginNotify, SpamBlacklist, ReplaceText, TitleBlacklist, Cite, Linter, VisualEditor, DiscussionTools, AbuseFilter, ImageMap, Gadgets, ConfirmEdit, Interwiki, TemplateData, InputBox, Nuke, WikiEditor, MultimediaViewer, TextExtracts, PageImages, Popups, CheckUser