Page MenuHomeMiraheze

Please help me fix templates imported from MediaWiki (Lua TNT errors when fetching from commons)
Closed, DeclinedPublic

Description

Hi,

Here is a list of pages with errors - they are all templates I imported from MediaWiki. I think it might be to do with missing some Scribunto modules? Any help would be appreciated as most of them seem to be having the same error.

https://wintergatancommunity.miraheze.org/wiki/Category:Pages_with_script_errors

I did experience a 503 error when importing the templates but I think this is just because it timed out, but it does look like all the templates have been imported. I'll attach the XML from MediaWiki Special:Import and my list of templates to import.

Thanks in advance
Tom{F1434620}

Event Timeline

@Tomq0608 Hi. It seems that all you'd need to do is enable the JsonConfig extension in Special:ManageWiki/extensions.

@Reception123 oh. duh! 🤣

I did this, now I have a different error- I think it's because I can't enable Scribunto?

Lua error in Module:TNT at line 169: Dataset c:Data:I18n/Lua banner.tab is not valid.

@Reception123 oh. duh! 🤣

I did this, now I have a different error- I think it's because I can't enable Scribunto?

Lua error in Module:TNT at line 169: Dataset c:Data:I18n/Lua banner.tab is not valid.

It wouldn't be that, as Scribunto is enabled on all Miraheze wikis.

When exporting the TNT module, you should probably check the "Include templates" box so you are sure to get all the dependencies.

hmm. still getting this error on [[ URL | www.wintergatancommunity.miraheze.org/wiki/Template:Ambox ]]

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab

Ah i'll make sure i've done that

Ok I've just imported it again and nothing changed.

When looking at https://wintergatancommunity.miraheze.org/wiki/Module:TNT/doc the Module Quality section says there are 4 errors.

Also I looked at the Module namespace settings https://wintergatancommunity.miraheze.org/wiki/Special:ManageWiki/namespaces/828 and it says the Content Model is wikitext. I changed this to Scribunto but nothing happened

When exporting the TNT module, you should probably check the "Include templates" box so you are sure to get all the dependencies.

could this be to do with instantcommons? like not fetching the script properly

When exporting the TNT module, you should probably check the "Include templates" box so you are sure to get all the dependencies.

could this be to do with instantcommons? like not fetching the script properly

EDIT: Last message was wrong. I don't think that would be the case as it works on Meta.

@Reception123 should I be importing TNT from Miraheze Meta? the version I have is from MediaWiki

@Reception123 should I be importing TNT from Miraheze Meta? the version I have is from MediaWiki

You could try, but it would be the same file. Have you tried selecting the "Export all templates" box?

@Reception123 should I be importing TNT from Miraheze Meta? the version I have is from MediaWiki

You could try, but it would be the same file. Have you tried selecting the "Export all templates" box?

I'm not sure what you mean... in Special:Export there is a box "Include templates" whick I ticked

@Reception123 I think I'm on the way to fixing it - changing the content model to Scribunto for modules in Special:ChangeContentModel seems to be changing *something*. I also went through all the Mbox templates and changed them to wikitext then back to sanitised CSS which got rid of lots of errors.

aaaagh it was going so well! I'm getting internal errors when I try to access Module:Message box - Fatal exception of type "MediaWiki\Storage\NameTableAccessException"

I think you need to be importing https://commons.wikimedia.org/wiki/Data:I18n/Shared_Template_Warning.tab locally to your wiki and enabling whatever extension(s) use the Data:* namespace. Also, your Lua modules may need local updating also, tbh

@Tomq0608 Since you don't have any content pages on your wiki, would you like us to reset your wiki and try again? As there's many weird things going on.

Reception123 claimed this task.

No response. Please feel free to reopen this if you still need this and let me know if you'd like to try to reset your wiki to resolve the problem.