Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 488100

Summary: www-apps/mediawiki - error when creating a new user: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
Product: Gentoo Linux Reporter: Peter <silmano>
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED OBSOLETE    
Severity: normal CC: silmano
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info

Description Peter 2013-10-15 09:03:25 UTC
Created attachment 360928 [details]
emerge info

With the following configuration:
Mediawiki - 1.21.2 (USE=imagemagick sqlite)
SQLite - 3.7.17 (USE=extensions readline)
PHP - 5.5.4 (USE=apache2 berkdb bzip2 cgi cli crypt ctype curl fileinfo filter gd gdbm hash iconv json nls opcache pdo phar posix readline session simplexml sqlite ssl tokenizer unicode xml xmlreader xmlrpc zip zlib)

Mediawiki fails to create any user once its properly configured.

Steps to reproduce the issue:
1) Click on create new accout.
2) Fill all the required fields.
3) Click on submit/create account.
4) Mediawiki reports the error: Fatal exception of type MWException

Enabling $wgShowExceptionDetails, I get the following instead:

User::addToDatabase: hit a key conflict attempting to insert a user row, but
then it doesn't exist when we select it!
Backtrace:
#0
/var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(468):
User->addToDatabase()
#1
/var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(453):
LoginForm->initUser(Object(User), false)
#2
/var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(236):
LoginForm->addNewAccountInternal()
#3
/var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(178):
LoginForm->addNewAccount()
#4 /var/www/localhost/htdocs/mediawiki/includes/SpecialPage.php(613):
LoginForm->execute(NULL)
#5 /var/www/localhost/htdocs/mediawiki/includes/SpecialPageFactory.php(487):
SpecialPage->run(NULL)
#6 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(291):
SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#7 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(565):
MediaWiki->performRequest()
#8 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(458):
MediaWiki->main()
#9 /var/www/localhost/htdocs/mediawiki/index.php(59): MediaWiki->run()
#10 {main}
Comment 1 Samuel Damashek (RETIRED) gentoo-dev 2014-03-22 18:20:51 UTC
Is it possible to attach a table dump of the user table?
Comment 2 Peter 2018-03-13 10:50:03 UTC
I'm closing this bug, since it was from an old version.