Topic on Project:Support desk

Fatal exception of type MWException after new install of 1.28.0

3
2A02:908:E852:9D60:3152:5D34:4682:BC72 (talkcontribs)

I got this Error after I uploaded the new LocalSettings.php

After I put $wgShowExceptionDetails in it I get:

[WHI@LcCoLCwAACQdQdkAAAMH] /index.php MWException from line 118 of /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place.

Backtrace:

   0 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(1030): LCStoreCDB->finishWrite()
   1 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(464): LocalisationCache->recache(string)
   2 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(338): LocalisationCache->initLanguage(string)
   3 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/cache/localisation/LocalisationCache.php(275): LocalisationCache->loadItem(string, string)
   4 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(4384): LocalisationCache->getItem(string, string)
   5 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(228): Language::getFallbacksFor(string)
   6 /mnt/web115/a2/12/57862812/htdocs/mediawiki/languages/Language.php(191): Language::newFromCode(string)
   7 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/Setup.php(714): Language::factory(string)
   8 /mnt/web115/a2/12/57862812/htdocs/mediawiki/includes/WebStart.php(137): require_once(string)
   9 /mnt/web115/a2/12/57862812/htdocs/mediawiki/index.php(40): require(string)
   10 {main}
This, that and the other (talkcontribs)

By default, MediaWiki 1.28 tries to create files called "l10_cache-XXX.cdb" (where XXX is a language code) in the cache/ directory inside the MediaWiki installation. You can either:

  1. try to make sure your web server can write to this directory; or
  2. set $wgLocalisationCacheConf['store'] = 'db'; in your LocalSettings.php file, to use the database to store localisation cache data instead of the cache/ folder in the filesystem.

Hopefully that helps!

152.26.211.39 (talkcontribs)
:O this worked perfectly; thank you very much.