Manual:findMissingActors.php

From Linux Web Expert

Revision as of 20:15, 16 July 2022 by imported>Shirayuki (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.34
Gerrit change 625731
<translate> MediaWiki version:</translate>

Details

findMissingActors.php is a maintenance script for finding and replacing invalid actor IDs, see <translate> task <tvar name=1>T261325</tvar></translate>.

This allows bad actor IDs to be overwritten with some default. This solves the problem of rows in tables like ipblocks, logging, or revision not being found due to a failing join against the actor table.

Options/Arguments

Option Description Required?
--field The name of a database field to process <translate> Required</translate>
--skip A comma-separated list of actor IDs to skip <translate> Optional</translate>
--overwrite-with Replace missing actors with this user. Typically, this would be "Unknown user", but it could be any reserved system user (per $wgReservedUsernames ) or locally registered user. If not given, invalid actors will only be listed, not fixed. You will be prompted for confirmation before data is written. <translate> Optional</translate>

Usage

php maintenance/findMissingActors.php --field [ --skip| --overwrite-with ]
Terminal

See also