Exception encountered, of type "RuntimeException"
[b27f3155] /wiki/Review:9630_Simple_Mechanisms_Set 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 COUNT(DISTINCT t2.smw_id) AS count FROM `smw_object_ids` AS t2 INNER JOIN `smw_di_blob` AS t0 ON t2.smw_id=t0.s_id WHERE ((t0.o_hash='9630_Simple_Mechanisms_Set') AND t0.p_id='175179') LIMIT 10001
Function: SMW\SQLStore\QueryEngine\QueryEngine::getCountQueryResult
Error: 5 Out of memory (Needed 2097124 bytes) (localhost)

#0 /var/www/core/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Out of memory (...', 5, 'SELECT COUNT(D...', 'SMW\\SQLStore\\Qu...', false)
#1 /var/www/core/includes/db/Database.php(1600): DatabaseBase->query('SELECT COUNT(D...', 'SMW\\SQLStore\\Qu...')
#2 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(179): DatabaseBase->select('`smw_object_ids...', 'COUNT(DISTINCT ...', '((t0.o_hash='96...', 'SMW\\SQLStore\\Qu...', Array, Array)
#3 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(366): SMW\MediaWiki\Database->select('`smw_object_ids...', 'COUNT(DISTINCT ...', '((t0.o_hash='96...', 'SMW\\SQLStore\\Qu...', Array)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(223): SMW\SQLStore\QueryEngine\QueryEngine->getCountQueryResult(Object(SMWQuery), 2)
#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), '[[ReviewOf::963...', '?ReviewByR', 'format=count')
#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(PPTemplateFrame_DOM), '#ask', Array)
#14 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#15 /var/www/core/includes/parser/Parser.php(3442): PPFrame_DOM->expand(Object(PPNode_DOM))
#16 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#17 /var/www/core/includes/parser/Preprocessor_DOM.php(1624): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#18 /var/www/core/includes/parser/Parser.php(3662): PPTemplateFrame_DOM->cachedExpand('Template:Review...', Object(PPNode_DOM))
#19 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
#20 /var/www/core/includes/parser/Preprocessor_DOM.php(1624): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#21 /var/www/core/includes/parser/Parser.php(3662): PPTemplateFrame_DOM->cachedExpand('Template:Review...', Object(PPNode_DOM))
#22 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#23 /var/www/core/includes/parser/Parser.php(3342): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#24 /var/www/core/includes/parser/Parser.php(1239): Parser->replaceVariables('{{reviewPage}}')
#25 /var/www/core/includes/parser/Parser.php(439): Parser->internalParse('{{reviewPage}}')
#26 /var/www/core/includes/content/WikitextContent.php(331): Parser->parse('{{reviewPage}}', Object(Title), Object(ParserOptions), true, true, 985840)
#27 /var/www/core/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Object(Title), 985840, Object(ParserOptions), true, Object(ParserOutput))
#28 /var/www/core/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Object(Title), 985840, Object(ParserOptions))
#29 /var/www/core/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#30 /var/www/core/includes/page/Article.php(676): PoolCounterWork->execute()
#31 /var/www/core/includes/actions/ViewAction.php(44): Article->view()
#32 /var/www/core/includes/MediaWiki.php(490): ViewAction->show()
#33 /var/www/core/includes/MediaWiki.php(287): MediaWiki->performAction(Object(Article), Object(Title))
#34 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#35 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#36 /var/www/core/index.php(41): MediaWiki->run()
#37 {main}
Backtrace:
#0 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(366): SMW\MediaWiki\Database->select(string, string, string, string, array)
#1 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(223): SMW\SQLStore\QueryEngine\QueryEngine->getCountQueryResult(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)
#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(PPTemplateFrame_DOM, string, array)
#11 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#12 /var/www/core/includes/parser/Parser.php(3442): PPFrame_DOM->expand(PPNode_DOM)
#13 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#14 /var/www/core/includes/parser/Preprocessor_DOM.php(1624): PPFrame_DOM->expand(PPNode_DOM, integer)
#15 /var/www/core/includes/parser/Parser.php(3662): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
#16 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
#17 /var/www/core/includes/parser/Preprocessor_DOM.php(1624): PPFrame_DOM->expand(PPNode_DOM, integer)
#18 /var/www/core/includes/parser/Parser.php(3662): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
#19 /var/www/core/includes/parser/Preprocessor_DOM.php(1177): Parser->braceSubstitution(array, PPFrame_DOM)
#20 /var/www/core/includes/parser/Parser.php(3342): PPFrame_DOM->expand(PPNode_DOM, integer)
#21 /var/www/core/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
#22 /var/www/core/includes/parser/Parser.php(439): Parser->internalParse(string)
#23 /var/www/core/includes/content/WikitextContent.php(331): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#24 /var/www/core/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#25 /var/www/core/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#26 /var/www/core/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#27 /var/www/core/includes/page/Article.php(676): PoolCounterWork->execute()
#28 /var/www/core/includes/actions/ViewAction.php(44): Article->view()
#29 /var/www/core/includes/MediaWiki.php(490): ViewAction->show()
#30 /var/www/core/includes/MediaWiki.php(287): MediaWiki->performAction(Article, Title)
#31 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#32 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#33 /var/www/core/index.php(41): MediaWiki->run()
#34 {main}