Topic on Project:Support desk

Jump to navigation Jump to search

Fatal exception of type Wikimedia\Rdbms\DBQueryError after update upto 1.29.2

9
Ektip (talkcontribs)

Update mediawiki from 1.21 to 1.29.2 using web-interface.

Now i have error - [05575cfedebae9daa0d54bb3] 2017-11-18 21:45:24: Fatal exception of type Wikimedia\Rdbms\DBQueryError

Please advice.

星耀晨曦 (talkcontribs)

You should open debug options for more detailed error messages

$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
Ektip (talkcontribs)

Here is:

[2cf16b067a21c4921aa451b1] / Wikimedia\Rdbms\DBQueryError from line 1075 of /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 
Function: LCStoreDB::get
Error: 1146 Table 'a201591_wikiek.l10n_cache' doesn't exist (a201591.mysql.mchost.ru)
Backtrace:

#0 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/libs/rdbms/database/Database.php(933): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/libs/rdbms/database/Database.php(1269): Wikimedia\Rdbms\Database->query(string, string)
#2 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/libs/rdbms/database/Database.php(1095): Wikimedia\Rdbms\Database->select(string, string, array, string, array)
#3 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/localisation/LCStoreDB.php(53): Wikimedia\Rdbms\Database->selectField(string, string, array, string)
#4 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/localisation/LocalisationCache.php(414): LCStoreDB->get(string, string)
#5 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/localisation/LocalisationCache.php(460): LocalisationCache->isExpired(string)
#6 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/localisation/LocalisationCache.php(379): LocalisationCache->initLanguage(string)
#7 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/localisation/LocalisationCache.php(294): LocalisationCache->loadSubitem(string, string, string)
#8 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/languages/Language.php(2582): LocalisationCache->getSubitem(string, string, string)
#9 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/MessageCache.php(918): Language->getMessage(string)
#10 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/MessageCache.php(873): MessageCache->getMessageForLang(Language, string, boolean, array)
#11 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/cache/MessageCache.php(814): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#12 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/Message.php(1275): MessageCache->get(string, boolean, Language)
#13 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/Message.php(842): Message->fetchMessage()
#14 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/Message.php(934): Message->toString(string)
#15 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/title/MalformedTitleException.php(49): Message->text()
#16 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/title/MediaWikiTitleCodec.php(312): MalformedTitleException->__construct(string, string)
#17 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/Title.php(3415): MediaWikiTitleCodec->splitTitleString(string, integer)
#18 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/Title.php(355): Title->secureAndSplit()
#19 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/MediaWiki.php(84): Title::newFromURL(NULL)
#20 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/MediaWiki.php(140): MediaWiki->parseTitle()
#21 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/MediaWiki.php(777): MediaWiki->getTitle()
#22 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/includes/MediaWiki.php(523): MediaWiki->main()
#23 /home/httpd/vhosts/wiki.ektip.ru/httpdocs/index.php(43): MediaWiki->run()
#24 {main}
Ektip (talkcontribs)

'

AhmadF.Cheema (talkcontribs)
2003:CC:ABE4:6400:19F2:D209:921:4DC9 (talkcontribs)
Bawolff (talkcontribs)

Update.php (or the web updater by going to mywiki.com/w/mw-config ) will add the table for you, so there is no need to add it manually.

However, this table has been included since MediaWiki 1.16, so unless you are upgrading from pre-1.16, this means that random tables are disappearing from your db. That generally is very bad and you should figure out how that happened.

Jörgi123 (talkcontribs)

But isn't update.php using the different patch files, which always contain only a small chunk of the complete table structure? Does it really also add tables, which should already have been there?

Bawolff (talkcontribs)

It adds tables that should be there provided they were introduced after MediaWiki 1.5 (The update script doesn't know if the table is "missing" or if you are just upgrading from a really really old version of MediaWiki).

So it will work for l10n_cache table. It wouldn't work for say the querycache table