Jump to content

Topic on Project:Support desk

174.48.154.154 (talkcontribs)

Hello so I was using Infobox and Infobox person for the longest time, without error, except the image wouldn't work.

Naturally I decided to find a solution. While attempting to fix it, I installed Scribunto which messed up everything.

Now, I get the error message "[2ece9a7c] 2013-09-09 22:50:58: Fatal exception of type ScribuntoException" and if I uninstall Scribunto, the templates don't work at all. Even if I delete them and re-import them it's the same result.

174.48.154.154 (talkcontribs)
Dan-nl (talkcontribs)
MarkAHershberger (talkcontribs)

It sounds like Scribunto isn't istalled properly. Could you give a link to your wiki?

174.48.154.154 (talkcontribs)

I'll message it to you. Also can you help me fix my wiki's settings a bit? It seems anyone can edit it, and that's not really what I wanted. In fact I selected something else during setup, but apparently it isn't working.

Dan-nl (talkcontribs)

the settings to control wiki access are in the /core/LocalSettings.php file. the Manual:Preventing_access contains information on the possible settings.

174.48.154.154 (talkcontribs)
174.48.154.154 (talkcontribs)

To see what Script error I'm talking about, click on the "group" link on the Main Page. That should take you to a page which should have the template Infobox company. Any page I have with an Infobox only displays this error now :/

90.220.104.123 (talkcontribs)

Ah I see you have a problem I am looking at http://sapphiredev.org/wiki/index.php?title=Module:Infobox and it should be shown in colours but it is not that could be a problem what line did you add LocalSettings to install it because what you added should look like this

require_once "$IP/extensions/Scribunto/Scribunto.php"; $wgScribuntoDefaultEngine = 'luastandalone';

90.220.104.123 (talkcontribs)

Also try updating Mediawiki to Mediawiki 1.21.2

90.220.104.123 (talkcontribs)
90.220.104.123 (talkcontribs)

You also need to copy w:Module:HtmlBuilder this to your wiki to be able to get infobox to work if you fix the problem

174.48.154.154 (talkcontribs)

Thanks for the help, but after doing all of those things it still doesn't work :/

174.48.154.154 (talkcontribs)

What I've done was: upgrade MediaWiki import the Module:HtmlBuilder upgrade my extensions made sure I had those lines in LocalSettings

and now there's a new error: Fatal exception of type MWException

174.48.154.154 (talkcontribs)

I enabled $wgShowException and got this:

The lua binary (/home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua) is not executable. Backtrace:

  1. 0 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(64): Scribunto_LuaStandaloneInterpreter->__construct(Object(Scribunto_LuaStandaloneEngine), Array)
  2. 1 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(71): Scribunto_LuaStandaloneEngine->newInterpreter()
  3. 2 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
  4. 3 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(169): Scribunto_LuaStandaloneEngine->load()
  5. 4 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(633): Scribunto_LuaEngine->getInterpreter()
  6. 5 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(617): Scribunto_LuaModule->getInitChunk()
  7. 6 /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(645): Scribunto_LuaModule->execute()
  8. 7 /home/content/86/10853486/html/wiki/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke('infobox', Object(PPTemplateFrame_DOM))
  9. 8 [internal function]: ScribuntoHooks::invokeHook(Object(Parser), Object(PPTemplateFrame_DOM), Array)
  10. 9 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(3532): call_user_func_array('ScribuntoHooks:...', Array)
  11. 10 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(3251): Parser->callParserFunction(Object(PPTemplateFrame_DOM), '#invoke', Array)
  12. 11 /home/content/86/10853486/html/wiki/includes/parser/Preprocessor_DOM.php(1077): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
  13. 12 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(3404): PPFrame_DOM->expand(Object(PPNode_DOM))
  14. 13 /home/content/86/10853486/html/wiki/includes/parser/Preprocessor_DOM.php(1077): Parser->braceSubstitution(Array, Object(PPTemplateFrame_DOM))
  15. 14 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(3404): PPFrame_DOM->expand(Object(PPNode_DOM))
  16. 15 /home/content/86/10853486/html/wiki/includes/parser/Preprocessor_DOM.php(1077): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
  17. 16 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(3073): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
  18. 17 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(1153): Parser->replaceVariables('{{Infobox compa...')
  19. 18 /home/content/86/10853486/html/wiki/includes/parser/Parser.php(383): Parser->internalParse('{{Infobox compa...')
  20. 19 /home/content/86/10853486/html/wiki/includes/content/WikitextContent.php(299): Parser->parse('{{Infobox compa...', Object(Title), Object(ParserOptions), true, true, 3975)
  21. 20 /home/content/86/10853486/html/wiki/includes/WikiPage.php(3402): WikitextContent->getParserOutput(Object(Title), 3975, Object(ParserOptions))
  22. 21 /home/content/86/10853486/html/wiki/includes/PoolCounter.php(209): PoolWorkArticleView->doWork()
  23. 22 /home/content/86/10853486/html/wiki/includes/Article.php(707): PoolCounterWork->execute()
  24. 23 /home/content/86/10853486/html/wiki/includes/actions/ViewAction.php(44): Article->view()
  25. 24 /home/content/86/10853486/html/wiki/includes/Wiki.php(439): ViewAction->show()
  26. 25 /home/content/86/10853486/html/wiki/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
  27. 26 /home/content/86/10853486/html/wiki/includes/Wiki.php(565): MediaWiki->performRequest()
  28. 27 /home/content/86/10853486/html/wiki/includes/Wiki.php(458): MediaWiki->main()
  29. 28 /home/content/86/10853486/html/wiki/index.php(59): MediaWiki->run()
  30. 29 {main}

