Page MenuHomePhabricator

ConfirmAccount throwing OOUI singleton errors on Special:RequestAccount after upgrading to 1.35
Open, Needs TriagePublicBUG REPORT

Description

I'm upgrading a 1.31 MW install to 1.35, and get the following error when clicking on "Request account". wgDefaultSkin is Timeless, which is at version 0.8.9

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(260): OOUI\Theme::singleton()
 #1 /var/www/html/vendor/oojs/oojs-ui/php/Tag.php(494): OOUI\Element->toString()
 #2 /var/www/html/extensions/ConfirmEdit/SimpleCaptcha/SimpleCaptcha.php(149): OOUI\Tag->__toString()
 #3 /var/www/html/extensions/ConfirmAccount/includes/frontend/specialpages/actions/RequestAccount_body.php(251): SimpleCaptcha->getFormInformation()
 #4 /var/www/html/extensions/ConfirmAccount/includes/frontend/specialpages/actions/RequestAccount_body.php(87): RequestAccountPage->showForm()
 #5 /var/www/html/includes/specialpage/SpecialPage.php(600): RequestAccountPage->execute(NULL)
 #6 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
 #7 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Object(Title), Object(RequestContext)) 
 #8 in /var/www/html/vendor/oojs/oojs-ui/php/Tag.php on line 496

I'm using wfLoadExtension( 'ConfirmAccount' ); to load the extension, but the issue also occurs when using require_once. I have $wgGroupPermissions['*']['createaccount'] = false; in LocalSettings.php from troubleshooting suggestions on the ConfirmAccount page.

The wiki is running in a docker container. The Dockerfile adds ConfirmAccount as follows ($compat is currently set to "REL1_35"):

&& cd /var/www/html/extensions \
&& git clone https://github.com/wikimedia/mediawiki-extensions-ConfirmAccount.git ConfirmAccount \
&& cd ConfirmAccount \
&& git checkout $compat \

Per Special:Version, MW is at 1.35.5, ConfirmAccount is at rev 1a45bf5, and ConfirmEdit is 1.6.0

I tried using the following steps in my Dockerfile, but the didn't help:

&& cd /var/www/html/extensions \
&& rm -rf ConfirmEdit \
&& git clone https://github.com/wikimedia/mediawiki-extensions-ConfirmEdit.git ConfirmEdit \
&& cd ConfirmEdit \
&& git checkout $compat \
&& git submodule update --init \