Difference between revisions of "CleanupTitles.php"

From The System Administrator Zone
Line 1: Line 1:
 
[[Category:MediaWiki]]
 
[[Category:MediaWiki]]
  
See: [http://www.mediawiki.org/wiki/Manual:CleanupTitles.php Manual:cleanupTitles.php]
 
  
 +
=== The Problem ===
 
The Game Zone wiki was attached by Chinese Language SPAMMERS who left over two hundred corrupted pages that could not be edited or deleted, because the Titles contained invalid UTF-8 sequences.
 
The Game Zone wiki was attached by Chinese Language SPAMMERS who left over two hundred corrupted pages that could not be edited or deleted, because the Titles contained invalid UTF-8 sequences.
  
 
[[File:UncategorizedPages.PNG|1000px]]
 
[[File:UncategorizedPages.PNG|1000px]]
  
 +
=== cleanupTitles.php ===
 +
See: [http://www.mediawiki.org/wiki/Manual:CleanupTitles.php Manual:cleanupTitles.php]
  
 
Running the program with the '''--help''' option, will show you how to use it.
 
Running the program with the '''--help''' option, will show you how to use it.
Line 37: Line 39:
  
 
#
 
#
 +
</pre>
 +
 +
=== The Corruption ====
 +
 +
<pre>
 +
page 446 (同城异性交友网站www.7moo.info最好的同城交友网站) doesn't match self.
 +
DRY RUN: would rename 446 (0,'同城异性交友网站www.7moo.info最好的同城交友网站') to (0,'ŐŒåŸŽå¼‚性交友网站www.7moo.info最好的å
 +
�城交友网站')
 
</pre>
 
</pre>

Revision as of 14:30, 10 March 2012


The Problem

The Game Zone wiki was attached by Chinese Language SPAMMERS who left over two hundred corrupted pages that could not be edited or deleted, because the Titles contained invalid UTF-8 sequences.

UncategorizedPages.PNG

cleanupTitles.php

See: Manual:cleanupTitles.php

Running the program with the --help option, will show you how to use it.

# php cleanupTitles.php --help

Script to clean up broken, unparseable titles

Usage: php cleanupTitles.php [--conf|--dbpass|--dbuser|--dry-run|--globals|--help|--memory-limit|--quiet|--server|--wiki]

Generic maintenance parameters:
    --help (-h): Display this help message
    --quiet (-q): Whether to supress non-error output
    --conf: Location of LocalSettings.php, if not default
    --wiki: For specifying the wiki ID
    --globals: Output globals at the end of processing for debugging
    --memory-limit: Set a specific memory limit for the script, "max"
        for no limit or "default" to avoid changing it
    --server: The protocol and server name to use in URLs, e.g.
        http://en.wikipedia.org. This is sometimes necessary because server name
        detection may fail in command line scripts.

Script dependant parameters:
    --dbuser: The DB user to use for this script
    --dbpass: The password to use for this script

Script specific parameters:
    --dry-run: Perform a dry run

#

The Corruption =

page 446 (同城异性交友网站www.7moo.info最好的同城交友网站) doesn't match self.
DRY RUN: would rename 446 (0,'同城异性交友网站www.7moo.info最好的同城交友网站') to (0,'ŐŒåŸŽå¼‚性交友网站www.7moo.info最好的å
�城交友网站')