Page MenuHomePhabricator

Using CACHE_DB as main cache throws a fatal error
Closed, ResolvedPublic

Description

patch for Setup.php

When i want to use CACHE_DB as main cache, i got an fatal error saying "Call to a member function getConnection() on a non-object in /Library/WebServer/Documents/phase3/includes/GlobalFunctions.php on line 2267" wich is the function wfGetDB.
I suppose this due to wfIncrStats() on lines 205 and 209 in Setup.php that need the cache. However, $wgLoadBalancer is initialized at line 228.
When i put the 'SetupSession' of the setup just before 'User' and then the cache just before the initialization of $wgMessageCache, all works fine.
I suggest to change the order of the setup order to fix that error.


Version: 1.12.x
Severity: normal

Attached:

Details

Reference
bz12304

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:01 PM
bzimport set Reference to bz12304.
bzimport added a subscriber: Unknown Object (MLST).

Fixed in r41023, 1.12 issue only