Page MenuHomePhabricator

failure of service creation for service 'ContentLanguage' not shown
Closed, ResolvedPublic


When the ContentLanguage service cannot be created due to a "circular dependency when creating service!", than mediawiki shows another exception:

Fatal error: Uncaught Error: Call to a member function isSafeToLoad() on null in \includes\cache\MessageCache.php:171

This is happen because $wgUser is null but accessed in MessageCache::getParserOptions when trying to parse the error message for the failure

$wgContLang is set before $wgUser in Setup.php

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSat, Aug 24, 10:20 PM
Krinkle moved this task from Backlog to MessageCache on the MediaWiki-Cache board.Thu, Aug 29, 1:41 AM