Page MenuHomePhabricator

Error: Call to a member function timeanddate() on null when requesting an account (due to $wgContLang removed in MW 1.36)
Closed, ResolvedPublic

Description

I needed to install from scratch, empty DB,all files removed before install

Mediawiki is 1.36.0, ConfirmAccount-REL1_36-b6541c7

Error:
[YMd3GeFvC-lUMQh3CTRzIwAAAAY] /Area51/Alpha/w/index.php?title=Special:RequestAccount Error: Call to a member function timeanddate() on null

Backtrace:

from /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/extensions/ConfirmAccount/includes/backend/ConfirmAccount.class.php(121)
#0 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/extensions/ConfirmAccount/includes/business/AccountRequestSubmission.php(256): ConfirmAccount::sendConfirmationMail()
#1 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/extensions/ConfirmAccount/includes/frontend/specialpages/actions/RequestAccount_body.php(343): AccountRequestSubmission->submit()
#2 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/extensions/ConfirmAccount/includes/frontend/specialpages/actions/RequestAccount_body.php(83): RequestAccountPage->doSubmit()
#3 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/includes/specialpage/SpecialPage.php(646): RequestAccountPage->execute()
#4 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run()
#5 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#6 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/includes/MediaWiki.php(913): MediaWiki->performRequest()
#7 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/includes/MediaWiki.php(546): MediaWiki->main()
#8 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/index.php(53): MediaWiki->run()
#9 /var/www/vhosts/mulatschak.com/httpdocs/Area51/Alpha/w/index.php(46): wfIndexMain()
#10 {main}

Event Timeline

Aklapper renamed this task from after installing extension ConfirmAccount i get error, when requesting an account to Error: Call to a member function timeanddate() on null when requesting an account.Jun 14 2021, 4:35 PM

That line says $wgContLang->timeanddate( $expiration, false ),

I am also getting this error. It would appear $wgContLang got completely removed - https://www.mediawiki.org/wiki/Manual:$wgContLang - and that could possibly be part of this error.

Aklapper renamed this task from Error: Call to a member function timeanddate() on null when requesting an account to Error: Call to a member function timeanddate() on null when requesting an account (due to $wgContLang removed in MW 1.36).Jul 10 2021, 8:21 PM

This has already been fixed in 40738dbfd0fa, but it hasn’t been backported to the MW 1.36 branch.

@Umherirrender: Do you think it's worth to backport your patch to 1.36?

Umherirrender claimed this task.

@Umherirrender: Do you think it's worth to backport your patch to 1.36?

Backported