Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488100 - 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!
Summary: www-apps/mediawiki - error when creating a new user: User::addToDatabase: hit...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-15 09:03 UTC by Peter
Modified: 2018-03-13 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge_info.log,4.32 KB, text/plain)
2013-10-15 09:03 UTC, Peter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.