Author: dick.pluim
Description:
I'm getting the following when I try to solve SpecialPages:BadTitle-problem:
root@mediawiki mediawiki/maintenance# php cleanupTitles.php --fix
Checking and fixing bad titles...
Processing page...
page 44 (Trusted) doesn't match self.
renaming 44 (500,'Trusted') to (0,'Trusted')
page 45 (Trusted) doesn't match self.
renaming 45 (3000,'Trusted') to (0,'Trusted')
A database query error has occurred.
Query: UPDATE page SET page_namespace = '0',page_title = 'Trusted' WHERE page_id = '45'
Function: TitleCleanup::moveInconsistentPage
Error: 1062 Duplicate entry '0-Trusted' for key 'name_title' (localhost)
root@mediawiki mediawiki/maintenance# php cleanupTitles.php --fix
Checking and fixing bad titles...
Processing page...
page 45 (Trusted) doesn't match self.
PHP Fatal error: Call to a member function exists() on a non-object in /usr/share/mediawiki/maintenance/cleanupTitles.php on line 153
Actually the first run seems to run OK, but the second run gives the fatal error.
Line 153 shows: if ( $verified->exists() ) {
Happens also on a 1.23.1-installation.
Version: 1.23.1
Severity: normal
OS: Linux