Page MenuHomePhabricator

Cannot create an actor for a usable name that is not an existing user
Open, Needs TriagePublic

Description

When poking T253878

[aadb7401e8155df042ff3fbf] /wiki/Special:UserMerge CannotCreateActorException from line 2190 of /var/www/wiki/mediawiki/core/includes/user/User.php: Cannot create an actor for a usable name that is not an existing user: user_id=0 user_name="Anonymous"

Backtrace:

#0 /var/www/wiki/mediawiki/extensions/UserMerge/includes/MergeUser.php(369): User->getActorId(Wikimedia\Rdbms\MaintainableDBConnRef)
#1 /var/www/wiki/mediawiki/extensions/UserMerge/includes/MergeUser.php(50): MergeUser->mergeDatabaseTables(string)
#2 /var/www/wiki/mediawiki/extensions/UserMerge/includes/SpecialUserMerge.php(128): MergeUser->merge(User, string)
#3 /var/www/wiki/mediawiki/core/includes/htmlform/HTMLForm.php(694): SpecialUserMerge->onSubmit(array, OOUIHTMLForm)
#4 /var/www/wiki/mediawiki/core/includes/htmlform/HTMLForm.php(586): HTMLForm->trySubmit()
#5 /var/www/wiki/mediawiki/core/includes/htmlform/HTMLForm.php(601): HTMLForm->tryAuthorizedSubmit()
#6 /var/www/wiki/mediawiki/core/includes/specialpage/FormSpecialPage.php(187): HTMLForm->show()
#7 /var/www/wiki/mediawiki/core/includes/specialpage/SpecialPage.php(582): FormSpecialPage->execute(NULL)
#8 /var/www/wiki/mediawiki/core/includes/specialpage/SpecialPageFactory.php(623): SpecialPage->run(NULL)
#9 /var/www/wiki/mediawiki/core/includes/MediaWiki.php(299): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#10 /var/www/wiki/mediawiki/core/includes/MediaWiki.php(978): MediaWiki->performRequest()
#11 /var/www/wiki/mediawiki/core/includes/MediaWiki.php(535): MediaWiki->main()
#12 /var/www/wiki/mediawiki/core/index.php(47): MediaWiki->run()
#13 {main}

Event Timeline

Reedy created this task.May 28 2020, 4:49 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 28 2020, 4:49 PM

See Topic:Veff5il64wcsw87l for a workaround (or actual fix?).

Change 599391 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/UserMerge@master] Add Anonymous to $wgReservedUsernames

https://gerrit.wikimedia.org/r/599391

Looks like there's another patch from the duplicate task, made by Florian, still unmerged

https://gerrit.wikimedia.org/r/588388

JJMC89 moved this task from User rights to Other on the MediaWiki-User-management board.