Exception encountered, of type "RuntimeException"
[f0331745] /wiki/Special:Ask/-5B-5BCategory:Friends-5D-5D-20-20-5B-5BInfoboxTemplate::Minifigure-5D-5D/-3FImage/format%3Dtemplate/limit%3D100/offset%3D100/link%3Dnone/searchlabel%3D./template%3DThemeGallery-2Fimagecell RuntimeException from line 244 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: INSERT IGNORE INTO `t2` (id) VALUES ('117')
Function: SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder::buildTempTableFor
Error: 5 Out of memory (Needed 2095116 bytes) (localhost)

#0 /var/www/core/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Out of memory (...', 5, 'INSERT IGNORE I...', 'SMW\\SQLStore\\Qu...', false)
#1 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(242): DatabaseBase->query('INSERT IGNORE I...', 'SMW\\SQLStore\\Qu...', false)
#2 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/HierarchyTempTableBuilder.php(160): SMW\MediaWiki\Database->query('INSERT IGNORE I...', 'SMW\\SQLStore\\Qu...')
#3 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/HierarchyTempTableBuilder.php(128): SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder->buildTempTableFor('`t2`', '('117')', '`smw_fpt_subc`', 10)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(314): SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder->createHierarchyTempTableFor('class', '`t2`', '('117')')
#5 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(247): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->resolveHierarchyForSegment(Object(SMW\SQLStore\QueryEngine\QuerySegment))
#6 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(131): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(Object(SMW\SQLStore\QueryEngine\QuerySegment))
#7 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(178): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(Object(SMW\SQLStore\QueryEngine\QuerySegment))
#8 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(131): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(Object(SMW\SQLStore\QueryEngine\QuerySegment))
#9 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(120): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(Object(SMW\SQLStore\QueryEngine\QuerySegment))
#10 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(216): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doExecuteSubqueryJoinDependenciesFor(6)
#11 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(380): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(Object(SMWQuery))
#12 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(371): SMWSQLStore3->fetchQueryResult(Object(SMWQuery))
#13 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialAsk.php(257): SMWSQLStore3->getQueryResult(Object(SMWQuery))
#14 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialAsk.php(61): SMWAskPage->makeHTMLResult()
#15 /var/www/core/includes/specialpage/SpecialPage.php(384): SMWAskPage->execute('-5B-5BCategory:...')
#16 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run('-5B-5BCategory:...')
#17 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#18 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#19 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#20 /var/www/core/index.php(41): MediaWiki->run()
#21 {main}
Backtrace:
#0 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/HierarchyTempTableBuilder.php(160): SMW\MediaWiki\Database->query(string, string)
#1 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/HierarchyTempTableBuilder.php(128): SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder->buildTempTableFor(string, string, string, integer)
#2 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(314): SMW\SQLStore\QueryEngine\HierarchyTempTableBuilder->createHierarchyTempTableFor(string, string, string)
#3 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(247): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->resolveHierarchyForSegment(SMW\SQLStore\QueryEngine\QuerySegment)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(131): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(SMW\SQLStore\QueryEngine\QuerySegment)
#5 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(178): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(SMW\SQLStore\QueryEngine\QuerySegment)
#6 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(131): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(SMW\SQLStore\QueryEngine\QuerySegment)
#7 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QuerySegmentListProcessor.php(120): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doResolveBySegment(SMW\SQLStore\QueryEngine\QuerySegment)
#8 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(216): SMW\SQLStore\QueryEngine\QuerySegmentListProcessor->doExecuteSubqueryJoinDependenciesFor(integer)
#9 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(380): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(SMWQuery)
#10 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(371): SMWSQLStore3->fetchQueryResult(SMWQuery)
#11 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialAsk.php(257): SMWSQLStore3->getQueryResult(SMWQuery)
#12 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialAsk.php(61): SMWAskPage->makeHTMLResult()
#13 /var/www/core/includes/specialpage/SpecialPage.php(384): SMWAskPage->execute(string)
#14 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(string)
#15 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)
#16 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#17 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#18 /var/www/core/index.php(41): MediaWiki->run()
#19 {main}