Exception encountered, of type "RuntimeException"
[09c9cf2d] /wiki/Special:Statistics 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 o_hash, COUNT(s_id) AS count FROM `smw_fpt_askfo` GROUP BY o_hash ORDER BY count DESC
Function: SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQueryFormatsCount
Error: 5 Out of memory (Needed 2095224 bytes) (localhost)

#0 /var/www/core/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Out of memory (...', 5, 'SELECT o_hash,...', 'SMW\\SQLStore\\Lo...', false)
#1 /var/www/core/includes/db/Database.php(1600): DatabaseBase->query('SELECT o_hash,...', 'SMW\\SQLStore\\Lo...')
#2 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(179): DatabaseBase->select('smw_fpt_askfo', 'o_hash, COUNT(s...', Array, 'SMW\\SQLStore\\Lo...', Array, Array)
#3 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/UsageStatisticsListLookup.php(173): SMW\MediaWiki\Database->select('smw_fpt_askfo', 'o_hash, COUNT(s...', Array, 'SMW\\SQLStore\\Lo...', Array)
#4 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/UsageStatisticsListLookup.php(63): SMW\SQLStore\Lookup\UsageStatisticsListLookup->getQueryFormatsCount()
#5 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/CachedListLookup.php(82): SMW\SQLStore\Lookup\UsageStatisticsListLookup->fetchList()
#6 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(413): SMW\SQLStore\Lookup\CachedListLookup->fetchList()
#7 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/SpecialStatsAddExtra.php(94): SMWSQLStore3->getStatistics()
#8 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/SpecialStatsAddExtra.php(84): SMW\MediaWiki\Hooks\SpecialStatsAddExtra->copyStatistics()
#9 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php(303): SMW\MediaWiki\Hooks\SpecialStatsAddExtra->process()
#10 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(Array, Object(RequestContext))
#11 /var/www/core/includes/Hooks.php(201): call_user_func_array(Object(Closure), Array)
#12 /var/www/core/includes/specials/SpecialStatistics.php(81): Hooks::run('SpecialStatsAdd...', Array)
#13 /var/www/core/includes/specialpage/SpecialPage.php(384): SpecialStatistics->execute(NULL)
#14 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)
#15 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Object(Title), Object(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}
Backtrace:
#0 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/UsageStatisticsListLookup.php(173): SMW\MediaWiki\Database->select(string, string, array, string, array)
#1 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/UsageStatisticsListLookup.php(63): SMW\SQLStore\Lookup\UsageStatisticsListLookup->getQueryFormatsCount()
#2 /var/www/core/extensions/SemanticMediaWiki/src/SQLStore/Lookup/CachedListLookup.php(82): SMW\SQLStore\Lookup\UsageStatisticsListLookup->fetchList()
#3 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(413): SMW\SQLStore\Lookup\CachedListLookup->fetchList()
#4 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/SpecialStatsAddExtra.php(94): SMWSQLStore3->getStatistics()
#5 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/SpecialStatsAddExtra.php(84): SMW\MediaWiki\Hooks\SpecialStatsAddExtra->copyStatistics()
#6 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php(303): SMW\MediaWiki\Hooks\SpecialStatsAddExtra->process()
#7 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(array, RequestContext)
#8 /var/www/core/includes/Hooks.php(201): call_user_func_array(Closure, array)
#9 /var/www/core/includes/specials/SpecialStatistics.php(81): Hooks::run(string, array)
#10 /var/www/core/includes/specialpage/SpecialPage.php(384): SpecialStatistics->execute(NULL)
#11 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)
#12 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)
#13 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#14 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#15 /var/www/core/index.php(41): MediaWiki->run()
#16 {main}