Exception encountered, of type "RuntimeException"
[7aa3c2b6] /wiki/2016 RuntimeException from line 181 of /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php: 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 DISTINCT t5.smw_id AS id,t5.smw_title AS t,t5.smw_namespace AS ns,t5.smw_iw AS iw,t5.smw_subobject AS so,t5.smw_sortkey AS sortkey FROM `smw_object_ids` AS t5 INNER JOIN `smw_fpt_inst` AS t1 ON t5.smw_id=t1.s_id INNER JOIN `smw_fpt_inst` AS t3 ON t1.s_id=t3.s_id WHERE (t1.o_id='320594' AND (t3.o_id='366156')) ORDER BY t5.smw_sortkey ASC LIMIT 55
Function: SMW\SQLStore\QueryEngine\QueryEngine::getInstanceQueryResult
Error: 5 Out of memory (Needed 2095772 bytes) (localhost)

#0 /var/www/core/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Out of memory (...', 5, 'SELECT DISTINC...', 'SMW\\SQLStore\\Qu...', false)
#1 /var/www/core/includes/db/Database.php(1600): DatabaseBase->query('SELECT DISTINC...', 'SMW\\SQLStore\\Qu...')
#2 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(179): DatabaseBase->select('`smw_object_ids...', 'DISTINCT t5.smw...', '(t1.o_id='32059...', 'SMW\\SQLStore\\Qu...', Array, Array)
#3 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(420): SMW\MediaWiki\Database->select('`smw_object_ids...', 'DISTINCT t5.smw...', '(t1.o_id='32059...', 'SMW\\SQLStore\\Qu...', Array)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(226): SMW\SQLStore\QueryEngine\QueryEngine->getInstanceQueryResult(Object(SMWQuery), 5)
#5 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(380): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(Object(SMWQuery))
#6 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(371): SMWSQLStore3->fetchQueryResult(Object(SMWQuery))
#7 /var/www/core/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(510): SMWSQLStore3->getQueryResult(Object(SMWQuery))
#8 /var/www/core/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(163): SMWQueryProcessor::getResultFromQuery(Object(SMWQuery), Array, 2, 1)
#9 /var/www/core/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(120): SMW\AskParserFunction->doFetchResultsForRawParameters(Array)
#10 /var/www/core/extensions/SemanticMediaWiki/src/ParserFunctionFactory.php(248): SMW\AskParserFunction->parse(Array)
#11 [internal function]: SMW\ParserFunctionFactory->SMW\{closure}(Object(Parser), '[[Category:Sets...', 'format=ul')
#12 /var/www/core/includes/parser/Parser.php(3789): call_user_func_array(Object(Closure), Array)
#13 /var/www/core/includes/parser/Parser.php(3523): Parser->callParserFunction(Object(PPFrame_DOM), '#ask', Array)
#14 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#15 /var/www/core/includes/parser/Parser.php(3342): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#16 /var/www/core/includes/parser/Parser.php(1239): Parser->replaceVariables('{{Rating}}\n{{Ye...')
#17 /var/www/core/includes/parser/Parser.php(439): Parser->internalParse('{{Rating}}\n{{Ye...')
#18 /var/www/core/includes/content/WikitextContent.php(331): Parser->parse('{{Rating}}\n{{Ye...', Object(Title), Object(ParserOptions), true, true, 1071324)
#19 /var/www/core/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Object(Title), 1071324, Object(ParserOptions), true, Object(ParserOutput))
#20 /var/www/core/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Object(Title), 1071324, Object(ParserOptions))
#21 /var/www/core/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#22 /var/www/core/includes/page/Article.php(676): PoolCounterWork->execute()
#23 /var/www/core/includes/actions/ViewAction.php(44): Article->view()
#24 /var/www/core/includes/MediaWiki.php(490): ViewAction->show()
#25 /var/www/core/includes/MediaWiki.php(287): MediaWiki->performAction(Object(Article), Object(Title))
#26 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#27 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#28 /var/www/core/index.php(41): MediaWiki->run()
#29 {main}
Backtrace:
#0 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(420): SMW\MediaWiki\Database->select(string, string, string, string, array)
#1 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(226): SMW\SQLStore\QueryEngine\QueryEngine->getInstanceQueryResult(SMWQuery, integer)
#2 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(380): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(SMWQuery)
#3 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(371): SMWSQLStore3->fetchQueryResult(SMWQuery)
#4 /var/www/core/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(510): SMWSQLStore3->getQueryResult(SMWQuery)
#5 /var/www/core/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(163): SMWQueryProcessor::getResultFromQuery(SMWQuery, array, integer, integer)
#6 /var/www/core/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(120): SMW\AskParserFunction->doFetchResultsForRawParameters(array)
#7 /var/www/core/extensions/SemanticMediaWiki/src/ParserFunctionFactory.php(248): SMW\AskParserFunction->parse(array)
#8 [internal function]: SMW\ParserFunctionFactory->SMW\{closure}(Parser, string, string)
#9 /var/www/core/includes/parser/Parser.php(3789): call_user_func_array(Closure, array)
#10 /var/www/core/includes/parser/Parser.php(3523): Parser->callParserFunction(PPFrame_DOM, string, array)
#11 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(array, PPFrame_DOM)
#12 /var/www/core/includes/parser/Parser.php(3342): PPFrame_DOM->expand(PPNode_DOM, integer)
#13 /var/www/core/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
#14 /var/www/core/includes/parser/Parser.php(439): Parser->internalParse(string)
#15 /var/www/core/includes/content/WikitextContent.php(331): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#16 /var/www/core/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#17 /var/www/core/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#18 /var/www/core/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#19 /var/www/core/includes/page/Article.php(676): PoolCounterWork->execute()
#20 /var/www/core/includes/actions/ViewAction.php(44): Article->view()
#21 /var/www/core/includes/MediaWiki.php(490): ViewAction->show()
#22 /var/www/core/includes/MediaWiki.php(287): MediaWiki->performAction(Article, Title)
#23 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#24 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#25 /var/www/core/index.php(41): MediaWiki->run()
#26 {main}