wiki.techinc.nl/maintenance
Erik Bernhardson d99963bc2a No such method Exception::getText()
It looks like a recent change converted this try/catch
statement from MWException to Exception, unfortunatly it
is still calling a method that only exists on MWException.

We arn't doing anything with the exception but exiting.  Lets
just allow the exception to be uncaught and fail naturally. The
uncaught exception will still output an error and return
a non-0 exit code.

Change-Id: I3e0e9d283c255d2aba8139d675943e93d7cb021a
2015-02-03 11:09:54 -08:00
..
archives Kill hitcounter remains 2015-01-28 18:26:04 +00:00
benchmarks benchmarkParse.php: add options for HHVM testing 2014-07-15 17:23:27 -07:00
dev Minor code comment tweaks for spelling and consistency 2014-11-08 14:07:19 -05:00
dictionary Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
hiphop phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
jsduck jsduck: Update references to renamed resources/ directories 2015-01-12 23:13:04 -08:00
language Move includes/normal to includes/libs/normal 2015-01-29 00:00:35 +00:00
locking Removed expiremental LSLockManager class 2014-01-17 15:16:01 -08:00
mssql Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
oracle Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
postgres PostgreSQL: Drop unneeded foreign key constraint 2015-01-30 13:15:29 -08:00
resources maintenance: Have update-oojs-ui.sh update composer.json too 2015-01-10 01:26:24 +00:00
sqlite/archives Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
storage Deprecate wfErrorLog 2014-12-15 16:26:03 -07:00
term Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
.htaccess
7zip.inc Update formatting in maintenance/ (1/4) 2014-04-23 20:08:06 +02:00
attachLatest.php Pass phpcs-strict on maintenance/ (8/8) 2014-04-23 14:00:10 +02:00
backup.inc Update formatting in maintenance/ (1/4) 2014-04-23 20:08:06 +02:00
backupPrefetch.inc Update formatting in maintenance/ (1/4) 2014-04-23 20:08:06 +02:00
backupTextPass.inc Fixed spacing 2014-12-05 22:28:07 +01:00
cdb.php Use cdb library and provide a back-compat layer 2014-11-19 18:39:27 +00:00
changePassword.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkBadRedirects.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
checkComposerLockUpToDate.php Don't display composer installed extensions/skins on Special:Version 2015-01-05 15:58:43 +00:00
checkImages.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
checkLess.php Handle phpunit being autoloaded from checkLess.php 2014-12-08 10:30:01 -08:00
checkSyntax.php Remove wrong @return from doc blocks 2014-08-25 13:50:05 +00:00
checkUsernames.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
cleanupAncientTables.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
cleanupBlocks.php Maintenance script to clean up mismatched user names in ipblocks 2014-10-27 10:40:02 -04:00
cleanupCaps.php Fully replace Title::moveTo() with MovePage 2014-10-28 12:52:36 -07:00
cleanupImages.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
cleanupPreferences.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupRemovedModules.php resourceloader: Pass a Config to the ResourceLoader constructor 2014-09-05 22:59:45 +00:00
cleanupSpam.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
cleanupTable.inc Fix PHP CodeSniffer warnings and errors 2013-10-09 18:45:16 +02:00
cleanupTitles.php Avoid a fatal error in maintenance/cleanupTitles.php 2014-09-10 16:53:23 +00:00
cleanupUploadStash.php Made cleanupUploadStash use batching for the last two loops 2013-11-13 18:06:10 +00:00
cleanupWatchlist.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
clearCacheStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
clearInterwikiCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
commandLine.inc Add missing @param to function docs 2014-08-18 16:24:59 +00:00
compareParserCache.php Fixed spacing 2014-07-19 23:12:10 +02:00
compareParsers.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
convertExtensionToRegistration.php convertExtensionToRegistration: Add --skin option 2015-01-29 12:24:49 -08:00
convertLinks.php Remove some PHP4 microtime() compat wrappers 2014-07-16 23:39:48 -04:00
convertUserOptions.php Make convertUserOptions.php more self-contained 2014-05-31 23:10:47 -04:00
copyFileBackend.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
copyJobQueue.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
createAndPromote.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteArchivedFiles.inc Avoid warnings for empty file sha1 keys 2014-06-24 11:17:48 -07:00
deleteArchivedFiles.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteArchivedRevisions.inc Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteArchivedRevisions.php Pass phpcs-strict on maintenance/ (6/8) 2014-04-23 09:27:41 +00:00
deleteBatch.php Prevent deleteBatch.php deleting files from redirects 2014-05-23 11:31:14 -07:00
deleteDefaultMessages.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteEqualMessages.php Fix up php syntax that accidentally became part of a string literal 2014-08-27 15:39:31 +02:00
deleteImageMemcached.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteOldRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteOrphanedRevisions.php Pass phpcs-strict on maintenance/ (6/8) 2014-04-23 09:27:41 +00:00
deleteRevision.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
deleteSelfExternals.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
doMaintenance.php No such method Exception::getText() 2015-02-03 11:09:54 -08:00
Doxyfile doc: Clean up Doxyfile for doxygen 1.8.6 2014-11-19 19:00:52 +00:00
dumpBackup.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
dumpIterator.php Import.php: Use Config instead of globals 2014-10-22 10:35:29 -07:00
dumpLinks.php Don't use isset() to check for null 2014-05-10 14:23:50 +02:00
dumpSisterSites.php Change URLs to mediawiki.org in comments to HTTPS 2014-03-20 16:59:46 +00:00
dumpTextPass.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
dumpUploads.php Update formatting in maintenance/ (2/4) 2014-04-23 20:08:42 +02:00
edit.php Remove RequestContext from edit.php and fixDoubleRedirects.php 2014-07-23 20:30:08 +00:00
eraseArchivedFile.php Standardize @todo 2014-07-23 22:27:20 +02:00
eval.php Remove $wgDebugFunctionEntry, unused 2015-01-07 21:07:24 -08:00
fetchText.php Fix some stuttering in comments and documentation 2014-12-17 19:44:10 +00:00
fileOpPerfTest.php Added a --profiler option to all maintenance scripts. 2013-05-23 14:20:51 -07:00
findHooks.php Make maintenance/findHooks.php check includes/mail/ 2014-12-09 19:35:25 +00:00
findMissingFiles.php Avoid the page join when not really needed 2014-10-02 17:23:51 +00:00
fixDoubleRedirects.php Remove RequestContext from edit.php and fixDoubleRedirects.php 2014-07-23 20:30:08 +00:00
fixExtLinksProtocolRelative.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
fixSlaveDesync.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
fixTimestamps.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
fixUserRegistration.php Pass phpcs-strict on maintenance/ (5/8) 2014-04-23 11:27:25 +02:00
formatInstallDoc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
generateJsonI18n.php Break some long lines in maintenance, skins, tests 2014-07-24 19:03:17 +02:00
generateLocalAutoload.php Doc: Mention the php command in autoload.php to regenerate it 2014-11-17 16:35:32 +00:00
generateSitemap.php Replace a few more logical operators 2014-10-24 11:41:00 -04:00
getConfiguration.php No space within the ?: operator 2014-08-25 17:40:51 +02:00
getLagTimes.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
getSlaveServer.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
getText.php Pass phpcs-strict on maintenance/ (5/8) 2014-04-23 11:27:25 +02:00
importDump.php Import.php: Use Config instead of globals 2014-10-22 10:35:29 -07:00
importImages.inc Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
importImages.php Replace deprecated File::sha1Base36 call 2014-06-23 21:02:09 +02:00
importSiteScripts.php findHooks.php, importSiteScripts.php: Use format=json 2014-09-21 03:08:44 +00:00
initEditCount.php Remove version check for mysql 4.1 from Maintenance scripts 2013-12-31 14:53:07 +05:30
initSiteStats.php Remove hitcounters and associated code 2014-10-20 13:01:55 -07:00
install.php Merge "Remove check for PHP version in install.php" 2014-07-30 15:47:47 +00:00
interwiki.list Fill the iw_api column of the interwiki table when installing 2015-01-30 19:04:54 +00:00
interwiki.sql Fill the iw_api column of the interwiki table when installing 2015-01-30 19:04:54 +00:00
jsparse.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
lag.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
Maintenance.php Avoid fatal error with profiler in Maintenance.php 2015-01-16 19:21:28 +00:00
Makefile Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
mcc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
mctest.php Remove some PHP4 microtime() compat wrappers 2014-07-16 23:39:48 -04:00
mergeMessageFileList.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
migrateUserGroup.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
minify.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
moveBatch.php Fully replace Title::moveTo() with MovePage 2014-10-28 12:52:36 -07:00
mwdoc-filter.php doxygen: Document problem with slashes and fix a few 2014-09-23 19:32:13 +00:00
mwdocgen.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
mwjsduck-gen mwjsduck-gen: Abort early and report exit code 2014-05-03 20:47:18 +00:00
namespaceDupes.php Merge "Output number of conflicts" 2015-01-24 01:34:13 +00:00
nukeNS.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
nukePage.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
orphans.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
pageExists.php Fix pageExists when passed invalid title 2014-06-26 07:40:06 -07:00
parse.php Typo fixes and non-code tweaks 2014-12-12 18:31:15 +00:00
patchSql.php Pass phpcs-strict on maintenance/ (4/8) 2014-04-23 10:26:09 +02:00
populateBacklinkNamespace.php Added --lastUpdatedId option to backlink namespace population script 2014-08-01 18:47:30 +00:00
populateBloomCache.php Added BloomCache classes 2014-09-03 17:43:21 +00:00
populateCategory.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateFilearchiveSha1.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateImageSha1.php Avoid query error with odd parameter combination 2014-04-24 15:48:28 -07:00
populateLogSearch.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateLogUsertext.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateParentId.php Fix some stuttering in comments and documentation 2014-12-17 19:44:10 +00:00
populateRecentChangesSource.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateRevisionLength.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
populateRevisionSha1.php Updated some try-catch statements: MWException -> Exception 2015-01-09 17:20:22 -08:00
preprocessDump.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
preprocessorFuzzTest.php Updated some try-catch statements: MWException -> Exception 2015-01-09 17:20:22 -08:00
protect.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
pruneFileCache.php Fixed some @params documentation (maintenance) 2014-04-17 22:48:32 +02:00
purgeChangedFiles.php Remove '@section LICENSE' 2014-11-26 02:20:55 +00:00
purgeChangedPages.php Remove '@section LICENSE' 2014-11-26 02:20:55 +00:00
purgeList.php Update formatting in maintenance/ (3/4) 2014-04-23 20:09:13 +02:00
purgeOldText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
purgeParserCache.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
README maintenance/README: Remove importTextFile.php 2014-07-21 17:10:23 -04:00
reassignEdits.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rebuildall.php Pass phpcs-strict on maintenance/ (3/8) 2014-04-22 21:25:52 +00:00
rebuildFileCache.php Remove $wgTitle from all maintenance scripts 2014-03-12 18:28:47 -07:00
rebuildImages.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rebuildLocalisationCache.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rebuildmessages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildrecentchanges.php Remove use of strencode() outside Database classes 2014-06-02 13:45:26 -04:00
rebuildSitesCache.php Implement SiteListFileCache and rebuild script 2014-11-27 22:32:25 +00:00
rebuildtextindex.php Run clearSearchIndex when mysql in rebuildTextIndex 2015-01-27 10:22:07 -08:00
refreshFileHeaders.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
refreshImageMetadata.php Unify the spelling of MIME in documentation 2014-08-07 23:38:45 +02:00
refreshLinks.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
removeInvalidEmails.php removeInvalidEmails.php: Fix batching continuation for wikis with >500 users 2014-12-04 10:40:25 -08:00
removeUnusedAccounts.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
renameDbPrefix.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
renderDump.php Import.php: Use Config instead of globals 2014-10-22 10:35:29 -07:00
resetUserTokens.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
rollbackEdits.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
runBatchedQuery.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
runJobs.php Set "has value" flag correctly for result parameter 2014-07-28 17:38:56 -07:00
runScript.php Add convenience maintenance script wrapper 2013-11-07 21:10:07 +01:00
showCacheStats.php Pass phpcs-strict on maintenance/ (2/8) 2014-04-22 21:25:47 +00:00
showJobs.php Added a --type filter to showJobs.php 2014-10-08 13:39:09 -07:00
showSiteStats.php Remove hitcounters and associated code 2014-10-20 13:01:55 -07:00
sql.php Allow the empty string as the wiki DB 2014-11-06 23:40:24 +00:00
sqlite.inc Change @return to start with type 2014-08-20 20:35:41 +02:00
sqlite.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
syncFileBackend.php Add missing @param to function docs 2014-08-18 16:24:59 +00:00
tables.sql Drop ss_total_views and page_counter fields from MediaWiki 2015-01-09 19:01:01 +00:00
tidyUpBug37714.php Tidy up log deletion rows which didn't get subpages 2013-09-21 02:42:45 +00:00
undelete.php SpecialUndelete/PageArchive: Use Config instead of globals 2014-08-06 16:20:26 +01:00
update-keys.sql Ignore duplicate key errors in update-keys.sql 2014-09-08 13:29:31 -07:00
update.php update.php: Run checkComposerLockUpToDate.php 2015-01-23 20:02:20 +00:00
updateArticleCount.php updateArticleCount.php: use "vslow" DB by default, allow master 2014-12-09 19:20:10 +00:00
updateCollation.php Add missing @return and @param to doc blocks 2014-08-27 21:57:45 +02:00
updateDoubleWidthSearch.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
updateRestrictions.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateSearchIndex.php Pass phpcs-strict on maintenance/ (1/8) 2014-04-22 21:25:22 +00:00
updateSpecialPages.php Get the value of microtime() directly as float in updateSpecialPages.php 2014-10-20 19:29:31 +02:00
userDupes.inc Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
userOptions.inc Add missing @param to function docs 2014-08-18 16:24:59 +00:00
userOptions.php Let maintenance class start with a upper case letter 2013-11-23 22:53:29 +01:00
validateRegistrationFile.php Implement extension registration from an extension.json file 2015-01-08 01:40:01 +00:00
waitForSlave.php Update formatting in maintenance/ (4/4) 2014-04-23 20:09:26 +02:00
wrapOldPasswords.php Added password hashing API 2014-07-27 15:51:18 -04:00

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findHooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer

	importImages.php
	Import images into the wiki

	moveBatch.php
	Move a batch of pages

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildmessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	showCacheStats.php
	Show all statistics stored in the cache

	undelete.php
	Undelete all revisions of a page

	update.php
	Check and upgrade the database schema to the current version

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options