|This feature was removed from MediaWiki core in version 1.38.0. Please see deleteOrphanedRevisions.php for an alternative way to use this feature.|
|MediaWiki file: orphans.php|
|Source code:||master • 1.38.2 • 1.37.3 • 1.35.7|
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).
|--fix||Actually fix broken entries.|
php maintenance/orphans.php [ --fix ]
$ 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.