Topic on Extension talk:ConfirmAccount

MWException on Special:ConfirmAccounts

2
Jubi225 (talkcontribs)

Trying to confirm an account request I get stuck on an MWException (the wiki is in German but the exception appears in English too). It seems to be an error in the HTML form of real name (case?). Anyway, it doesn't matter if real name is enabled or disabled. I tried to fix that error for hours but I didn't find a solution anywhere so I hope to get help here. My code (MediaWiki as well as extensions) comes from the Wikimedia git repo (Rel 1.28).

Here is the error:

[0a0b20a113c1e8b11fa05393] /wiki/index.php?title=Spezial:Benutzerkonto_anlegen&AccountRequestId=5&wpName=Mxmstrmn&returnto=Spezial%3ABenutzerkonto_best%C3%A4tigen%2Fauthors&reason=Heureka   MWException from line 461 of /var/www/html/wiki/includes/htmlform/HTMLForm.php: Descriptor with no class for realname: Array

(

[default] => 

[readonly] => 1

[validation-callback] => Closure Object

(

[static] => Array

(

[accReq] => UserAccountRequest Object

(

[id:protected] => 5

[name:protected] => Mxmstrmn

[realName:protected] =>

...

)

...

Backtrace:

#0 /var/www/html/wiki/includes/htmlform/HTMLForm.php(481): HTMLForm::getClassFromDescriptor(string, array)

#1 /var/www/html/wiki/includes/htmlform/VFormHTMLForm.php(48): HTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)

#2 /var/www/html/wiki/includes/htmlform/HTMLForm.php(336): VFormHTMLForm::loadInputFromParameters(string, array, VFormHTMLForm)

#3 /var/www/html/wiki/includes/libs/ObjectFactory.php(147): HTMLForm->__construct(array, RequestContext)

#4 /var/www/html/wiki/includes/htmlform/HTMLForm.php(281): ObjectFactory::constructClassInstance(string, array)

#5 /var/www/html/wiki/includes/specialpage/LoginSignupSpecialPage.php(663): HTMLForm::factory(string, array, RequestContext)

#6 /var/www/html/wiki/includes/specialpage/AuthManagerSpecialPage.php(402): LoginSignupSpecialPage->getAuthForm(array, string)

#7 /var/www/html/wiki/includes/specialpage/LoginSignupSpecialPage.php(305): AuthManagerSpecialPage->trySubmit()

#8 /var/www/html/wiki/includes/specialpage/SpecialPage.php(522): LoginSignupSpecialPage->execute(NULL)

#9 /var/www/html/wiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)

#10 /var/www/html/wiki/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)

#11 /var/www/html/wiki/includes/MediaWiki.php(851): MediaWiki->performRequest()

#12 /var/www/html/wiki/includes/MediaWiki.php(512): MediaWiki->main()

#13 /var/www/html/wiki/index.php(43): MediaWiki->run()

#14 {main}
Linedwell (talkcontribs)

I also have this problem on REL1_29 with the default configuration indicated on the documentation:

$wgMakeUserPageFromBio = '''false''';
$wgAutoWelcomeNewUsers = '''false''';
$wgConfirmAccountRequestFormItems = '''array'''(
'UserName'        => '''array'''( 'enabled' => '''true''' ),
'RealName'        => '''array'''( 'enabled' => '''false''' ),
'Biography'       => '''array'''( 'enabled' => '''false''', 'minWords' => 50 ),
'AreasOfInterest' => '''array'''( 'enabled' => '''false''' ),
'CV'              => '''array'''( 'enabled' => '''false''' ),
'Notes'           => '''array'''( 'enabled' => '''true''' ),
'Links'           => '''array'''( 'enabled' => '''false''' ),
'TermsOfService'  => '''array'''( 'enabled' => '''false''' ),
);
Reply to "MWException on Special:ConfirmAccounts"