Topic on Project:Support desk

InfoBoxes impossible to "install"...

26
193.11.104.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 https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.


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...

193.11.104.21 (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?

193.11.104.21 (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).

193.11.104.21 (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 https://imgur.com/fX01s0G a 404 error? Why haven't you installed Wikibase if you'd like to use a module depending on it?

193.11.104.21 (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: 2b2t.miraheze.org

This (ibb.co JktP5Bz)is a picture of "used templates" in the template "PlayerTemplate" from 2b2t wiki. And this (ibb.co 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.

193.11.104.21 (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)
193.11.104.21 (talkcontribs)

@Bawolff

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/Module:TNT.tab.". 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)
193.11.104.21 (talkcontribs)

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

@Bawolff

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.

193.11.104.21 (talkcontribs)

@Bawolff

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?

193.11.104.21 (talkcontribs)

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

Bawolff (talkcontribs)
193.11.104.21 (talkcontribs)

Yes. I've done it.

193.11.104.21 (talkcontribs)

I still haven't figured it out but to make it easier for you to help me I've decided to attach a link to the text of my LocalSettings.php so you have something to examine...

pastebin.com/11vKvshb

Thx in advance.

Malyacko (talkcontribs)

(Please don't post your passwords in public.)

193.11.104.21 (talkcontribs)

@Malyacko

Whatever. Report/delete the topic then, this has just been a waste of time. The troubleshooting done by the community is as bad as Stack Overflow. What more do you want to work with? The whole site??

Bawolff (talkcontribs)

Nobody on the internet is going to troubleshoot your site for free. At best we'll provide links to documentation and suggestions of what to investigate next.

If you want someone to do all the work for you, you'll have to pay someone. Professional development and consulting has a list of people who do that sort of thing (before anyone accuses me of trying to upsell, i am not one of the people on that list).

193.11.104.21 (talkcontribs)

@Bawolff

@Malyacko

Is no one going to troubleshoot my site for free? Then what is this support desk for? If my whole computer explodes when I install mediawiki? I feel like installing infobox templates is a pretty general problem, isn't it?

I get the feeling that my error codes and logs are not enough for you to give me any helpful info on what to do. To work with the whole site was a rhetorical question. Malyacko just seem to ask a whole bunch of questions without even understanding the problem or contributing and therefore I asked if he wanted the whole site.

I have been trying to get this to work for like 6 months and this was the last resort because I hoped that you could at least point me in the right direction... I have started over and over again and followed the tutorials you linked to multiple times. I have read them so many times I could probably write the articles by memory.

At least understand my frustration...

You don't even answer my questions. For example when you (Bawolff) wrote "Configure commons as a foreign data namespace." and I didn't understand what that meant and asked you Malyacko comes out of nowhere and asks "Where does "Configure commons as a foreign data namespace." come from [...]" and that was that.

The last straw was when no one could even skim read like 40 lines in my LocalSettings.php to at least rule it out, because right now the problem can be caused by "anything" located "anywhere".

Malyacko could sure search for one password I missed to censor but couldn't say if the configuration file had any obvious flaws or problems...


Thank you Bawolff for being the only active member in this support desk and with the help you could provide without a fee.

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