In DefaultSettings.php, please add this to the comments:
/*** * If this lock file exists, the wiki will be forced into read-only mode. ^and has a size greater than zero!!! * Its contents will be shown to users as part of the read-only warning * message. */ $wgReadOnlyFile = false; /// defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
(Also note using the filesystem this way precludes multiple wikis using
a read-only filesystem, etc...)
Also kindly add comments at
$wgReadOnly = null;
E.g.,
/*
To lock the database, one can also use e.g., $wgReadOnly="Cleaning up a mess; try again real soon." Don't just use just use $wgReadOnly==true, which will lock it but look bad: "1". Nor should "" be used, as that will... */
Also comment the neighboring
$wgDebugComments = false;
$wgLogQueries = false;
and other variables you forgot to comment in DefaultSettings.php, please.
By the way, shouldn't files like these give an error when executed from the
command line?
$ php SpecialLockdb.php; echo $?
0
$ php Title.php ;echo $?
0
Should I open a separate bug? Thanks.
Version: 1.16.x
Severity: trivial