MediaWiki internal error.

Original exception: exception 'DBQueryError' with message 'A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT `recentchanges`.*,ts_tags FROM `recentchanges` FORCE INDEX (rc_timestamp) LEFT JOIN `tag_summary` ON ((ts_rc_id=rc_id)) WHERE (rc_timestamp >= '20150721000000') AND rc_bot = '0' ORDER BY rc_timestamp DESC LIMIT 20
Function: SpecialRecentChanges::doMainQuery
Error: 1 Can't create/write to file '/run/user/1000/#sql_78de_25.MAI' (Errcode: 2 "No such file or directory") (localhost)
' in /home/mts/wiki/includes/db/Database.php:949
Stack trace:
#0 /home/mts/wiki/includes/db/Database.php(916): DatabaseBase->reportQueryError('Can't create/wr...', 1, 'SELECT `recent...', 'SpecialRecentCh...', false)
#1 /home/mts/wiki/includes/db/Database.php(1339): DatabaseBase->query('SELECT `recent...', 'SpecialRecentCh...')
#2 /home/mts/wiki/includes/specials/SpecialRecentchanges.php(428): DatabaseBase->select(Array, Array, Array, 'SpecialRecentCh...', Array, Array)
#3 /home/mts/wiki/includes/specials/SpecialRecentchanges.php(158): SpecialRecentChanges->doMainQuery(Array, Object(FormOptions))
#4 /home/mts/wiki/includes/SpecialPage.php(611): SpecialRecentChanges->execute('20')
#5 /home/mts/wiki/includes/SpecialPageFactory.php(494): SpecialPage->run('20')
#6 /home/mts/wiki/includes/SpecialPageFactory.php(533): SpecialPageFactory::executePath(Object(Title), Object(RequestContext), true)
#7 /home/mts/wiki/includes/parser/Parser.php(3338): SpecialPageFactory::capturePath(Object(Title), Object(RequestContext))
#8 /home/mts/wiki/includes/parser/Preprocessor_DOM.php(1083): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#9 /home/mts/wiki/includes/parser/Parser.php(3038): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#10 /home/mts/wiki/includes/parser/Parser.php(1136): Parser->replaceVariables('<!-- Beginning ...')
#11 /home/mts/wiki/includes/parser/Parser.php(370): Parser->internalParse('<!-- Beginning ...')
#12 /home/mts/wiki/includes/WikiPage.php(3110): Parser->parse('<!-- Beginning ...', Object(Title), Object(ParserOptions), true, true, 69090)
#13 /home/mts/wiki/includes/PoolCounter.php(209): PoolWorkArticleView->doWork()
#14 /home/mts/wiki/includes/Article.php(631): PoolCounterWork->execute()
#15 /home/mts/wiki/includes/actions/ViewAction.php(37): Article->view()
#16 /home/mts/wiki/includes/Wiki.php(427): ViewAction->show()
#17 /home/mts/wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
#18 /home/mts/wiki/includes/Wiki.php(536): MediaWiki->performRequest()
#19 /home/mts/wiki/includes/Wiki.php(446): MediaWiki->main()
#20 /home/mts/wiki/index.php(60): MediaWiki->run()
#21 {main}

Exception caught inside exception handler: exception 'MWException' with message 'FauxRequest::getRequestURL() not implemented' in /home/mts/wiki/includes/WebRequest.php:1258
Stack trace:
#0 /home/mts/wiki/includes/WebRequest.php(1305): FauxRequest->notImplemented('FauxRequest::ge...')
#1 /home/mts/wiki/includes/SkinTemplate.php(1008): FauxRequest->getRequestURL()
#2 /home/mts/wiki/includes/SkinTemplate.php(449): SkinTemplate->buildContentNavigationUrls()
#3 /home/mts/wiki/includes/OutputPage.php(1989): SkinTemplate->outputPage()
#4 /home/mts/wiki/includes/Exception.php(227): OutputPage->output()
#5 /home/mts/wiki/includes/Exception.php(272): MWException->reportHTML()
#6 /home/mts/wiki/includes/Exception.php(620): MWException->report()
#7 /home/mts/wiki/includes/Exception.php(690): MWExceptionHandler::report(Object(DBQueryError))
#8 /home/mts/wiki/includes/Wiki.php(449): MWExceptionHandler::handle(Object(DBQueryError))
#9 /home/mts/wiki/index.php(60): MediaWiki->run()
#10 {main}