Topic on Project:Support desk

Help with Scribunto and Raspberry PI

8
Kato196613 (talkcontribs)

Hi,

I installed MediaWiki 39.0 on a Raspberry PI 4 and everything seems ok.

Then I'd want to export some pages from Wikipedia.it and import on my Wiki.

I exported for example th page related to Cina including all templates.

I imported the resulting XML file on my Wiki using Intercity Prefix wikipedia, then I try to see the result for the Cina page.

When the page is displayed I see the following errors on page:

Varie
Codici ISO 3166 [[ISO 3166-2:{{#Property:P297}}|{{#Property:P297}}]], {{#Property:P298}}, {{#Property:P299}}
TLD Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)
Prefisso tel. Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)
Sigla autom. CHN
Inno nazionale Marcia dei Volontari

File:March of the Volunteers instrumental.ogg

Festa nazionale 1º ottobre
Cina - Mappa
Evoluzione storica
Stato precedente Repubblica di Cina Repubblica di Cina

Il template {{Coord}} ha riscontrato degli errori (istruzioni): Modulo:Wikidata:455: attempt to index field 'wikibase' (a nil value)

Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).Errore Lua in Modulo:Wikidata alla linea 455: attempt to index field 'wikibase' (a nil value).


I installed also lua 5.1.5 on my Raspberry and added the lines

$wgScribuntoDefaultEngine = 'luastandalone';

$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1';

to LocalSettings.php.

What's my errors?


Thanks,

Paolo

Bawolff (talkcontribs)
Kato196613 (talkcontribs)

Thanks,

but which is the problem, I don't understand what can I do to solve.

Regards,

Paolo

Bawolff (talkcontribs)

The current solutions for using wikibase in an external wiki are not great.

You can setup wikibase with like no repo, which makes everything a no-op.

you can use Extension:UnlinkedWikibase but the syntax isnt compatible so you have to change all the templates anyways.

or you can delete wikibase stuff from the templates.

Kato196613 (talkcontribs)

Hi,

now I don't receive any other error but all the imported template from Wikipedia doesn't work, why?


Kato

Bawolff (talkcontribs)

What did you do to fix the errors, which template, what is it supposed to do, what did it do instead?

If you have a link to your wiki, that would be helpful.

Kato196613 (talkcontribs)

Hi,

I don't have a public IP sorry.

I installed all the extensions used by Wikipedia, the I re-imported the pages I interested in.

At this point no error but instead af all Template formatting I can see only the words Template:Stato (the word Template and the name of it).

When I exported from it.wikipedia.org I included also Tempates and when I imported I used it code for Interwiki and Principale (Main) for namespace to import in.


Thanks,

Paolo

Bawolff (talkcontribs)

that usually means the Template:Stato is missing. Are you sure you copied it over.

Copying templates from wikipedia can be really finicky.

Reply to "Help with Scribunto and Raspberry PI"