I'm trying to set up a MediaWiki, and trying to use the Navbox template. I had everything working fine on my local machine, but when I copied it all to the server I get Lua script errors, specifically:
Lua error at line 302: attempt to call field 'attr' (a nil value).
Backtrace:
(tail call): ?
Module:Navbox:302: in function "renderMainTable"
Module:Navbox:348: in function "renderMainTable"
(tail call): ?
mw.lua:425: ?
(tail call): ?
[C]: in function "xpcall"
MWServer.lua:73: in function "handleCall"
MWServer.lua:266: in function "dispatch"
MWServer.lua:33: in function "execute"
mw_main.lua:7: in main chunk
[C]: ?
If I edit that file then it just gives error for all the other fields.
My server is running MediaWiki 1.20, if that makes a difference. I have tried with Scribunto 1.20, 1.21 and master (making changes to the engines to fit with 1.20).
If anyone can help, that would be great.
Edited modules: Navbox, HtmlBuilder.
attr
is nil, and from what I can tell by reading the Wikipedia documentation, this means that theHtmlBuilder.create('table')
call is returning you a Lua table without that field, which can only mean that it isn't setting the builder metatable. Can you provide more information or code, if any has been modified? – Jaclyn