Topic on Project:Support desk

Error with Scribunto

10
Gmdesignuk (talkcontribs)

I downloaded Scribunto and installed it into the extensions folder, I then added require_once

"$IP/extensions/Scribunto/Scribunto.php";

to the localsettings.php file and when i then went to my wiki and viewed a page I get this error

[V7qz6goCATEACVtcqwkAAACu] 2016-08-22 08:12:27: Fatal exception of type "MWException"

I cannot view any page, but if I delete the line from localsettings it works fine.

please help?

I am using 1.27 version of MediaWiki

I can view special:version ok and it shows its installed, i can also view some of my pages but most i cannot view and has that error.

I added code to show the error in detail and here it is

[V7rhOQoCATEAC6pvH7MAAADC] /index.php?title=Coylton MWException from line 208 of /home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Backtrace:

  1. 0 /home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(114): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)
  1. 1 /home/u639525380/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(93): Scribunto_LuaStandaloneEngine->newInterpreter()
  1. 2 /home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
  1. 3 /home/u639525380/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(195): Scribunto_LuaStandaloneEngine->load()
  1. 4 /home/u639525380/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(864): Scribunto_LuaEngine->getInterpreter()
  1. 5 /home/u639525380/public_html/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(881): Scribunto_LuaModule->getInitChunk()
  1. 6 /home/u639525380/public_html/extensions/Scribunto/common/Hooks.php(133): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
  1. 7 /home/u639525380/public_html/includes/parser/Parser.php(3817): ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
  1. 8 /home/u639525380/public_html/includes/parser/Parser.php(3552): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
  1. 9 /home/u639525380/public_html/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
  1. 10 /home/u639525380/public_html/includes/parser/Parser.php(3694): PPFrame_DOM->expand(DOMElement)
  1. 11 /home/u639525380/public_html/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
  1. 12 /home/u639525380/public_html/includes/parser/Parser.php(3366): PPFrame_DOM->expand(DOMElement, integer)
  1. 13 /home/u639525380/public_html/includes/parser/Parser.php(1248): Parser->replaceVariables(string)
  1. 14 /home/u639525380/public_html/includes/parser/Parser.php(446): Parser->internalParse(string)
  1. 15 /home/u639525380/public_html/includes/content/WikitextContent.php(331): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
  1. 16 /home/u639525380/public_html/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
  1. 17 /home/u639525380/public_html/includes/poolcounter/PoolWorkArticleView.php(139): AbstractContent->getParserOutput(Title, integer, ParserOptions)
  1. 18 /home/u639525380/public_html/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
  1. 19 /home/u639525380/public_html/includes/page/Article.php(666): PoolCounterWork->execute()
  1. 20 /home/u639525380/public_html/includes/actions/ViewAction.php(44): Article->view()
  1. 21 /home/u639525380/public_html/includes/MediaWiki.php(503): ViewAction->show()
  1. 22 /home/u639525380/public_html/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)
  1. 23 /home/u639525380/public_html/includes/MediaWiki.php(745): MediaWiki->performRequest()
  1. 24 /home/u639525380/public_html/includes/MediaWiki.php(519): MediaWiki->main()
  1. 25 /home/u639525380/public_html/index.php(43): MediaWiki->run()
  1. 26 {main}
TheDJ (talkcontribs)

"The lua binary /home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable."

What are the permissions for the binary ? and is it actually running on linux 64bits ?

Gmdesignuk (talkcontribs)

the folder in extentions directory and all files in it are set at 0755 Linux server67.hostinger.co.uk 2.6.32-673.8.1.lve1.4.3.el6.x86_64 #1 SMP Wed Feb 10 08:57:30 EST 2016 x86_64

All I did was install the files that came with the package, i did not change anything and all i did was add the line requested to localsettings

Gmdesignuk (talkcontribs)

please help as my wiki is not usable

AhmadF.Cheema (talkcontribs)

Did you "Set execute permissions for the Lua binaries bundled with this extension"?

Gmdesignuk (talkcontribs)

I have tried 755 and 777 but still nothing

87.123.27.202 (talkcontribs)

What are the permissions of /home/u639525380/public_html/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua ? According to your error message that file is not executable.

Gmdesignuk (talkcontribs)

as i said i have tried 777 and 755 and same result

87.123.27.202 (talkcontribs)

Yes, I know and I believe you. But your server doesn't. :-( Your server says the executable bit would be missing.This might also be a SELinux problem I guess.

TheDJ (talkcontribs)

Yeah sounds to me like you are using a hosting provider that has put this restriction in place. Either with SELinux, or in another way.

Reply to "Error with Scribunto"