Jump to content

Topic on Project:Support desk

Unable to add another language

5
Mitakcor (talkcontribs)

Hi guys,

Just installed MultiLanguageManager. I wanted to add Dutch as second language to my own wiki next to English, but I'm unable to find MultiLanguageManager_setup.php to do the following as mentioned in the guide:

Configuration

Available languages

The configuration is done using the $mgAvailableLanguage variable which contains the code of language and the code of its name in the file MultiLanguageManager_setup.php.

$mgAvailableLanguage = array(
   'en' => 'multilanguagemanager_en',
   'fr' => 'multilanguagemanager_fr'
);

I can't find the concerning file on my PC. Am I overlooking something?

Thanks in advance!

Cheers,

Mitakcor

Malyacko (talkcontribs)
Mitakcor (talkcontribs)

Ah... Thanks. I'll take a look later because at this moment I cannot get access to my database and after debugging I got this:


MediaWiki internal error.

Original exception: [292963e8f02ca350ef89f2d8] /wiki/ Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'Mitakcor'@'localhost' to database 'thenll' (localhost)

Backtrace:

from C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1138)

#0 C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(794): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(782): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)

#2 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)

#3 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()

#4 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(714): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\Database.php(2695): Wikimedia\Rdbms\DBConnRef->getSessionLagStatus()

#6 C:\xampp\htdocs\wiki\includes\user\User.php(506): Wikimedia\Rdbms\Database::getCacheSetOptions(Wikimedia\Rdbms\DBConnRef)

#7 C:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1725): MediaWiki\User\User->MediaWiki\User\{closure}(boolean, integer, array, NULL, array)

#8 C:\xampp\htdocs\wiki\includes\libs\objectcache\wancache\WANObjectCache.php(1556): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)

#9 C:\xampp\htdocs\wiki\includes\user\User.php(502): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#10 C:\xampp\htdocs\wiki\includes\user\User.php(460): MediaWiki\User\User->loadFromCache()

#11 C:\xampp\htdocs\wiki\includes\user\User.php(389): MediaWiki\User\User->loadFromId(integer)

#12 C:\xampp\htdocs\wiki\includes\session\UserInfo.php(92): MediaWiki\User\User->load()

#13 C:\xampp\htdocs\wiki\includes\session\CookieSessionProvider.php(123): MediaWiki\Session\UserInfo::newFromId(string)

#14 C:\xampp\htdocs\wiki\includes\session\SessionManager.php(539): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(MediaWiki\Request\WebRequest)

#15 C:\xampp\htdocs\wiki\includes\session\SessionManager.php(245): MediaWiki\Session\SessionManager->getSessionInfoForRequest(MediaWiki\Request\WebRequest)

#16 C:\xampp\htdocs\wiki\includes\Request\WebRequest.php(870): MediaWiki\Session\SessionManager->getSessionForRequest(MediaWiki\Request\WebRequest)

#17 C:\xampp\htdocs\wiki\includes\session\SessionManager.php(166): MediaWiki\Request\WebRequest->getSession()

#18 C:\xampp\htdocs\wiki\includes\Setup.php(487): MediaWiki\Session\SessionManager::getGlobalSession()

#19 C:\xampp\htdocs\wiki\includes\WebStart.php(85): require_once(string)

#20 C:\xampp\htdocs\wiki\index.php(50): require(string)

#21 {main}

Exception caught inside exception handler: [292963e8f02ca350ef89f2d8] /wiki/ Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'Mitakcor'@'localhost' to database 'thenll' (localhost)

Backtrace:

from C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1138)

#0 C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(794): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 C:\xampp\htdocs\wiki\includes\libs\rdbms\loadbalancer\LoadBalancer.php(782): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)

#2 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, array, string, integer)

#3 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()

#4 C:\xampp\htdocs\wiki\includes\libs\rdbms\database\DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 C:\xampp\htdocs\wiki\includes\libs\rdbms\querybuilder\SelectQueryBuilder.php(747): Wikimedia\Rdbms\DBConnRef->selectField(array, string, array, string, array, array)

#6 C:\xampp\htdocs\wiki\includes\language\LCStoreDB.php(65): Wikimedia\Rdbms\SelectQueryBuilder->fetchField()

#7 C:\xampp\htdocs\wiki\includes\language\LocalisationCache.php(563): LCStoreDB->get(string, string)

#8 C:\xampp\htdocs\wiki\includes\language\LocalisationCache.php(609): LocalisationCache->isExpired(string)

#9 C:\xampp\htdocs\wiki\includes\language\LocalisationCache.php(520): LocalisationCache->initLanguage(string)

#10 C:\xampp\htdocs\wiki\includes\language\LocalisationCache.php(400): LocalisationCache->loadSubitem(string, string, string)

#11 C:\xampp\htdocs\wiki\includes\language\LocalisationCache.php(416): LocalisationCache->getSubitem(string, string, string)

#12 C:\xampp\htdocs\wiki\includes\language\MessageCache.php(1251): LocalisationCache->getSubitemWithSource(string, string, string)

#13 C:\xampp\htdocs\wiki\includes\language\MessageCache.php(1193): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)

#14 C:\xampp\htdocs\wiki\includes\language\MessageCache.php(1088): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)

#15 C:\xampp\htdocs\wiki\includes\Message\Message.php(1530): MessageCache->get(string, boolean, LanguageEn)

#16 C:\xampp\htdocs\wiki\includes\Message\Message.php(1018): MediaWiki\Message\Message->fetchMessage()

#17 C:\xampp\htdocs\wiki\includes\Message\Message.php(1105): MediaWiki\Message\Message->format(string)

#18 C:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(255): MediaWiki\Message\Message->text()

#19 C:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(408): MWExceptionRenderer::msg(string, string)

#20 C:\xampp\htdocs\wiki\includes\exception\MWExceptionRenderer.php(104): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError)

#21 C:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(133): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)

#22 C:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(237): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError)

#23 C:\xampp\htdocs\wiki\includes\exception\MWExceptionHandler.php(205): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError, string)

#24 [internal function]: MWExceptionHandler::handleUncaughtException(Wikimedia\Rdbms\DBConnectionError)

#25 {main}


Do you know why it doesn't work? Thanks in advance!

Malyacko (talkcontribs)

It's what it says: "Cannot access the database: Access denied for user 'Mitakcor'@'localhost' to database 'thenll' (localhost)"

Mitakcor (talkcontribs)

I completely understand it and tried everything. I checked to ensure that the username and password are correct in LocalSettings.php and they do. Later I noticed I can't even log in MySQL with 'root' but with 'Mitakcor' I do.

Reply to "Unable to add another language"