Exception encountered, of type "RuntimeException"
[7d8c91e8] /index.php?title=Good_practice_menu_and_its_coverage RuntimeException from line 181 of /home/cpoldb1/public_html/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 t21.smw_id AS id,t21.smw_title AS t,t21.smw_namespace AS ns,t21.smw_iw AS iw,t21.smw_subobject AS so,t21.smw_sortkey AS sortkey FROM `smw_object_ids` AS t21 INNER JOIN `smw_fpt_inst` AS t1 ON t21.smw_id=t1.s_id INNER JOIN `smw_di_blob` AS t3 ON t1.s_id=t3.s_id INNER JOIN `smw_di_blob` AS t5 ON t1.s_id=t5.s_id INNER JOIN `smw_di_blob` AS t7 ON t1.s_id=t7.s_id INNER JOIN `smw_di_blob` AS t9 ON t1.s_id=t9.s_id INNER JOIN `smw_di_blob` AS t11 ON t1.s_id=t11.s_id INNER JOIN `smw_di_blob` AS t13 ON t1.s_id=t13.s_id INNER JOIN `smw_fpt_inst` AS t15 ON t1.s_id=t15.s_id INNER JOIN `t16` AS t16 ON t15.o_id=t16.id INNER JOIN `smw_di_blob` AS t17 ON t1.s_id=t17.s_id INNER JOIN `smw_di_blob` AS t19 ON t1.s_id=t19.s_id WHERE (t1.o_id='54' AND ((t3.o_hash='Implemented') AND t3.p_id='63') AND ((t5.o_hash='Yes') AND t5.p_id='92220') AND ((t7.o_hash!='Supranational region') AND t7.p_id='55') AND ((t9.o_hash!='Subnational region or state') AND t9.p_id='55') AND ((t11.o_hash!='City or local') AND t11.p_id='55') AND (((t13.o_hash='Argentina') OR (t13.o_hash='Australia') OR (t13.o_hash='Brazil') OR (t13.o_hash='Canada') OR (t13.o_hash='China') OR (t13.o_hash='Egypt') OR (t13.o_hash='India') OR (t13.o_hash='Indonesia') OR (t13.o_hash='Iran') OR (t13.o_hash='Iraq') OR (t13.o_hash='Japan') OR (t13.o_hash='Kazakhstan') OR (t13.o_hash='Korea (South)') OR (t13.o_hash='Kuwait') OR (t13.o_hash='Malaysia') OR (t13.o_hash='Mexico') OR (t13.o_hash='Nigeria') OR (t13.o_hash='Pakistan') OR (t13.o_hash='Russian Federation') OR (t13.o_hash='Saudi Arabia') OR (t13.o_hash='South Africa') OR (t13.o_hash='Thailand') OR (t13.o_hash='Turkey') OR (t13.o_hash='Ukraine') OR (t13.o_hash='United Arab Emirates') OR (t13.o_hash='United States of America') OR (t13.o_hash='Uzbekistan') OR (t13.o_hash='Venezuela') OR (t13.o_hash='Vietnam')) AND t13.p_id='56') AND (t17.p_id='62') AND (t19.p_id='50855')) ORDER BY t21.smw_sortkey ASC LIMIT 6005
Function: SMW\SQLStore\QueryEngine\QueryEngine::getInstanceQueryResult
Error: 2006 MySQL server has gone away (localhost)

