Jump to content

Handleiding:DefaultSettings.php

From mediawiki.org
This page is a translated version of the page Manual:DefaultSettings.php and the translation is 100% complete.

̩DefaultSettings.php is een ontraden stub dat in eerdere versies de standaard configuratie-instellingen bevatte. Currently default settings are stored in MainConfigSchema.php .

DefaultSettings.php moet niet handmatig worden gewijzigd, want bij een upgrade van MediaWiki wordt het overschreven en gaan die handmatige wijzigingen verloren. Eventuele eigen wijzigingen moeten in LocalSettings.php worden aangebracht.

Vanaf MediaWiki 1.38 zal het opnemen van DefaultSettings.php in uw LocalSettings.php resulteren in de fout beschreven op T311966:

PHP Fatal error:  Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/w/includes/Setup.php:237
Stack trace:
#0 /var/www/html/w/maintenance/doMaintenance.php(96): require_once()
#1 /var/www/html/w/maintenance/update.php(264): require_once('/var/www/html/w...')
#2 {main}
  thrown in /var/www/html/w/includes/Setup.php on line 237

Fatal error: Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/w/includes/Setup.php:237
Stack trace:
#0 /var/www/html/w/maintenance/doMaintenance.php(96): require_once()
#1 /var/www/html/w/maintenance/update.php(264): require_once('/var/www/html/w...')
#2 {main}
  thrown in /var/www/html/w/includes/Setup.php on line 237