Exception encountered, of type "RuntimeException"
[1998aa80] /wiki/Special:Browse/City 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 smw_title,smw_sortkey FROM `smw_object_ids` INNER JOIN `smw_di_wikipage` AS t1 ON t1.p_id=smw_id WHERE t1.o_id='398' ORDER BY smw_sortkey
Function: SMWSQLStore3Readers::getInProperties
Error: 5 Out of memory (Needed 2095476 bytes) (localhost)

#0 /var/www/core/includes/db/Database.php(1076): DatabaseBase->reportQueryError('Out of memory (...', 5, 'SELECT DISTINC...', 'SMWSQLStore3Rea...', false)
#1 /var/www/core/includes/db/Database.php(1600): DatabaseBase->query('SELECT DISTINC...', 'SMWSQLStore3Rea...')
#2 /var/www/core/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(179): DatabaseBase->select('`smw_object_ids...', 'DISTINCT smw_ti...', 't1.o_id='398'', 'SMWSQLStore3Rea...', Array, Array)
#3 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php(683): SMW\MediaWiki\Database->select('`smw_object_ids...', 'DISTINCT smw_ti...', 't1.o_id='398'', 'SMWSQLStore3Rea...', Array)
#4 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(293): SMWSQLStore3Readers->getInProperties(Object(SMW\DIWikiPage), Object(SMWRequestOptions))
#5 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(367): SMWSQLStore3->getInProperties(Object(SMW\DIWikiPage), Object(SMWRequestOptions))
#6 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(121): SMWSpecialBrowse->getInData()
#7 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(93): SMWSpecialBrowse->displayBrowse()
#8 /var/www/core/includes/specialpage/SpecialPage.php(384): SMWSpecialBrowse->execute('City')
#9 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run('City')
#10 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#11 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#12 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#13 /var/www/core/index.php(41): MediaWiki->run()
#14 {main}
Backtrace:
#0 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php(683): SMW\MediaWiki\Database->select(string, string, string, string, array)
#1 /var/www/core/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(293): SMWSQLStore3Readers->getInProperties(SMW\DIWikiPage, SMWRequestOptions)
#2 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(367): SMWSQLStore3->getInProperties(SMW\DIWikiPage, SMWRequestOptions)
#3 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(121): SMWSpecialBrowse->getInData()
#4 /var/www/core/extensions/SemanticMediaWiki/includes/specials/SMW_SpecialBrowse.php(93): SMWSpecialBrowse->displayBrowse()
#5 /var/www/core/includes/specialpage/SpecialPage.php(384): SMWSpecialBrowse->execute(string)
#6 /var/www/core/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(string)
#7 /var/www/core/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)
#8 /var/www/core/includes/MediaWiki.php(714): MediaWiki->performRequest()
#9 /var/www/core/includes/MediaWiki.php(508): MediaWiki->main()
#10 /var/www/core/index.php(41): MediaWiki->run()
#11 {main}