Topic on Project:Support desk

Jump to navigation Jump to search

InfoBoxes impossible to "install"...

21 (talkcontribs)

I've tried to install the infobox template forever but it won't work. I have tested another template from another wiki page and that don't work either. Both give the lua errors.

For example: Lua error in package.lua at line 80: module 'Module:TNT' not found. Template:En-WP attribution notice (on the Template:infobox webpage)

and: Lua error in Modul:TNT at line 158: Missing JsonConfig extension; Cannot load

What is this and how am I suppose to solve this? One additional weird thing is that the other "info-box-type"-template from the other wiki does not "use" as much templates as my import according to the edit tab.

One thing I've noticed is that my lua version is 5.1.4 when every other wiki's I stumble upon use 5.1.5. I tried to install lua 5.1.5 but it didn't change the number...

Please help, I'm ripping my hair out... (talkcontribs)

Even though Scribunto is updated and having the 5.1.5 engine of lua the Special:Version tab still says it's running lua 5.1.4!? Where does it grab that version??!!!

Malyacko (talkcontribs)

Please see "Post a new question" in the sidebar. Please describe how you "installed" something from... somewhere? (talkcontribs)

Ok, I've read it but I won't post link to it. Ask what you want to see and I shall send you a screenshot of it.

OS: Windows Server 2012 Datacenter (64-bit)

MediaWiki = 1.36.2

PHP = 7.3.32 (cgi-fcgi)

MySQL = 5.5.45

ICU = 64.2

Lua = 5.1.4

When I install "something" from "somewhere" I go to their Special:Export page and specify a template for example Template:PlayerTemplate and I check the box for "Include templates" and "Save as file". I then upload it with the Special:Import page on my wiki.

Bawolff (talkcontribs)

So first of all, if you want to use the TNT extension,you have to install Extension:JsonConfig and configure commons as a foreign data namespace. (Unfortunately the docs on doing that are a bit lackluster)

Are you getting both of these errors still? Because they kind of contradict each other (one is saying module:TNT is missing, the other is saying its there but has an error). (talkcontribs)

I have installed Extension:JsonConfig. "Configure commons as a foreign data namespace.", don't understand that.

No, I'm not right now it's only the Lua error in Modul:TNT at line 158: Missing JsonConfig extension; Cannot load ... that's the problem. (On the page for the Template:PlayerTemplate)

The infobox page has an additional text: "Template:En-WP attribution notice".

I get this red box when I go to the Module:TNT page. "fX01s0G" on imgur

The Template:PlayerTemplate also has a error that says: Lua error in Module:WikidataIB at line 665: attempt to index field 'wikibase' (a nil value).

The thing I said before that bothers me is that my importation of the template PlayerTemplate uses much more Templates than the one on the origin wiki...

Malyacko (talkcontribs)

Who is "their" in "their Special:Export page"? Where does "Configure commons as a foreign data namespace." come from / what displays that where? What "origin wiki"? How do you get to the conclusion in your last sentence (links)? Why is a 404 error? Why haven't you installed Wikibase if you'd like to use a module depending on it? (talkcontribs)

Their = The special:Export page on the page mentioned below.

It comes from the comment above from Bawolff, I didn't understand what he meant.

Origin wiki:

This ( JktP5Bz)is a picture of "used templates" in the template "PlayerTemplate" from 2b2t wiki. And this ( HGcj6Gt) is from my importation of the template "PlayerTemplate" onto my wiki. N.B. Mall (Swedish) = Template (English), Modul (Swedish) = Module (English.

Don't know, maybe because imgur is trash.

I have installed Wikibase...

The main problem right now seems to be the "Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load [link, cant post because of "linkspam"]." error that I seem to have on multiple templates. (talkcontribs)

Sorry for the spam. I fixed the Wikibase problem, it wasn't fully initialized. I still have the "Missing JsonConfig extension" problem though.

Bawolff (talkcontribs) (talkcontribs)


I pasted those line of codes into LocalSettings.php and now I get this error: "Lua error in Modul:TNT at line 166: Missing Commons dataset I18n/". Now when I try to go onto pages I get error 500 - Internal server error. Often I can just reload the page and it works but when I try to import xml files through the "Special:Import"-page I get the 500 error and can't go past it...

Bawolff (talkcontribs) (talkcontribs)

(I can't "sub"-reply so that's why I'm tagging you instead.)


It's an error from IIS, I don't think I can solve that with editing debugging settings in the mediawiki folder...

Nevertheless, I've already applied the lines of code from the PHP errors part of the "How to debug"-page.

Bawolff (talkcontribs)

webserver 500s are commonly (but not exclusively) caused by php errors. IIS should also have some sort of logfile somewhere. (talkcontribs)


Yeah, yeah. I've looked in the logs but those doesn't say much more. They just say "500 0 0 5314" or "500 0 0 2991" in the end of the line of the error. I just say that the site seems to be more unstable when I apply the changes to the LocalSettings.php you told about.

Whatever, that's not the main problem... I still can't understand the "Lua error in Module:TNT at line 166[...]".

And I think there is something wrong with the navbar/styles.css that I suppose would be handling the infoboxes position on the page. The "PlayerTemplate" is the only infobox working and it's on the left side of the page...

Why is it this difficult to just install a simple infobox? (talkcontribs)

What should I do to fix the "Lua error in Module:TNT at line 166: Missing Commons dataser I18n/"?

Bawolff (talkcontribs) (talkcontribs)

Yes. I've done it.

Reply to "InfoBoxes impossible to "install"..."