Hmmm, reason that the LocalSettings debug options not worked was that I forgot the semi-colon at the end of the sentence. It helps to be awake when doing this.
Now I have an output with a long list of backtrace and php steps. I prefer not to post the whole error list here, but some lines of interest are:
top of the page, within the wiki form:
Lua error: Internal error: The interpreter exited with status 126.
Followed by a backtrace, of which the first lines are
- 0 [*server name*]//engines/LuaStandalone/LuaStandaloneEngine.php(454): ScribuntoEngineBase->newException('scribunto-luast...', Array)
- 1 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(324): Scribunto_LuaStandaloneInterpreter->checkStatus()
- 2 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(287): Scribunto_LuaStandaloneInterpreter->receiveMessage()
- 3 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(213): Scribunto_LuaStandaloneInterpreter->dispatch(Array)
- 4 [*server name*]/[*folder*]/engines/LuaCommon/LuaCommon.php(114): Scribunto_LuaStandaloneInterpreter->registerLibrary('mw_interface', Array)
- 5 [*server name*]/[*folder*]/engines/LuaCommon/LuaCommon.php(89): Scribunto_LuaEngine->registerInterface('mw.lua', Array, Array)
- 6 [*server name*]/[*folder*]/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
[*folder*] above is [wiki/mediawiki-1.21.1/extensions/Scribunto]
then, in the php steps,
[...]
Unstubbing $wgAuth on call of $wgAuth::getCanonicalName from User::getCanonicalName
User: cache miss for user 1
[...]
SpecialPage::getContext called and $mContext is null. Return RequestContext::getMain(); for sanity
Title::getRestrictionTypes: applicable restrictions to User:*Xxxxx* are {edit,move}
Class PEAR_Error not found; skipped loading
[...]
Would the problem be described by the 'getContext called and $mContext is null' ? Or is the missing 'PEAR_Error not found; skipped loading' the main issue ?
Update 1: 'PEAR_Error not found' also appears in the debug list on a page where no infobox is called. Is probably unrelated to the Scribunto error.
Update 2: Also copied the Template:Reflist to my wiki (using export/import functions), while Scribunto extension was disabled in the LocalSettings.php. Import of the xml file was incomplete, with a message "Import failed: No handler for model 'Scribunto' registered in $wgContentHandlers" at the bottom of the template import list. This may be a different issue altogether, and one of the search hits refered to this bug. When Scribunto extension is enabled, I am having the same error message as for the Template:infobox issue.