Topic on Extension talk:Scribunto

Lua scribunto error on many pages (status 127)

Vapblack (talkcontribs)

Okay guys, I've been surfin fixing errors and all that. I got to a point where I just dont know what to do next.

First I'm using Mediawiki 1.24 on a centos server.

I'm using scribunto (18e738d) (if that matters)

and on a lot of my templates Im getting the dreaded "script error" when I click it, it says "Lua error: Internal error: The interpreter exited with status 127."

When I go to the error logs I get this: /home/worldafr/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5.1: error while loading shared libraries: cannot open shared object file: No such file or directory

I installed readline locallally, is there a way I can direct it to the libraries?

Jackmcbarn (talkcontribs)

Do you have $wgScribuntoEngineConf['luastandalone']['luaPath'] set? If so, please unset it, and ensure that if you created/moved/edited/deleted any files in the extensions/Scribunto/engines/LuaStandalone/binaries directory or its subdirectories, that you undo any changes you made there.

Vapblack (talkcontribs)

Thanks. I just did that. now, I get "Lua error: Internal error: The interpreter has terminated with signal "11".". I found from reading that it's becasue the version of lua that shps with scribunto crashes. therefore, what I did was put a binary in the folder and direct it there.

Just to make sure, I deleted scribuntu, and uploaded a fresh copy and php update.php.

Jackmcbarn (talkcontribs)

The version of Lua that ships with Scribunto is fine. If it's crashing for you, you should figure out why, since otherwise your binary will likely not work either. Is there anything in the debug log when the built-in version crashes?

Vapblack (talkcontribs)

No.. When I go to the error log, it doesn't say anything. I guess I can try to reinstall mediawiki/

Jackmcbarn (talkcontribs)

That's almost certainly not going to help. Try installing Lua 5.1 via your package manager, and then point $wgScribuntoEngineConf['luastandalone']['luaPath'] to the path that it installed to.

Vapblack (talkcontribs)

wow. that worked. For anyone watching I did the following:

downloaded lua 5.1

uploaded it via FTP to my server

connected to my server via SSH

CD to the lua5.1 dir

typed make linux (which is the OS of my server)

and then added "$wgScribuntoEngineConf['luastandalone']['luaPath'] to the path that it installed to." to my localsettings.php file

Thanks JAckmcbarn

Allaze-eroler (talkcontribs)

care to tell us where to download this lua 5.1 version? it's hard to find the right place to download it...

thank you.

Vapblack (talkcontribs)
Vapblack (talkcontribs)

I just got this error again. I haven't changed anything in a very long time. Don't even know where to start now.

Mayurbhatt (talkcontribs)
Reply to "Lua scribunto error on many pages (status 127)"