offspot / wikifundi

Create a pre-configured Mediawiki for offline Wikipedia contribution teaching
11 stars 2 forks source link

Lua error : attempt to index field 'wikibase' (a nil value). #67

Closed florentk closed 6 years ago

florentk commented 6 years ago

append when page use a Module with this instrcution : mw.wikibase.getEntity(val) Ex : http://wikifundi-fr.openzim.org/wiki/%C3%89cole_des_arts_industriels_et_des_mines

@kelson42 any idea to solve this without install wikibase extension (we remove it because the search box doesn't work)

kelson42 commented 6 years ago

@florentk You need to tweak the piece of Lua to return empty string or similar. I had to do that in a few places for WikiFundi 1.0 too.

florentk commented 6 years ago

@kelson42 ok, I thinks remplace mw.wikibase.getEntity(val) by nil in all module

florentk commented 6 years ago

fix in e7a9131