Topic on Project:Support desk

templates give lua errors after upgrade to 1.31

11
Johanverdoodt (talkcontribs)

Dear,

An exisisting MW 1.28 has been upgraded to 1.31

Database have been restored 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]: ?
Ciencia Al Poder (talkcontribs)

Looks like you're missing some templates. Module:TNT seems to load the contents of another module (loadData) but that other module doesn't exist on your wiki

Bawolff (talkcontribs)
193.148.8.100 (talkcontribs)

Thanx guys !

Johanverdoodt (talkcontribs)

Guys

Does extension:JsonConfig needs config ? Because after installation (without extra config in $wgJsonConfig) nothing has changed to our problem... :-(

The onlu var I configured was:

$wgJsonConfigEnableLuaSupport = true;

Bawolff (talkcontribs)

yes it needs a rather complex config to setup using commons as the source of the config repo (or some other wiki if you're doing that). Unfortunately im not really familar enough with it to advise on correct config.

Kjvowen (talkcontribs)

I also ran into a similar problem, the original error from Module:TNT line 159: 'Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documetation:tab'


I was able to find a possible configuration for the JsonConfig to use commons as the source, originally here https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php, but which also matches the one on Extension:JsonConfig/Tabular#Configuration.


Implementing this, I have now moved on past that error to a new error 'Missing Commons dataset I18n/Module:TNT.tab.' Doing some digging, the API call is failing. Debug log output:


PHP Warning: API call failed to get remote JsonConfig: status=* HTTP request timed out.

* There was a problem during the HTTP request: 0 Error, query={"action":"query","titles":"Data:I18n/Documentation.tab","prop":"revisions","rvprop":"content","continue":""} [Called from JsonConfig\JCUtils::warn in /home/wiki/public_html/wiki/extensions/JsonConfig/includes/JCUtils.php at line 53]


This is coming from JCUtils::callApi, which I believe is being called by JCCache::getPageFromApi. API calls are way beyond my area of expertise (I can't tell you how many browser tabs I already have open to get to this point...). Any thoughts?

Kjvowen (talkcontribs)

I spoke to our server admin and it looks like we were blocking the http request. It's going through now, so long story short, if you encounter Lua errors accessing commons, use the configuration here: Extension:JsonConfig/Tabular#Configuration.

60.241.118.142 (talkcontribs)
Ciencia Al Poder (talkcontribs)

See previous comments

Odinwynd (talkcontribs)
Reply to "templates give lua errors after upgrade to 1.31"