Page MenuHomePhabricator

Fatal error: Call to a member function getPrefixedText() on a non-object in LuaCommon.php on line 419
Closed, ResolvedPublic

Description

[2014-06-18 17:03:23] Fatal error: Call to a member function getPrefixedText() on a non-object at /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaCommon/LuaCommon.php on line 419
Server: mw1142
Method: POST
URL: http://en.wikipedia.org/w/api.php
Backtrace:
#0 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(419): Scribunto_LuaEngine::getFrameTitle()
#1 [internal function]: Scribunto_LuaEngine->getFrameTitle('parent')
#2 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaSandbox/Engine.php(343): call_user_func_array(Array, Array)
#3 [internal function]: Scribunto_LuaSandboxCallback->__call('getFrameTitle', Array)
#4 [internal function]: Scribunto_LuaSandboxCallback->getFrameTitle('parent')
#5 [internal function]: LuaSandboxFunction->call(Object(LuaSandboxFunction))
#6 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaSandbox/Engine.php(264): call_user_func_array(Array, Array)
#7 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(203): Scribunto_LuaSandboxInterpreter->callFunction(Object(LuaSandboxFunction), Object(LuaSandboxFunction))
#8 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(677): Scribunto_LuaEngine->executeFunctionChunk(Object(LuaSandboxFunction), Object(PPTemplateFrame_DOM))
#9 /usr/local/apache/common-local/php-1.24wmf8/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke('navbar', Object(PPTemplateFrame_DOM))
#10 [internal function]: ScribuntoHooks::invokeHook(Object(Parser), Object(PPFrame_DOM), Array)
#11 /usr/local/apache/common-local/php-1.24wmf8/includes/parser/Parser.php(3699): call_user_func_array('ScribuntoHooks:...', Array)
#12 /usr/local/apache/common-local/php-1.24wmf8/includes/parser/Parser.php(3417): Parser->callParserFunction(Object(PPFrame_DOM), '#invoke', Array)
#13 /usr/local/apache/common-local/php-1.24wmf8/includes/parser/Preprocessor_DOM.php(1174): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#14 /usr/local/apache/common-local/php-1.24wmf8/includes/parser/Parser.php(3227): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#15 /usr/local/apache/common-local/php-1.24wmf8/includes/parser/Parser.php(637): Parser->replaceVariables('{{#invoke:navba...', Object(PPFrame_DOM))
#16 /usr/local/apache/common-local/php-1.24wmf8/includes/api/ApiExpandTemplates.php(93): Parser->preprocess('{{#invoke:navba...', Object(Title), Object(ParserOptions), NULL, Object(PPFrame_DOM))
#17 /usr/local/apache/common-local/php-1.24wmf8/includes/api/ApiMain.php(913): ApiExpandTemplates->execute()
#18 /usr/local/apache/common-local/php-1.24wmf8/includes/api/ApiMain.php(363): ApiMain->executeAction()
#19 /usr/local/apache/common-local/php-1.24wmf8/includes/api/ApiMain.php(334): ApiMain->executeActionWithErrorHandling()
#20 /usr/local/apache/common-local/php-1.24wmf8/api.php(85): ApiMain->execute()
#21 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')


Version: 1.24rc
Severity: normal

Details

Reference
bz66798

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:23 AM
bzimport set Reference to bz66798.

Change 140431 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/140431

Turns out to be GIGO as far as Scribunto is concerned, the real problem is the API is passing in a frame with no title set.

Change 140431 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/140431

I've scheduled the fix for backport to the wmf branches during Monday morning's SWAT window.

Change 141416 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141416

Change 141417 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141417

Change 141417 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141417

Change 141416 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141416