Manual:orphans.php
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.38.0</tvar>.</translate> <translate> Please see <tvar name=page>deleteOrphanedRevisions.php</tvar> for an alternative way to use this feature.</translate> |
MediaWiki file: orphans.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | Orphans |
orphans.php is a MediaWiki maintenance script that looks for 'orphan' revisions (= revisions, which point to a non-existing page) and for 'childless' pages with no revisions (= pages, which point to a non-existing revision).
Options
Option/Parameter | Description |
---|---|
--fix | Actually fix broken entries. |
Usage
php maintenance/orphans.php [ --fix ]
Terminal
$ php maintenance/orphans.php Checking for orphan revision table entries... (this may take a while on a large wiki) No orphans! Yay! Checking for pages whose page_latest links are incorrect... (this may take a while on a large wiki) No pages with incorrect latest revision. Yay!
By default, the script finds but does not fix broken entries. To actually fix broken entries, run the script with --fix parameter.