Topic on Project:Support desk

No localisation cache found for English

4
82.1.229.165 (talkcontribs)

After following the instructions here Download from Git#Keeping up to date and here Download from Git#Fetch external libraries to update my mediawiki installation with git and composer, I now receive the error:

[cbd732b2cf59e2ecfbdf4b98] /mediawiki/ MWException from line 478 of /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php: No localisation cache found for English. Please run maintenance/rebuildLocalisationCache.php.

Backtrace:

#0 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)

#1 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(345): LocalisationCache->loadItem(string, string)

#2 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)

#3 /var/lib/mediawiki/languages/Language.php(4332): LocalisationCache->getItem(string, string)

#4 /var/lib/mediawiki/languages/Language.php(228): Language::getFallbacksFor(string)

#5 /var/lib/mediawiki/languages/Language.php(191): Language::newFromCode(string)

#6 /var/lib/mediawiki/includes/Setup.php(697): Language::factory(string)

#7 /var/lib/mediawiki/includes/WebStart.php(133): require_once(string)

#8 /var/lib/mediawiki/index.php(40): require(string)

#9 {main}

On attempting to run maintenance/rebuildLocalisationCache.php I receive a similar error:

[95b69e87bc1d79ce936cfaa4] [no req]   MWException from line 478 of /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php: No localisation cache found for English. Please run maintenance/rebuildLocalisationCache.php.

Backtrace:

#0 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)

#1 /var/lib/mediawiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)

#2 /var/lib/mediawiki/languages/Language.php(3209): LocalisationCache->getItem(string, string)

#3 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(650): Language->getSpecialPageAliases()

#4 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(74): SpecialPageFactory::getLocalNameFor(string, string)

#5 /var/lib/mediawiki/extensions/ConfirmEdit/ConfirmEdit.php(220): SpecialPage::getTitleFor(string, string)

#6 [internal function]: confirmEditSetup()

#7 /var/lib/mediawiki/includes/Setup.php(823): call_user_func(string)

#8 /var/lib/mediawiki/maintenance/doMaintenance.php(97): require_once(string)

#9 /var/lib/mediawiki/maintenance/rebuildLocalisationCache.php(181): require_once(string)

#10 {main}

I then tried following these instructions Manual:Cache#Localization caching but this did not help.

Can anyone suggest what the problem is?

87.123.14.64 (talkcontribs)

This error happens when there is no fitting Messages*.php file. MediaWiki then does a fallback to en. Can you check, if your MediaWiki installation is complete? Have you uploaded all files, which are part of the MediaWiki tarball and do they have permissions, which allow the webserver to at least read them? Especially check the folder languages/messages/ for missing files!

I also remember a case where I/O problems with the filesystem caused this error. In that case somehow the language files were broken.

82.1.229.165 (talkcontribs)

Fixed that problem, there was some dodgy LocalisationCache configuration directive in LocalSettings.php. Now I have a different problem, which seems to be that some of my extensions are broken. I went into the folder of the one that was reporting itself as broken (I turned on debug logging) and did a git pull, and now the thing seems to be trying to update all the extensions (lots of "Fetching submodule" etcetera).

82.1.229.165 (talkcontribs)

OK, everything's mostly working now, had to update the skins using git as well. The problematic extension is ePubExport which I'm guessing hasn't been updated for the current mediawiki version. I tried fixing the error that the debug log was reporting, but while this allows the wiki to load properly now, the extension doesn't function.

Reply to "No localisation cache found for English"