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/gpf/mediawiki-1.38.2/includes/Setup.php:237
Stack trace:
#0 /var/www/gpf/mediawiki-1.38.2/maintenance/doMaintenance.php(96): require_once()
#1 /var/www/gpf/mediawiki-1.38.2/maintenance/update.php(264): require_once('/var/www/gpf/me...')
#2 {main}
thrown in /var/www/gpf/mediawiki-1.38.2/includes/Setup.php on line 237
============================
Since I haven't modified
$wgBaseDirectory anywhere, including my LocalSettings.php, I'm not sure how to interpret this. I can only assume this variable is derived somehow. I am *NOT* trying to override my installation root directory; I'm just trying to get the upgrade script to see the skins directory.
The release notes for 1.38 state: "
$wgStyleDirectory
and $wgExtensionDirectory
– These are now set later, so can no longer be used within LocalSettings.php
unless explicitly set in that file." I have no idea how to interpret that; this sentence barely makes any sense. I can no longer set this variable in LocalSetings unless I set it in LocalSettings? The documentation here is somewhat... lacking.
At this point, I was able to get my site up to 1.37.3, but I cannot move forward to 1.38. I remember someone else posting to this list about a similar issue a few weeks ago, but I don't think they received any resolution. The only other possible thing I can think worth mentioning is that I've been running MediaWiki for years now, so I have no idea what ancient settings might still be lurking in my LocalSettings.php file that have been retired or changed meaning over the years. I've scanned through the file multiple times now and I can't find anything to looks out of place.
Any help would be appreciated.
Jeffrey T. Darlington
General Protection Fault