From 2d8c9e495ca258f220a816ba730070440600218d Mon Sep 17 00:00:00 2001 From: Aastha Mehta <aasthakm@mpi-sws.org> Date: Mon, 29 Jan 2018 11:45:35 +0000 Subject: [PATCH] load parse functions and scribunto extns for correct rendering of pages --- LocalSettings.php | 8 +++++--- LocalSettings.php.BACKUP | 19 ++++++++++++++++--- LocalSettings.php.FILE_CACHE | 15 +++++++++++++-- LocalSettings.php.NO_CACHE | 22 ++++++++++++++++------ LocalSettings.php.OBJ_CACHE | 22 ++++++++++++++++------ 5 files changed, 66 insertions(+), 20 deletions(-) diff --git a/LocalSettings.php b/LocalSettings.php index f3d1bd90..6629b2c2 100755 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -57,6 +57,7 @@ $wgEmailAuthentication = true; $wgEnableAPI=1; $wgEnableWriteAPI=1; + ## Database settings $wgDBtype = "mysql"; $wgDBserver = "139.19.171.106"; @@ -135,8 +136,10 @@ wfLoadSkin( 'Vector' ); # End of automatically generated settings. # Add more configuration options below. - ## added by aasthakm -- 24/02/2017 +wfLoadExtension( 'ParserFunctions' ); +wfLoadExtension( 'Scribunto' ); + #require_once "$IP/extensions/Scribunto/Scribunto.php"; #$wgScribuntoDefaultEngine = 'luastandalone'; #$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; @@ -153,7 +156,6 @@ $wgMaxArticleSize = 32 * 1024 * 1024; #$wgEnableParserCache = false; #$wgCachePages = false; -#$wgShowExceptionDetails=1; $wgUseFileCache = true; /* default: false */ #$wgUseFileCache = false; /* default: false */ #$wgUseGzip = true; @@ -166,7 +168,7 @@ $wgSMEEnabled = 1; $wgSMEStats = 1; $wgSMEProfiling = 0; $wgSMEEnforcement = 1; -$wgSMEDebug=0; +$wgSMEDebug = 0; $wgSMEDummyIP = "139.19.168.173"; $wgSMEDummyPort = 2231; diff --git a/LocalSettings.php.BACKUP b/LocalSettings.php.BACKUP index 4b81f303..4357d1f1 100755 --- a/LocalSettings.php.BACKUP +++ b/LocalSettings.php.BACKUP @@ -133,8 +133,11 @@ wfLoadSkin( 'Vector' ); ## added by aasthakm -- 24/02/2017 -require_once "$IP/extensions/Scribunto/Scribunto.php"; -$wgScribuntoDefaultEngine = 'luastandalone'; +wfLoadExtension( 'ParserFunctions' ); +wfLoadExtension( 'Scribunto' ); + +#require_once "$IP/extensions/Scribunto/Scribunto.php"; +#$wgScribuntoDefaultEngine = 'luastandalone'; #$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; ## to debug error in lua: importdump sees an exception with an ## internal error of 1 from lua @@ -160,4 +163,14 @@ $wgInvalidateCacheOnLocalSettingsChange=0; $wgSMEEnabled = 1; $wgSMEProfiling = 1; $wgSMEEnforcement = 0; -$wgSMEDebug=1; +$wgSMEDebug = 1; +$wgSMEDummyIP = "139.19.168.173"; +$wgSMEDummyPort = 2231; + +###TODO: disable before experiments +#$wgShowExceptionDetails = 1; +#$wgShowSQLErrors = true; +#$wgDebugDumpSql = true; +#$wgShowDBErrorBacktrace = true; +#$wgDBerrorLog = "/local/sme/mwdberr.log"; +##$wgDebugLogFile = "/local/sme/mwdbglog.txt"; diff --git a/LocalSettings.php.FILE_CACHE b/LocalSettings.php.FILE_CACHE index 839de7bd..6bc0e9d6 100755 --- a/LocalSettings.php.FILE_CACHE +++ b/LocalSettings.php.FILE_CACHE @@ -136,6 +136,9 @@ wfLoadSkin( 'Vector' ); # End of automatically generated settings. # Add more configuration options below. +## added by aasthakm -- 24/02/2017 +wfLoadExtension( 'ParserFunctions' ); +wfLoadExtension( 'Scribunto' ); ## added by aasthakm -- 24/02/2017 #require_once "$IP/extensions/Scribunto/Scribunto.php"; @@ -154,8 +157,8 @@ $wgMaxArticleSize = 32 * 1024 * 1024; #$wgEnableParserCache = false; #$wgCachePages = false; -#$wgShowExceptionDetails=1; $wgUseFileCache = true; /* default: false */ +#$wgUseFileCache = false; /* default: false */ #$wgUseGzip = true; $wgFileCacheDirectory = "$IP/cache"; $wgJobRunRate=0; @@ -165,6 +168,14 @@ $wgInvalidateCacheOnLocalSettingsChange=0; $wgSMEEnabled = 1; $wgSMEProfiling = 1; $wgSMEEnforcement = 1; -$wgSMEDebug=1; +$wgSMEDebug = 1; $wgSMEDummyIP = "139.19.168.173"; $wgSMEDummyPort = 2231; + +###TODO: disable before experiments +#$wgShowExceptionDetails = 1; +#$wgShowSQLErrors = true; +#$wgDebugDumpSql = true; +#$wgShowDBErrorBacktrace = true; +#$wgDBerrorLog = "/local/sme/mwdberr.log"; +##$wgDebugLogFile = "/local/sme/mwdbglog.txt"; diff --git a/LocalSettings.php.NO_CACHE b/LocalSettings.php.NO_CACHE index b2f2113a..78b7bea7 100755 --- a/LocalSettings.php.NO_CACHE +++ b/LocalSettings.php.NO_CACHE @@ -57,6 +57,7 @@ $wgEmailAuthentication = true; $wgEnableAPI=1; $wgEnableWriteAPI=1; + ## Database settings $wgDBtype = "mysql"; $wgDBserver = "139.19.171.106"; @@ -137,10 +138,12 @@ wfLoadSkin( 'Vector' ); # End of automatically generated settings. # Add more configuration options below. - ## added by aasthakm -- 24/02/2017 -require_once "$IP/extensions/Scribunto/Scribunto.php"; -$wgScribuntoDefaultEngine = 'luastandalone'; +wfLoadExtension( 'ParserFunctions' ); +wfLoadExtension( 'Scribunto' ); + +#require_once "$IP/extensions/Scribunto/Scribunto.php"; +#$wgScribuntoDefaultEngine = 'luastandalone'; #$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; ## to debug error in lua: importdump sees an exception with an ## internal error of 1 from lua @@ -151,13 +154,12 @@ $wgScribuntoDefaultEngine = 'luastandalone'; $wgMaxUploadSize = 32 * 1024 * 1024; $wgMaxArticleSize = 32 * 1024 * 1024; - ## added by alzayat $wgEnableParserCache = false; $wgCachePages = false; -#$wgShowExceptionDetails=1; #$wgUseFileCache = true; /* default: false */ +#$wgUseFileCache = false; /* default: false */ #$wgUseGzip = true; #$wgFileCacheDirectory = "$IP/cache"; $wgJobRunRate=0; @@ -167,6 +169,14 @@ $wgInvalidateCacheOnLocalSettingsChange=0; $wgSMEEnabled = 1; $wgSMEProfiling = 1; $wgSMEEnforcement = 1; -$wgSMEDebug=1; +$wgSMEDebug = 1; $wgSMEDummyIP = "139.19.168.173"; $wgSMEDummyPort = 2231; + +###TODO: disable before experiments +#$wgShowExceptionDetails = 1; +#$wgShowSQLErrors = true; +#$wgDebugDumpSql = true; +#$wgShowDBErrorBacktrace = true; +#$wgDBerrorLog = "/local/sme/mwdberr.log"; +##$wgDebugLogFile = "/local/sme/mwdbglog.txt"; diff --git a/LocalSettings.php.OBJ_CACHE b/LocalSettings.php.OBJ_CACHE index f9587c2f..61e68653 100755 --- a/LocalSettings.php.OBJ_CACHE +++ b/LocalSettings.php.OBJ_CACHE @@ -57,6 +57,7 @@ $wgEmailAuthentication = true; $wgEnableAPI=1; $wgEnableWriteAPI=1; + ## Database settings $wgDBtype = "mysql"; $wgDBserver = "139.19.171.106"; @@ -135,10 +136,12 @@ wfLoadSkin( 'Vector' ); # End of automatically generated settings. # Add more configuration options below. - ## added by aasthakm -- 24/02/2017 -require_once "$IP/extensions/Scribunto/Scribunto.php"; -$wgScribuntoDefaultEngine = 'luastandalone'; +wfLoadExtension( 'ParserFunctions' ); +wfLoadExtension( 'Scribunto' ); + +#require_once "$IP/extensions/Scribunto/Scribunto.php"; +#$wgScribuntoDefaultEngine = 'luastandalone'; #$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; ## to debug error in lua: importdump sees an exception with an ## internal error of 1 from lua @@ -149,17 +152,16 @@ $wgScribuntoDefaultEngine = 'luastandalone'; $wgMaxUploadSize = 32 * 1024 * 1024; $wgMaxArticleSize = 32 * 1024 * 1024; - ## added by alzayat #$wgEnableParserCache = false; #$wgCachePages = false; #$wgUseFileCache = true; /* default: false */ +#$wgUseFileCache = false; /* default: false */ #$wgUseGzip = true; #$wgFileCacheDirectory = "$IP/cache"; # -#$wgShowExceptionDetails=1; $wgJobRunRate=0; $wgInvalidateCacheOnLocalSettingsChange=0; @@ -167,6 +169,14 @@ $wgInvalidateCacheOnLocalSettingsChange=0; $wgSMEEnabled = 1; $wgSMEProfiling = 1; $wgSMEEnforcement = 1; -$wgSMEDebug= 1; +$wgSMEDebug = 1; $wgSMEDummyIP = "139.19.168.173"; $wgSMEDummyPort = 2231; + +###TODO: disable before experiments +#$wgShowExceptionDetails = 1; +#$wgShowSQLErrors = true; +#$wgDebugDumpSql = true; +#$wgShowDBErrorBacktrace = true; +#$wgDBerrorLog = "/local/sme/mwdberr.log"; +##$wgDebugLogFile = "/local/sme/mwdbglog.txt"; -- GitLab