Jump to content

Topic on Manual talk:Installation guide

 ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'

5
Rajeshrajesh.35 (talkcontribs)

Hi Guys,


I am getting these error on linux server.

Using Mediawiki 1.31


[503c1292cffc0d8d41f078dd] [no req]   ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'

Backtrace:

#0 /var/www/html/mediawiki/maintenance/Maintenance.php(645): GlobalVarConfig->get(string)

#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3461): Maintenance::{closure}(integer, Wikimedia\Rdbms\DatabaseMysqli)

#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3795): Wikimedia\Rdbms\Database->runTransactionListenerCallbacks(integer)

#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3582): Wikimedia\Rdbms\Database->commit(string, string)

#4 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/TableUpdater.php(60): Wikimedia\Rdbms\Database->endAtomic(string)

#5 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/MediaWiki/Hooks/UserSaveOptions.php(74): SWL\TableUpdater->updateGroupIdsForUser(integer, array)

#6 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/MediaWiki/Hooks/UserSaveOptions.php(68): SWL\MediaWiki\Hooks\UserSaveOptions->performUpdate(array)

#7 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/HookRegistry.php(77): SWL\MediaWiki\Hooks\UserSaveOptions->execute()

#8 /var/www/html/mediawiki/includes/Hooks.php(177): SWL\HookRegistry->SWL\{closure}(Bechtel\KMUser, array)

#9 /var/www/html/mediawiki/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)

#10 /var/www/html/mediawiki/includes/user/User.php(5511): Hooks::run(string, array)

#11 /var/www/html/mediawiki/extensions/Bechtel/src/KMUser.php(310): User->saveOptions()

#12 /var/www/html/mediawiki/extensions/Bechtel/maintenance/Batch.php(190): Bechtel\KMUser->setLastRun(ConvertibleTimestamp)

#13 /var/www/html/mediawiki/maintenance/doMaintenance.php(94): Bechtel\Batch->execute()

#14 /var/www/html/mediawiki/extensions/Bechtel/maintenance/Batch.php(257): require_once(string)

#15 {main}


I have use this but still getting error.


Manual:$wgCommandLineMode


Kindly help me.

Ciencia Al Poder (talkcontribs)

Be sure you have an updated version of SemanticWatchlist compatible with 1.31.

Maybe you need to disable this extension during install. Some of them may be not compatible with the installer or cause strange errors.

Rajeshrajesh.35 (talkcontribs)

I have installed mediawik but whenever i runs Batch.php


Then i gets this error message

Ciencia Al Poder (talkcontribs)

This may be a problem with that Bechtel extension (I didn't notice it before, sorry), that doesn't set the command line mode properly.

Rajeshrajesh.35 (talkcontribs)

@Ciencia Al Poder Thanks for you suggestion.


Finally i got solutions,


We have set these Global key in location setting files.


$[WIKI PRE FIX]CommandLineMode = true;

$[WIKI PRE FIX]StatsdServer = false;


In wiki page these details are not mentions clearly.



Reply to " ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'"