Last modified: 2014-06-23 15:12:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68798, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66798 - Fatal error: Call to a member function getPrefixedText() on a non-object in LuaCommon.php on line 419
Fatal error: Call to a member function getPrefixedText() on a non-object in ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-18 17:05 UTC by Sam Reed (reedy)
Modified: 2014-06-23 15:12 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---
bjorsch: Backport_WMF+


Attachments

Description Sam Reed (reedy) 2014-06-18 17:05:04 UTC
[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...')
Comment 1 Gerrit Notification Bot 2014-06-18 18:23:08 UTC
Change 140431 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/140431
Comment 2 Brad Jorsch 2014-06-18 18:25:05 UTC
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.
Comment 3 Gerrit Notification Bot 2014-06-20 00:03:02 UTC
Change 140431 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/140431
Comment 4 Brad Jorsch 2014-06-20 14:27:56 UTC
I've scheduled the fix for backport to the wmf branches during Monday morning's SWAT window.
Comment 5 Gerrit Notification Bot 2014-06-23 13:10:51 UTC
Change 141416 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141416
Comment 6 Gerrit Notification Bot 2014-06-23 13:11:09 UTC
Change 141417 had a related patch set uploaded by Anomie:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141417
Comment 7 Gerrit Notification Bot 2014-06-23 15:04:04 UTC
Change 141417 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

https://gerrit.wikimedia.org/r/141417
Comment 8 Gerrit Notification Bot 2014-06-23 15:09:03 UTC
Change 141416 merged by jenkins-bot:
ApiExpandTemplates: Start parse before creating frame

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links