Topic on Extension talk:Scribunto

'""C:\xampp\htdocs\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone' is not recognized as an internal or external command, operable program or batch file.

2
Bradeblo3 (talkcontribs)

I want to import infoboxes from wikipedia into my wiki, i used Manual:Importing Wikipedia infoboxes tutorial to help me do it as I am a very new beginner at MediaWiki and programming in general. Everything was going well, although I couldnt install WikiBase for some reason, it seemed beyond my ability at the moment, I decided to do it later. I imported a lot of wikipedia templates and modules, but the pages in my wiki had this error:

Lua error: Internal error: The interpreter exited with status 1.

I went on the Scribunto wiki and created a log for the error:

'""C:\xampp\htdocs\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone' is not recognized as an internal or external command, operable program or batch file.

Looks a bit weird with the five quotations, not sure if thats the issue. I've been trying to get wikipedia's infobox on my wiki all day now, help is appreciated!

FeRDNYC (talkcontribs)

I agree, the error does appear strange. It's actually only a pair of leading double quotes (the single quote corresponds to the one following "LuaStandalone", it's just part of the error message), but still that's likely an issue.

As the page tutorial you followed mentions, importing current modules will only work if you first have successfully installed Scribunto (I have no idea why that's bold text, and not a link somewhere useful). First question is — have you? If Scribunto isn't working generally, the imports won't work, and no amount of importing templates/modules can make Scribunto work. That's specific to your OS, webserver, and other environmental factors unique to the installation.

One option for running Scribunto on Windows is the luaSandbox interpreter — see this discussion for information on both the benefits and pitfalls of that approach. Note, though, that my post there is primarily focused on IIS... with xampp, at least in theory running luaStandalone should be an easier proposition.

But I would recommend approaching the problem from a "prepare the environment to receive my imports first" stance. Don't even worry about importing anything (or getting what you've imported working) until you have a Module namespace and can create and successfully execute a piece of [[Module:HelloWorld]] type Lua code. Because you know the imported pages can't work without a functional Scribunto.

If you still can't get Lua working at all, please update with the relevant sections of your localSettings.php config, and any other configuration changes you've made up to that point, as well as any relevant values you intentionally omitted / left at their default values.

Reply to "'""C:\xampp\htdocs\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone' is not recognized as an internal or external command, operable program or batch file."