#0 /home/cpoldb1/public_html/includes/db/Database.php(1189): DatabaseBase->reportQueryError('MySQL server ha...', 2006, 'SELECT DISTINC...', 'SMW\\SQLStore\\Qu...', false)
#1 /home/cpoldb1/public_html/includes/db/Database.php(1726): DatabaseBase->query('SELECT DISTINC...', 'SMW\\SQLStore\\Qu...')
#2 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/MediaWiki/Database.php(179): DatabaseBase->select('`smw_object_ids...', 'DISTINCT t21.sm...', '(t1.o_id='54' A...', 'SMW\\SQLStore\\Qu...', Array, Array)
#3 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(361): SMW\MediaWiki\Database->select('`smw_object_ids...', 'DISTINCT t21.sm...', '(t1.o_id='54' A...', 'SMW\\SQLStore\\Qu...', Array)
#4 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(226): SMW\SQLStore\QueryEngine\QueryEngine->getInstanceQueryResult(Object(SMWQuery), 21)
#5 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(303): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(Object(SMWQuery))
#6 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(294): SMWSQLStore3->fetchQueryResult(Object(SMWQuery))
#7 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(508): SMWSQLStore3->getQueryResult(Object(SMWQuery))
#8 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(154): SMWQueryProcessor::getResultFromQuery(Object(SMWQuery), Array, 2, 1)
#9 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(115): SMW\AskParserFunction->doFetchResultsForRawParameters(Array)
#10 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php(103): SMW\AskParserFunction->parse(Array)
#11 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(Object(Parser), '[[Category:Poli...', '[[Implementatio...', '[[Policy object...', '[[Jurisdiction:...', '[[Jurisdiction:...', '[[Jurisdiction:...', '[[Country::Arge...', '[[Category:GHG ...', '[[Policy type::...', '[[Sector name t...', '?Country', 'format=valueran...', 'template=Valuer...', 'liststyle=none', 'limit=10000')
#12 /home/cpoldb1/public_html/includes/parser/Parser.php(3771): call_user_func_array(Object(Closure), Array)
#13 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(698): Parser->callParserFunction(Object(PPTemplateFrame_DOM), '#ask', Array)
#14 [internal function]: Scribunto_LuaEngine->callParserFunction('current', '#ask', Array)
#15 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(456): call_user_func_array(Array, Array)
#16 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(434): Scribunto_LuaStandaloneInterpreter->callback('mw_interface-ca...', Array)
#17 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(481): Scribunto_LuaStandaloneInterpreter->handleCall(Array)
#18 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(362): Scribunto_LuaStandaloneInterpreter->dispatch(Array)
#19 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(257): Scribunto_LuaStandaloneInterpreter->callFunction(Object(Scribunto_LuaStandaloneInterpreterFunction), Object(Scribunto_LuaStandaloneInterpreterFunction))
#20 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(873): Scribunto_LuaEngine->executeFunctionChunk(Object(Scribunto_LuaStandaloneInterpreterFunction), Object(PPTemplateFrame_DOM))
#21 /home/cpoldb1/public_html/extensions/Scribunto/common/Hooks.php(113): Scribunto_LuaModule->invoke('render', Object(PPTemplateFrame_DOM))
#22 [internal function]: ScribuntoHooks::invokeHook(Object(Parser), Object(PPFrame_DOM), Array)
#23 /home/cpoldb1/public_html/includes/parser/Parser.php(3771): call_user_func_array('ScribuntoHooks:...', Array)
#24 /home/cpoldb1/public_html/includes/parser/Parser.php(3505): Parser->callParserFunction(Object(PPFrame_DOM), '#invoke', Array)
#25 /home/cpoldb1/public_html/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#26 /home/cpoldb1/public_html/includes/parser/Parser.php(3322): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#27 /home/cpoldb1/public_html/includes/parser/Parser.php(1231): Parser->replaceVariables('\nThis table sho...')
#28 /home/cpoldb1/public_html/includes/parser/Parser.php(434): Parser->internalParse('\nThis table sho...')
#29 /home/cpoldb1/public_html/includes/content/WikitextContent.php(333): Parser->parse('\nThis table sho...', Object(Title), Object(ParserOptions), true, true, 7470)
#30 /home/cpoldb1/public_html/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Object(Title), 7470, Object(ParserOptions), true, Object(ParserOutput))
#31 /home/cpoldb1/public_html/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Object(Title), 7470, Object(ParserOptions))
#32 /home/cpoldb1/public_html/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#33 /home/cpoldb1/public_html/includes/page/Article.php(674): PoolCounterWork->execute()
#34 /home/cpoldb1/public_html/includes/actions/ViewAction.php(44): Article->view()
#35 /home/cpoldb1/public_html/includes/MediaWiki.php(395): ViewAction->show()
#36 /home/cpoldb1/public_html/includes/MediaWiki.php(273): MediaWiki->performAction(Object(Article), Object(Title))
#37 /home/cpoldb1/public_html/includes/MediaWiki.php(566): MediaWiki->performRequest()
#38 /home/cpoldb1/public_html/includes/MediaWiki.php(414): MediaWiki->main()
#39 /home/cpoldb1/public_html/index.php(41): MediaWiki->run()
#40 {main}
Backtrace:
#0 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(361): SMW\MediaWiki\Database->select(string, string, string, string, array)
#1 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/SQLStore/QueryEngine/QueryEngine.php(226): SMW\SQLStore\QueryEngine\QueryEngine->getInstanceQueryResult(SMWQuery, integer)
#2 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(303): SMW\SQLStore\QueryEngine\QueryEngine->getQueryResult(SMWQuery)
#3 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3.php(294): SMWSQLStore3->fetchQueryResult(SMWQuery)
#4 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php(508): SMWSQLStore3->getQueryResult(SMWQuery)
#5 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(154): SMWQueryProcessor::getResultFromQuery(SMWQuery, array, integer, integer)
#6 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/includes/parserhooks/AskParserFunction.php(115): SMW\AskParserFunction->doFetchResultsForRawParameters(array)
#7 /home/cpoldb1/public_html/extensions/SemanticMediaWiki/src/MediaWiki/Hooks/HookRegistry.php(103): SMW\AskParserFunction->parse(array)
#8 [internal function]: SMW\MediaWiki\Hooks\HookRegistry->SMW\MediaWiki\Hooks\{closure}(Parser, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string)
#9 /home/cpoldb1/public_html/includes/parser/Parser.php(3771): call_user_func_array(Closure, array)
#10 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(698): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
#11 [internal function]: Scribunto_LuaEngine->callParserFunction(string, string, array)
#12 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(456): call_user_func_array(array, array)
#13 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(434): Scribunto_LuaStandaloneInterpreter->callback(string, array)
#14 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(481): Scribunto_LuaStandaloneInterpreter->handleCall(array)
#15 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(362): Scribunto_LuaStandaloneInterpreter->dispatch(array)
#16 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(257): Scribunto_LuaStandaloneInterpreter->callFunction(Scribunto_LuaStandaloneInterpreterFunction, Scribunto_LuaStandaloneInterpreterFunction)
#17 /home/cpoldb1/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(873): Scribunto_LuaEngine->executeFunctionChunk(Scribunto_LuaStandaloneInterpreterFunction, PPTemplateFrame_DOM)
#18 /home/cpoldb1/public_html/extensions/Scribunto/common/Hooks.php(113): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
#19 [internal function]: ScribuntoHooks::invokeHook(Parser, PPFrame_DOM, array)
#20 /home/cpoldb1/public_html/includes/parser/Parser.php(3771): call_user_func_array(string, array)
#21 /home/cpoldb1/public_html/includes/parser/Parser.php(3505): Parser->callParserFunction(PPFrame_DOM, string, array)
#22 /home/cpoldb1/public_html/includes/parser/Preprocessor_DOM.php(1169): Parser->braceSubstitution(array, PPFrame_DOM)
#23 /home/cpoldb1/public_html/includes/parser/Parser.php(3322): PPFrame_DOM->expand(PPNode_DOM, integer)
#24 /home/cpoldb1/public_html/includes/parser/Parser.php(1231): Parser->replaceVariables(string)
#25 /home/cpoldb1/public_html/includes/parser/Parser.php(434): Parser->internalParse(string)
#26 /home/cpoldb1/public_html/includes/content/WikitextContent.php(333): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#27 /home/cpoldb1/public_html/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#28 /home/cpoldb1/public_html/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#29 /home/cpoldb1/public_html/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#30 /home/cpoldb1/public_html/includes/page/Article.php(674): PoolCounterWork->execute()
#31 /home/cpoldb1/public_html/includes/actions/ViewAction.php(44): Article->view()
#32 /home/cpoldb1/public_html/includes/MediaWiki.php(395): ViewAction->show()
#33 /home/cpoldb1/public_html/includes/MediaWiki.php(273): MediaWiki->performAction(Article, Title)
#34 /home/cpoldb1/public_html/includes/MediaWiki.php(566): MediaWiki->performRequest()
#35 /home/cpoldb1/public_html/includes/MediaWiki.php(414): MediaWiki->main()
#36 /home/cpoldb1/public_html/index.php(41): MediaWiki->run()
#37 {main}