https://bugzilla.wikimedia.org/show_bug.cgi?id=50275
--- Comment #8 from Brad Jorsch <[email protected]> --- This doesn't seem to be an API issue. The issue is that the DBO_TRX transaction is never getting closed. And it looks to me that the problem is that the reporter's weird script is not bothering to call LoadBalancer::shutdown(), which would make this bug RESOLVED INVALID. (In reply to comment #0) > The problem in a nutshell is: > - I try to create an account via an API call That's not what you're doing here. You're creating an account from a script that is poking at MediaWiki in a non-standard manner. > - At the end of the whole process MediaWiki closes connection without doing a > COMMIT thus losing all previous actions Also wrong. You're never telling MediaWiki to actually close the connection. Try adding the following to the end of your script and see if it works: DeferredUpdates::doUpdates(); $lb = wfGetLBFactory(); $lb->shutdown(); (In reply to comment #1) > In this case it really needs to call $user->addToDatabase() somewhere near to > the end That's being called in LoginForm::initUser(), which is called from LoginForm::addNewAccountInternal(), which is called from ApiCreateAccount to do the actual user creation. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
