Exception encountered, of type "RuntimeException"
[bf0084a6] /index.php?title=Main_Page&oldid=1166405 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 t0.smw_id AS id,t0.smw_title AS t,t0.smw_namespace AS ns,t0.smw_iw AS iw,t0.smw_subobject AS so,t0.smw_sortkey AS sortkey FROM `smw_object_ids` AS t0 INNER JOIN `smw_di_time` AS t2 ON t0.smw_id=t2.s_id WHERE t0.smw_namespace='2000' AND (t2.p_id='449') ORDER BY t2.o_sortkey DESC LIMIT 15
Function: SMW\SQLStore\QueryEngine\QueryEngine::getInstanceQueryResult
Error: 5 Out of memory (Needed 2095920 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 t0.smw...', 't0.smw_namespac...', '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 t0.smw...', 't0.smw_namespac...', 'SMW\\SQLStore\\Qu...', Array)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(226): SMW\SQLStore\QueryEngine\QueryEngine->getInstanceQueryResult(Object(SMWQuery), 0)
#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), '[[Brickipedia N...', '?NewsTitle', '?NewsDate', '?NewsDate#SORTK...', 'format=template', 'template=MP-new...', 'limit=10', 'sort=NewsDate', 'order=desc', 'searchlabel=')
#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('__NOEDITSECTION...')
#17 /var/www/core/includes/parser/Parser.php(439): Parser->internalParse('__NOEDITSECTION...')
#18 /var/www/core/includes/content/WikitextContent.php(331): Parser->parse('__NOEDITSECTION...', Object(Title), Object(ParserOptions), true, true, 1166405)
#19 /var/www/core/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Object(Title), 1166405, Object(ParserOptions), true, Object(ParserOutput))
#20 /var/www/core/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Object(Title), 1166405, 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, string, string, string, string, string, string, 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}