Perhaps it'll help you guys out

MarkAHershberger (talkcontribs)

Your clue is the error message that says "The lua binary (...) is not executable". You need to add the executable bit to that binary. You can do this using chmod.

174.48.154.154 (talkcontribs)

Alright, this fixed that. I can see my pages now. The only problem is that the infoboxes are still not working.

I'm getting this now: Lua error: Internal error: The interpreter has terminated with signal "11".

MarkAHershberger (talkcontribs)

For some reason, your lua binaries are segfaulting. Other people are having similar problems, but I'm not sure why since I can't reproduce this.

Do you have ssh access to your server? If so could you log in and do the following:

 $ cd /home/content/86/10853486/html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/
 $ ./lua -h
 $ ./lua -e 'print "hi"'

and tell me if those work for you. It looks like you have GoDaddy hosting -- ssh should be available, but you may have to call them to use it.

Arnavutsezgin (talkcontribs)

I cloth from my car while investigating this issue. The right not even a proper help.

require_once "$IP/extensions/CodeEditor/CodeEditor.php";
$wgScribuntoUseCodeEditor = true;
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua5.1';
$wgScribuntoEngineConf['luastandalone']['errorFile'] = "$IP/hata/error_log";

For me this way is working properly.

DrMichaelWright (talkcontribs)

GoDaddy can't (or won't) do it on their shared server. You have to get the $5/month cloud package. :-(

Dan-nl (talkcontribs)
174.48.154.154 (talkcontribs)

I decided to try this and move over my pages, and I've installed Scribunto and all. Now I'm getting a new error: Script error: No such module.

New wiki link: http://sapphiredev.org/w/

Dan-nl (talkcontribs)
174.48.154.154 (talkcontribs)

That's what I've done. I also tried to import the modules but there were just a bunch of errors

Dan-nl (talkcontribs)
89.135.182.193 (talkcontribs)

Hi,

Same here (1.21). I just tried to export infobox templates from wikipedia and import into my wiki. I also get Script error (No such module) after import.

Regards., Sandor

Dan-nl (talkcontribs)

when you go to https://en.wikipedia.org/wiki/Special:Export and export of the Template:Infobox, making sure all three checkboxes are checked before clicking the export button, you should get an xml file containing all of the required templates and modules for Template:Infobox. you should be able to search the xml file and find for example an entry for <title>Module:Infobox or <title>Template:Infobox.

when you import the file into your wiki you should see a list of the imported templates and modules that looks like this.

Importing pages...

  • Template:Infobox 1 revision
  • Template:Clear 1 revision
  • Template:Distinguish 1 revision
  • Template:Documentation 1 revision
  • Template:Documentation/docspace 1 revision
  • Template:Documentation/end box 1 revision
  • Template:Documentation/end box2 1 revision
  • Template:Documentation/start box 1 revision
  • Template:Documentation/start box2 1 revision
  • Template:Documentation/template page 1 revision
  • Template:Documentation subpage 1 revision
  • Template:Fmbox 1 revision
  • Template:Hatnote 1 revision
  • Template:High-risk 1 revision
  • Template:Infobox/doc 1 revision
  • Template:Lua 1 revision
  • Template:Mbox 1 revision
  • Template:Namespace detect 1 revision
  • Template:Nowrap 1 revision
  • Template:Ombox 1 revision
  • Template:Ombox/core 1 revision
  • Template:Para 1 revision
  • Template:Pp-meta 1 revision
  • Template:Pp-template 1 revision
  • Template:Purge 1 revision
  • Template:Sidebar 1 revision
  • Template:Template other 1 revision
  • Template:Tl 1 revision
  • Module:HtmlBuilder 1 revision
  • Module:Infobox 1 revision
  • Module:Namespace detect 1 revision

you should then be able to browse Template:Infobox on your wiki and there should be no Script errors if all has been installed properly.

68.104.165.16 (talkcontribs)

I've done this and am getting the same problem as the other.

178.40.180.165 (talkcontribs)
68.104.165.16 (talkcontribs)

I tried to reimport the templates, and got this error, I wonder if this has something to do with it

Import failed: The lua binary (/home/content/29/11118329/html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua) is not executable.

68.104.165.16 (talkcontribs)

Finally seem to have fixed it with this

$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';

93.190.253.138 (talkcontribs)

Setting the the lua binary as executable helped me:

cd Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua
chmod 755 lua

Checking the properties with ls -l

total 172
-rwxr-xr-x 1 root root 174948 Oct 14 15:28 lua
Reply to "Scribunto"