Hello, since I upgraded from MediaWiki 1.40.0 to 1.41.0, my Nginx log file is flooded with this error:
2024/03/15 02:58:42 [error] 12345#0: *1234567 FastCGI sent in stderr: "PHP message: PHP Fatal error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /path/to/my/wiki/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /path/to/my/wiki/vendor/oojs/oojs-ui/php/Element.php(259): OOUI\Theme::singleton() #1 /path/to/my/wiki/vendor/oojs/oojs-ui/php/Tag.php(507): OOUI\Element->toString() #2 /path/to/my/wiki/extensions/VisualEditor/includes/Hooks.php(244): OOUI\Tag->__toString() #3 /path/to/my/wiki/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onTextSlotDiffRendererTablePrefix() #4 /path/to/my/wiki/includes/HookContainer/HookRunner.php(1334): MediaWiki\HookContainer\HookContainer->run() #5 /path/to/my/wiki/includes/diff/TextSlotDiffRenderer.php(273): MediaWiki\HookContainer\HookRunner->onTextSlotDiffRendererTablePrefix() #6 /path/to/my/wiki/includes/diff/DifferenceEngine.php(942): TextSlotDiffRenderer->getTablePrefix() #7 /path/to/my/wiki/includes/diff/DifferenceEngine.php(928): DifferenceEngine->showTablePrefixes() #8 /path/to/my/wiki/includes/page/Article.php(979): DifferenceEngine->showDiffPage() #9 /path/to/my/wiki/includes/page/Article.php(490): Article->showDiffPage() #10 /path/to/my/wiki/includes/actions/ViewAction.php(78): Article->view() #11 /path/to/my/wiki/includes/MediaWiki.php(583): ViewAction->show() #12 /path/to/my/wiki/includes/MediaWiki.php(363): MediaWiki->performAction() #13 /path/to/my/wiki/includes/MediaWiki.php(960): MediaWiki->performRequest() #14 /path/to/my/wiki/includes/MediaWiki.php(613): MediaWiki->main() #15 /path/to/my/wiki/index.php(50): MediaWiki->run() #16 /path/to/my/wiki/index.php(46): wfIndexMain() #17 {main}" while reading response header from upstream, client: 123.45.67.89, server: my.wiki.com, request: "GET /w/index.php?diff=193481&oldid=prev&title=Article_Name HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: " my.wiki.com"
When I disable the VisualEditor extension, the error is gone.
Steps to replicate the issue:
What happens?
The browser shows a blank page or HTTP error 500 and the error mentioned above is added to the log file.
What should have happened instead?
A page like this should be shown with the text: "(No difference)".
Software version:
OpenBSD 7.4, Nginx 1.24.0, PHP 8.1.25 (fpm-fcgi), MariaDB 10.9.6, Memcached 1.6.15, and MediaWiki 1.41.0, with REL1_41 extensions.