Last modified: 2012-11-02 01:01:12 UTC
Noticed this when trawling through the exception log on fluorine. We have about 136 instances in the log of "Exception from line 3072 of /usr/local/apache/common-local/php-1.21wmf2/includes/User.php: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!" Don't really know if this is translate or centralauth related but here's a typical stack trace: 23444-2012-11-01 16:29:36 mw24 metawiki: [271da023] /wiki/Special:BannerRandom?userlang=en&sitename=Wikipedia&project=wikipedia&anonymous=false&bucket=0&country=PH&slot=10 Exception from line 3072 of /usr/local/apache/common-local/php-1.21wmf2/includes/User.php: User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it! 23445-#0 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralAuth/CentralAuthHooks.php(568): User->addToDatabase() 23446-#1 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralAuth/CentralAuthHooks.php(276): CentralAuthHooks::attemptAddUser(Object(User), 'XXX') 23447-#2 [internal function]: CentralAuthHooks::onUserLoadFromSession(Object(User), NULL) 23448-#3 /usr/local/apache/common-local/php-1.21wmf2/includes/Hooks.php(253): call_user_func_array('CentralAuthHook...', Array) 23449-#4 /usr/local/apache/common-local/php-1.21wmf2/includes/GlobalFunctions.php(3819): Hooks::run('UserLoadFromSes...', Array) 23450-#5 /usr/local/apache/common-local/php-1.21wmf2/includes/User.php(947): wfRunHooks('UserLoadFromSes...', Array) 23451-#6 /usr/local/apache/common-local/php-1.21wmf2/includes/User.php(289): User->loadFromSession() 23452-#7 /usr/local/apache/common-local/php-1.21wmf2/includes/User.php(4125): User->load() 23453-#8 /usr/local/apache/common-local/php-1.21wmf2/includes/User.php(2223): User->loadOptions() 23454-#9 /usr/local/apache/common-local/php-1.21wmf2/includes/context/RequestContext.php(276): User->getOption('language') 23455-#10 /usr/local/apache/common-local/php-1.21wmf2/includes/StubObject.php(183): RequestContext->getLanguage() 23456-#11 /usr/local/apache/common-local/php-1.21wmf2/includes/StubObject.php(128): StubUserLang->_newObject() 23457-#12 /usr/local/apache/common-local/php-1.21wmf2/includes/StubObject.php(78): StubObject->_unstub('getCode', 5) 23458-#13 /usr/local/apache/common-local/php-1.21wmf2/includes/StubObject.php(176): StubObject->_call('getCode', Array) 23459-#14 [internal function]: StubUserLang->__call('getCode', Array) 23460-#15 /usr/local/apache/common-local/php-1.21wmf2/includes/Message.php(347): StubUserLang->getCode() 23461:#16 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralNotice/special/SpecialBannerLoader.php(198): Message->inLanguage('en') 23462:#17 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralNotice/special/SpecialBannerLoader.php(126): SpecialBannerLoader->getMessage('centralnotice-t...') 23463:#18 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralNotice/special/SpecialBannerLoader.php(86): SpecialBannerLoader->getNoticeTemplate() 23464:#19 /usr/local/apache/common-local/php-1.21wmf2/extensions/CentralNotice/special/SpecialBannerRandom.php(40): SpecialBannerLoader->getJsNotice('2012EditorSurve...') 23465-#20 /usr/local/apache/common-local/php-1.21wmf2/includes/SpecialPage.php(599): SpecialBannerRandom->execute(NULL) 23466-#21 /usr/local/apache/common-local/php-1.21wmf2/includes/SpecialPageFactory.php(497): SpecialPage->run(NULL) 23467-#22 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) 23468-#23 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(554): MediaWiki->performRequest() 23469-#24 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(447): MediaWiki->main() 23470-#25 /usr/local/apache/common-local/php-1.21wmf2/index.php(59): MediaWiki->run() 23471-#26 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...') 23472-#27 {main}
*** This bug has been marked as a duplicate of bug 41609 ***