Topic on Extension talk:Scribunto

Lua Can't Access scribunto/includes

6
Summary by Legoktm

Resolved by question asker.

70.115.156.72 (talkcontribs)

After much messing around and trying to get infoboxes to work, the imported page Template:Infobox on my wiki only gives me Lua exited with code 1. I looked into the lua error log and found this:

luastuff/luac53.exe: cannot open D:\xampp\htdocs\mywiki\extensions\Scribunto\includes: Permission denied

luastuffis my folder where I keep my lua binaries.

$wgScribuntoEngineConf['luastandalone']['luaPath'] = 'luastuff/luac53.exe';

$wgScribuntoEngineConf['luastandalone']['errorFile'] = 'luastuff/errorLog.txt';

How can I give the lua binary permissions to Scribunto/includes?

70.115.156.72 (talkcontribs)

I also have just unchecked "Read-only." on the extension folder. I am on Windows 10 with a XAMPP Apache localhost. Still not working. Do I need to force something?

70.115.156.72 (talkcontribs)

After another check, it seems like something is automatically setting the folder to read-only again. Why?

70.115.156.72 (talkcontribs)

The issue persists after I disabled UAC, restarted, and replaced Lua 5.3 with Lua 5.1.

70.115.156.72 (talkcontribs)

I fixed this a while ago by moving luastuff to the Scribunto folder.

Legoktm (talkcontribs)

Just for what it's worth, Scribunto intentionally uses lua5.1, and is not compatible with lua5.3.