Given the following Lua module:
local p = {}
function p.main(frame)
return 'Hello world'
end
function p.fnOnly(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn', 'main'})
end
function p.oneArg(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn', 'main', 'baz'})
end
function p.twoArgs(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'Sandbox/Jackmcbarn', 'main', 'baz', 'qux'})
end
return p
Any call to twoArgs will result in "PHP fatal error in /usr/local/apache/common-local/php-1.24wmf17/includes/parser/Preprocessor_DOM.php line 1042:
Call to a member function item() on a non-object". This only occurs on wikis that use Preprocessor_DOM rather than Preprocessor_Hash.
Version: unspecified
Severity: normal