Hey, everyone. I tried upgrading from 1.25.1 to 1.27.1. The first version was downloaded manually from mediawiki, thus I cloned the second one through git, so I can use 'checkout' for upgrading to future versions. I used </nowiki>git clone -b REL1_27 https://gerrit.wikimedia.org/r/mediawiki/core temp</nowiki>
to clone the new version into a folder called 'temp', then I installed composer using the instructions here. Then I copied the images, extensions and skins folders from the old mw folder to the new one using cp -r ../dml-wiki/(name of folder, i.e. images, extensions or skins)/* (same name of folder)/. Lastly, I copied localsettings.pnp, favico and the logos. Then I ran php update.php and got this error [6c3190bdbe6ec58d15994cb1] 2016-09-28 11:46:09: Fatal exception of type MWException
. I ran the webupdater, too, just in case, but same thing. Then I remembered to set $wgShowExceptionDetails to true and I got these lines:
[8c06da68ab42fa4f454f93f8] /Special:RecentChanges MWException from line 108 of /srv/dml-wiki/includes/cache/localisation/LCStoreCDB.php: Unable to open CDB file for write "/srv/dml-wiki/cache/l10n_cache-en.cdb"
Backtrace:
- 0 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(1014): LCStoreCDB->startWrite(string)
- 1 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
- 2 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
- 3 /srv/dml-wiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
- 4 /srv/dml-wiki/languages/Language.php(464): LocalisationCache->getItem(string, string)
- 5 /srv/dml-wiki/includes/search/SearchEngineConfig.php(42): Language->getNamespaces()
- 6 /srv/dml-wiki/includes/user/User.php(1530): SearchEngineConfig->searchableNamespaces()
- 7 /srv/dml-wiki/includes/user/User.php(5049): User::getDefaultOptions()
- 8 /srv/dml-wiki/includes/user/User.php(528): User->loadOptions()
- 9 /srv/dml-wiki/includes/user/User.php(444): User->saveToCache()
- 10 /srv/dml-wiki/includes/user/User.php(405): User->loadFromId(integer)
- 11 /srv/dml-wiki/includes/session/UserInfo.php(88): User->load()
- 12 /srv/dml-wiki/includes/session/CookieSessionProvider.php(119): MediaWiki\Session\UserInfo::newFromId(string)
- 13 /srv/dml-wiki/includes/session/SessionManager.php(479): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
- 14 /srv/dml-wiki/includes/session/SessionManager.php(182): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
- 15 /srv/dml-wiki/includes/WebRequest.php(700): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
- 16 /srv/dml-wiki/includes/session/SessionManager.php(121): WebRequest->getSession()
- 17 /srv/dml-wiki/includes/Setup.php(747): MediaWiki\Session\SessionManager::getGlobalSession()
- 18 /srv/dml-wiki/includes/WebStart.php(137): require_once(string)
- 19 /srv/dml-wiki/index.php(40): require(string)
- 20 {main}
I have absolutely no idea how to fix them. Please advise me as to what I should do.