Topic on Extension talk:Scribunto

importing templates/modules after upgrade

3
Johanverdoodt (talkcontribs)

Dear,


An exisisting MW 1.8 has been upgraded to 1.31

Database has resortored and extensions have been upgraded.

Although I can import Templates (exported with all versions) and modules, I get the following errors....

I have no clue anymore... anyone ?


Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value). Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).

Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).


Lua error in Module:TNT at line 157: attempt to index field 'data' (a nil value).

Backtrace:

  1. (tail call): ?
  2. Module:TNT:157: in function "loadData"
  3. Module:TNT:176: ?
  4. (tail call): ?
  5. mw.lua:511: ?
  6. (tail call): ?
  7. [C]: in function "xpcall"
  8. MWServer.lua:99: in function "handleCall"
  9. MWServer.lua:313: in function "dispatch"
  10. MWServer.lua:52: in function "execute"
  11. mw_main.lua:7: in main chunk
  12. [C]: ?
Mr. Stradivarius (talkcontribs)

It looks like you need to install Extension:TemplateData. Module:TNT (or at least the module of that name that I checked on the English Wikipedia) uses this extension at line 157. It also tries to load TemplateData datasets from Wikimedia Commons, so you will probably also need to make "c:" a valid interwiki prefix for Wikimedia Commons from your wiki, if it isn't already.

Tacsipacsi (talkcontribs)

The lack of TemplateData would just garbage output, I don’t think it would throw an error. What gives this error is the lack of Extension:JsonConfig (or lack of proper setup). A recent edit to the module gives a more useful error message in this specific case.

Reply to "importing templates/modules after upgrade"