Wikimedia Developer Support

Scribunto/Lua Problem


#1

I have installed scribunto, but the models are not active, it seems that there is a problem with lua … it is written that lua is not active yet I’ve followed all the steps:

`` * wfLoadExtension( ‘Scribunto’ ); $wgScribuntoDefaultEngine = ‘luastandalone’;

  • Set execute permissions for the Lua binaries bundled with this extension:

chmod a+x /path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/yourOS/lua

  • Set type to httpd_sys_script_exec_t if SELinux is enforced:

chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/includes/engines/LuaStandalone/binaries/yourOS/lua
``


#2

Can you post a screenshot where MediaWiki says “lua is not active yet”?


#4

You’ve posted a screenshot, and now you’ve deleted the reply. Have you fixed the issue?


#5

No i didnt yet.. am using arabic version of mediawiki.. All the time i create templates, they arent active and the equation is mentioned {{#if…}} it seems thats a problem with lua, Or i dont fix the problem exactely


#6

I don’t know if the localized name of #invoke would work. Can you try with {{#invoke:}} instead of the arabic translation of invoke? See for example: https://ar.wikipedia.org/w/index.php?title=قالب:عد_تنازلي&action=edit


#7

the problem is on ({{#ifeq:…) all the time when i create a template and an invoke, the template is not displayed and display {{#ifeq:


#8

{{#ifeq: is provided by Extension:ParserFunctions. Be sure it’s enabled on the wiki. If you installed MediaWiki from the tarball, you don’t need to download it since it will be already on the extensions folder.