Ladsgroup added a comment.

This is what I've got from digging lostash. Three types of error happen: 1- Saving a page fails because Lua engine returns false one example, you find tons of it 2- It gets propagated to ChangeProp an example 3- And refresh links job an example. I think the first type of error is the source of the other two.

I put the whole backtrace of the first type for debugging:

t exception.file	/srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaSandbox/Engine.php:318
t exception.message	Scribunto_LuaSandboxInterpreter::callFunction: LuaSandboxFunction::call returned false
t exception.trace	#0 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(178): Scribunto_LuaSandboxInterpreter->callFunction(LuaSandboxFunction, array)
#1 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaCommon/SiteLibrary.php(91): Scribunto_LuaEngine->registerInterface(string, array, array)
#2 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(512): Scribunto_LuaSiteLibrary->register()
#3 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(149): Scribunto_LuaEngine->instantiatePHPLibrary(string, string, boolean)
#4 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/engines/LuaSandbox/Engine.php(37): Scribunto_LuaEngine->load()
#5 /srv/mediawiki/php-1.30.0-wmf.11/extensions/Scribunto/common/Hooks.php(125): Scribunto_LuaSandboxEngine->getResourceUsage(integer)
#6 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(3408): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_Hash, array)
#7 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(3133): Parser->callParserFunction(PPTemplateFrame_Hash, string, array)
#8 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Preprocessor_Hash.php(1071): Parser->braceSubstitution(array, PPTemplateFrame_Hash)
#9 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Preprocessor_Hash.php(1504): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#10 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(3284): PPTemplateFrame_Hash->cachedExpand(string, PPNode_Hash_Tree)
#11 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Preprocessor_Hash.php(1071): Parser->braceSubstitution(array, PPFrame_Hash)
#12 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(2948): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#13 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(1304): Parser->replaceVariables(string)
#14 /srv/mediawiki/php-1.30.0-wmf.11/includes/parser/Parser.php(451): Parser->internalParse(string)
#15 /srv/mediawiki/php-1.30.0-wmf.11/includes/content/WikitextContent.php(329): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#16 /srv/mediawiki/php-1.30.0-wmf.11/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#17 /srv/mediawiki/php-1.30.0-wmf.11/includes/page/WikiPage.php(2078): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
#18 /srv/mediawiki/php-1.30.0-wmf.11/includes/api/ApiStashEdit.php(200): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
#19 /srv/mediawiki/php-1.30.0-wmf.11/includes/api/ApiStashEdit.php(148): ApiStashEdit::parseAndStash(WikiPage, WikitextContent, User, string)
#20 /srv/mediawiki/php-1.30.0-wmf.11/includes/api/ApiMain.php(1583): ApiStashEdit->execute()
#21 /srv/mediawiki/php-1.30.0-wmf.11/includes/api/ApiMain.php(546): ApiMain->executeAction()
#22 /srv/mediawiki/php-1.30.0-wmf.11/includes/api/ApiMain.php(517): ApiMain->executeActionWithErrorHandling()
#23 /srv/mediawiki/php-1.30.0-wmf.11/api.php(94): ApiMain->execute()
#24 /srv/mediawiki/w/api.php(3): include(string)
#25 {main}

HTH


TASK DETAIL
https://phabricator.wikimedia.org/T170039

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Ladsgroup
Cc: Ladsgroup, eranroz, IKhitron, Kipod, zhuyifei1999, PokestarFan, hoo, Anomie, gerritbot, thiemowmde, Salgo60, AnotherLadsgroup, RolandUnger, Larske, Arbnos, daniel, putnik, Framawiki, Zebulon84, Thibaut120094, TerraCodes, Jay8g, Liuxinyu970226, aude, Vachovec1, Zdzislaw, ValterVB, Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, JJMC89, SundanceRaphael, Johan, Izno, Luke081515, Cwek, Wikidata-bugs, Dinoguy1000, jayvdb, MrStradivarius, Arlolra, TheDJ, Jackmcbarn, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to