Page MenuHomePhabricator

LBFactory.php: Mediawiki tried to access the database via wfGetDB(). This is not allowed.
Closed, DuplicatePublic

Description

I tried to install master@eba9321b2b after T104037 supposedly fixed the composer-merge issue but now running into "LBFactory.php: Mediawiki tried to access the database via wfGetDB(). This is not allowed." [0] when installing MW from scratch.

[712a7410] /mw-core/mw-config/index.php?page=Name DBAccessError from line 364 of ...\includes\db\LBFactory.php: Mediawiki tried to access the database via wfGetDB(). This is not allowed.

Backtrace:

#0 ...\includes\GlobalFunctions.php(3614): LBFactoryFake->getMainLB(boolean)
#1 ...\includes\User.php(348): wfGetLB()
#2 ...\includes\User.php(2992): User->load()
#3 ...\includes\User.php(3007): User->getGroups()
#4 ...\includes\password\UserPasswordPolicy.php(103): User->getEffectiveGroups()
#5 ...\includes\password\UserPasswordPolicy.php(74): UserPasswordPolicy->getPoliciesForUser(User)
#6 ...\includes\User.php(860): UserPasswordPolicy->checkUserPassword(User, string)
#7 ...\includes\User.php(808): User->checkPasswordValidity(string)
#8 ...\includes\installer\WebInstallerPage.php(912): User->getPasswordValidity(string)
#9 ...\includes\installer\WebInstallerPage.php(739): WebInstallerName->submit()
#10 ...\includes\installer\WebInstaller.php(280): WebInstallerName->execute()
#11 ...\mw-config\index.php(77): WebInstaller->execute(array)
#12 ...\mw-config\index.php(36): wfInstallerMain()
#13 {main}

[0] https://cloud.githubusercontent.com/assets/1245473/8537298/5f23fdda-245d-11e5-9c2c-793ec8fd1410.png

Event Timeline

mwjames raised the priority of this task from to Needs Triage.
mwjames updated the task description. (Show Details)
mwjames subscribed.