Topic on Project:Support desk

Pppery (talkcontribs)

(originally posted at en:Wikipedia:Help desk )

I've been trying to follow Wikipedia guidelines for citations by using templates like {{cite web}} in my own wiki. Once I copied the citation templates, I still got an "Script error: No such module "citation/CS1" in the citation itself at the bottom of the page. So, I copied the Module code from Wikipedia, and tried copy/pasting it directly, then tried importing it using the Special:Export function from Wikipedia.

No matter how I try to save the page, I get a "Fatal exception of type "MWException"" whenever I try to save or view the page. Also, now, when I try to edit them "preview" the page.

I'm just trying to install all the Cite functions … any help is appreciated.

-IcarusATB (talk) 06:17, 10 April 2019 (UTC)

Pppery (talkcontribs)

I can help with problems with the cs1|2 module suite itself (eight modules and one sanitized css; all required) but there is more wrong that I cannot help with. As a test I attempted to edit Module:Citation/CS1. So far so good. Then, in the debug console at the bottom of that page I typed =_VERSION which returned this error message:

[XK3Hz9c1F61UyEIF4TvrrgAAAhs] Exception caught: The lua binary (/home3/legionxi/greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

at en.wiki, that standard function returns: Lua 5.1.

I do not know what that error message means but it suggests that there is something in the greyhawkonline configuration that isn't correct; that the Lua executable is not installed. If you do not get an answer here you might try asking at at en:WP:VPT. —Trappist the monk (talk) 10:51, 10 April 2019 (UTC)

Pppery (talkcontribs)

I copied the above thread verbatim (except for a few comments of mine saying "this should be moved here") from the English Wikipedia help desk, on the grounds that the question is actually about help on an external wiki. To state the problem in a few words, the error is that Lua is not working at all on https://greyhawkonline.com/greyhawkwiki.

AhmadF.Cheema (talkcontribs)
IcarusATB (talkcontribs)

Thank you, @AhmadF.Cheema: for your response. Most of it, I understand. But, for your linked resource, it's step no. 3 where I'm not able to say whether the settings are right, or not.

3.) Your web server is configured to allow the execution of binary files in the MediaWiki tree.

Note: Execute permissions may need to be set; ...

I'm not able to say whether I know if those permissions are set. The examples are given for Linux, but, I believe it's an Apache Windows server. … if I can get a little help figuring out where/how to direct the correct path to the LUA files, it would be greatly appreciated.

Also, thank you, @Pppery: for moving the topic.

IcarusATB (talk) 01:34, 17 April 2019 (UTC)

This post was hidden by Pppery (history)
This post was hidden by Pppery (history)
This post was hidden by Pppery (history)
AhmadF.Cheema (talkcontribs)

The above transferred post are a little confusing. Are you getting the "Fatal exception of type "MWException"" error or the "Exception caught: The lua binary ... is not executable" error?

For the "Fatal exception", in your LocalSettings.php, set the following:

$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);

After which perform the same actions which give out the the fatal exception. This will give a more detailed error report.

Pppery (talkcontribs)
IcarusATB (talkcontribs)

Well, it's been just about a year ... and I still haven't figured out the problem. I gave up for a while, but, I back at it, and still can't get it. I can't believe I never saw the notification for the most recent reply. [D'oh!]

When I try to use the "Special:Import" function to pull the following pages directly from Wikipedia, I get the following statement in red letters:

  • Template:Cite web
  • Module:Citation/CS1
  • Module:Citation/CS1/Configuration
  • Module:Citation/CS1/Date validation
  • Module:Citation/CS1/Whitelist
Import failed: The lua binary (/.../greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

And when I try to save the code to a new page (or edit one I've already tried to save), there's no preview, and I get:

[XmUGS-hhhXkdhLWvHuLmVQAAABc] 2020-03-08 14:50:52: Fatal exception of type "MWException"

Is it just that I don't know how to properly install a "Module", or something? Is there something special I'm supposed to do other than just paste the code into a page titled, for example, "Module:Citation/CS1/Configuration"?

AhmadF.Cheema (talkcontribs)

Have you already performed the above suggestions?

IcarusATB (talkcontribs)

Yes, Ahmad. I have. And I reported precisely what I see on my screen when I perform the function. I wish there were more to put. I really do.

This post was hidden by Pppery (history)
AhmadF.Cheema (talkcontribs)

After including the debug lines mentioned in Manual:How to debug, do you still continue to receive the general - Fatal exception of type "MWException" - error?

IcarusATB (talkcontribs)

Yes. That's it precisely. After I updated the localsettings.php you included above (which are the same as the Manual:How to debug you just linked, I posted the exact results as they appeared onscreen above, which were noted on 2020-03-08.

Ciencia Al Poder (talkcontribs)

Have you fixed this message?

The lua binary (/.../greyhawkonline.com/greyhawkwiki/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Have you made it executable?

IcarusATB (talkcontribs)

Cienica ... no. I haven't been able to fix any of this.

That particular error hasn't repeated recently since I started trying to fix the problem again, but, that's the first error I reported at the top of this page.

I don't recall doing anything in particular to fix it.

Ciencia Al Poder (talkcontribs)

The Fatal exception of type "MWException" shouldn't appear if you set $wgShowExceptionDetails = true; in LocalSettings.php. It seems you didn't, or edited the wrong LocalSettings.php

IcarusATB (talkcontribs)

Cienca ... then, perhaps, you can help me understand. Because, you're right. It SHOULDN'T be doing that. That's part of the problem. If you'd like to help me check the code, or something ... here's an image of the code actually in the file: [img]https://greyhawkonline.com/images/Forum%20Files/GHO/%24wgShowExceptionDetails.png[/img]

Or, this is how it reads:

#Trying to figure out the Module:CS1 settings for citations
$wgShowExceptionDetails = true;
$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1); error_reporting(E_ALL);

It is located in the main folder for the wiki. Which in this case is at GreyhawkOnline.com/greyhawkwiki. It's the same base folder that all other stuff has always been completed at, and there's never been a problem with the way the LocalSettings.php has worked before. It's not it "seems that I didn't". I did. And the results are described above.

Ciencia Al Poder (talkcontribs)

Then the most probably cause is that you edited the wrong LocalSettings.php, or php is somehow caching its code and doesn't check if the file is edited (try restarting the webserver, or php-fpm if you use that).

As per detecting if the LocalSettings.php is the correct one, you can introduce a syntax error there and see if viewing a page on the wiki causes an error (undo that to restore it)

IcarusATB (talkcontribs)

Seriously? Most probably the cause is me? You can stop, like, right now. I *literally* just said that it's the root folder for it. It's where all changes have already been made, corrected, more made, deleted, and amended. It's literally the LocalSettings.php that was edited to create the problem to begin with. Literally. If all you're going to to is blame my error, when I already - literally - told you I've checked to insure that it's the correct file in the root folder for the wiki it's controlling - if you can't be constructive, and are just going to repeat inane tech-advice that's already been stated as having been done - then, please. Just stop. It doesn't need a reply if it's neither constructive or helpful.

IcarusATB (talkcontribs)

Just for sake of saying ... this was resolved. Turns out, there was a LUA error caused by the LUA version that was being run. We had to use a "chmod+x" command to fix it .. followed by editing the ScribuntoEngineConf line in the LocalSettings.php to change the 'luaPath'..