Extension talk:Renameuser/Archive 2

I was just trying to rename a user, and while it accurately notes whether the source user doesn't exist or the target user exists, it seems to fail silently on reasonable requests. I submit two usernames, get returned to the screen with neither error nor success message, but find the move to have failed... after 4 tries, it worked. This may just have been general unhappiness of the db, affecting many things; I filed it as a transient bug (4969). Sj 02:36, 12 February 2006 (UTC)

I can't seem to get the extension to show itself. : < --Markthebike 06:52, 10 April 2006 (UTC)

What about earlier MW versions?
Could someone advise me where to get this extension for MediaWiki 1.6.8? We're not allowed to upgrade to MW 1.7x, as we don't have PHP 5 running on our server yet...

I heard this extension was available for MW 1.5x, so where could we get those earlier versions for pre-1.7 MediaWiki? Thanks for helping. --Faterson 19:53, 8 August 2006 (UTC)

One more for the 1.6.8 request... Aquatiki 02:12, 22 August 2006 (UTC)

SpecialRenameuser.php from SVN rev 13413 worked fine for our intranet's 1.6.6 install. 68.13.123.37


 * Ditto on the 1.5 version: I found it was once possible here.

I would be very happy too to get the earlier version, because i have to stick to MediaWiki 1.6.9. --84.170.249.59 10:40, 5 February 2007 (UTC)


 * Well, this looks very helpfull --84.170.250.214 15:08, 6 February 2007 (UTC)

Help
Shouldn't there be any instructions on how to install the extension or did I miss the article which describes how to install extensions in general, to which nevertheless shall be referred to (by a link or so) from this article ? Just copying the three files to  seems not to be enough.

Any help is appreciated. Thanks in advance

--141.41.37.95 07:06, 18 September 2006 (UTC)

I solved it myself: That a file ExtensionFunctions.php has to be downloaded seems to be an important point.

Put it there where the LocalSettings.php is: [source]


 * Thanks for the help. The documentation for Renameuser is severely missing... *grumble*
 * --62.225.150.98 14:27, 25 September 2006 (UTC)


 * Could somebody please help me install this extension? I am not a wiki expert yet.
 * I have MediaWiki version 1.7.1


 * Thanks in advance!
 * --Baskolff 10:50, 31 October 2006 (UTC)


 *  The Solution is as follows: 

include_once('includes/SpecialRenameuser.php') ;
 * Get the ExtensionFunctions.php as mentioned above
 * Download the 3 Files and copy them in your includes/ Directory
 * Add following line to your Localconfig.php

Thats it !! Tested on Mediawiki 1.8.2 --Ckleber 09:15, 6 December 2006 (UTC)

Fatal Error
on 1.8.2: Fatal error: Call to undefined method User::newfromid in /mnt/198/0/wiki/includes/SpecialRenameuser_body.php on line 264

+2 to initial report (I get this error as well with mediawiki-1.8.2).

+1 to initial report (I get this error as well with mediawiki-1.7.1). The solution below fixes mediawiki-1.7.1 as well.

Fatal error: Call to undefined method User::newfromid in /.../extensions/Renameuser/SpecialRenameuser_body.php on line 330 on MW-1.7.1
 * I suppose the workaround beneath works, but shouldn't this be fixed in the extension instead? --Jamasi 01:06, 16 June 2007 (UTC)

Workaround:
seems to be a problem with 1.8.2 add the following lines in includes/User.php and it should work. Find the line function newFromConfirmationCode... and change into static function newFromId( $id ) { $u = new User; $u->mId = $id; $u->mFrom = 'id'; return $u; }

function newFromConfirmationCode( $code ) {

Patch
--- SpecialRenameuser_body.php.ORIG    2007-07-19 08:09:28.000000000 +0900 +++ SpecialRenameuser_body.php 2007-07-19 08:10:59.000000000 +0900 @@ -381,7 +381,7 @@                }                 // Clear caches and inform authentication plugins -              $user = User::newFromId( $this->uid ); +              $user = User::newFromName( $this->old ); $user->invalidateCache; $wgAuth->updateExternalDB( $user );

Save this as  in your   directory, then run: patch -p0 <SpecialRenameuser_body.php.newFromName.patch

Instructions for use
I added instructions, based on the above comments and my own experience, to the article. Thanks all for your help on figuring this out. --LRG 21:09, 15 January 2007 (UTC)

Quick Question
Will the user keep his contributions?

For example if i rename user X to user Y, will everything that user X edited appear as edited by user Y and the the contributions won't be all outa wack.--71.217.192.176 01:02, 7 February 2007 (UTC)

help
I did that, no error message came up or anything, but it didn't work.--X66x66 21:32, 5 April 2007 (UTC)

Why cant you keep the extension in a directory in Extensions?
Why do we need to copy an extension OUTSIDE the Extensions folder? Is this not an extension? --Kenny5 00:45, 14 April 2007 (UTC)
 * I have edit the installation directions to reflect this.--74.141.69.143 00:57, 14 April 2007 (UTC)

Doesnt do anything for Recent Changes
If we have an abusive user register with a bad username, this extension doesnt do anything to rename the occurance of that name there. --74.141.69.143 00:57, 14 April 2007 (UTC)
 * If your wiki is not under heavy load of edits you can remove the comment markers ( /* */ ) from the last but one line of this block:

You can find this in Renameuser_body.php at line 283. --Jamasi 01:34, 21 June 2007 (UTC)

Error messages when renaming and upon accessing Special:Allmessages
On my wiki, trying to rename a user gives:


 * Fatal error: Call to undefined function wfQueriesMustScale in /home/ihope/public_html/mediawiki/extensions/Renameuser/SpecialRenameuser_body.php on line 289

and trying to open Special:Allmessages gives both


 * Warning: require(/home/ihope/public_html/mediawiki/extensions/Renameuser/RenameUserJob.php) [function.require]: failed to open stream: No such file or directory in /home/ihope/public_html/mediawiki/includes/AutoLoader.php on line 302

and


 * Fatal error: require [function.require]: Failed opening required '/home/ihope/public_html/mediawiki/extensions/Renameuser/RenameUserJob.php' (include_path='/home/ihope/public_html/mediawiki:/home/ihope/public_html/mediawiki/includes:/home/ihope/public_html/mediawiki/languages:.:/pear/lib:/var/www/pear/lib') in /home/ihope/public_html/mediawiki/includes/AutoLoader.php on line 302

This page as it is now doesn't mention RenameUserJob.php as I can see. --71.205.100.59 21:02, 28 June 2007 (UTC)

works for me. Consider updating

Fatal error: undefined function wfQueriesMustScale
Even the same problem, when i filled in the form to change a user:

Fatal error: Call to undefined function wfQueriesMustScale in /var/www/xims/extensions/Renameuser/SpecialRenameuser_body.php on line 289

But no other errors ;)!


 * Your report is missing something quite important: version of your MediaWiki --Jamasi 02:09, 30 June 2007 (UTC)
 * Fixed, this was a backwards-compatibility issue. Aaron 03:12, 30 June 2007 (UTC)

Special:Renameuser not accessible by neither Bureaucrat nor Sysop
Hey, my administrator user in my MediaWiki 1.6.10 system (installation verified through Special:Version) has both Bureaucrat and Sysop rights (from some time '^_^), and I can't see the Special:Renameuser page in the list, nor access it by using Go!. What's the problem?.

-Smiley 00:57, 29 July 2007 (UTC)

Ugh! I found out it may be that it requires PHP5, which I don't have. Grr...

-Smiley 00:57, 29 July 2007 (UTC)

no braces?
This didn't work for me (mediawiki 1.7.1): require_once( "{$IP}/extensions/Renameuser/SpecialRenameuser.php" );

Instead, this did: require_once( "$IP/extensions/Renameuser/SpecialRenameuser.php" );

Consider updating? --68.2.74.79 03:04, 12 September 2007 (UTC)

Please fix a language error
Please change the following line in SpecialRenameuser_body.php:
 * $success = $oldPage->moveTo( $newPage, false, wfMsg( 'renameuser-move-log', $oldusername->getText, $newusername->getText ) );

to
 * $success = $oldPage->moveTo( $newPage, false, wfMsgForContent( 'renameuser-move-log', $oldusername->getText, $newusername->getText ) );

because now it uses the user language, not the content language, and this makes the following error:

I have Dutch as my user language, and I have renamed a user, you can see the log in English and the log in Dutch. You can see it's both in Dutch, please fix that error.

Thanks, SPQRobin 17:12, 20 November 2007 (UTC)


 * Fixed with 27703. --Raymond 06:32, 21 November 2007 (UTC)

Not moving subpages
I notice that it moves the user page and the talk page, but what about sub pages? 69.54.2.183 05:33, 2 December 2007 (UTC)

Class 'Job' not found
I'm running MediaWiki 1.11.0, PHP 5.2.3 (cgi-fcgi), MySQL 5.0.24a-standard-log

Unfortunately, I'm stopped with a very basic error:

Fatal error: Class 'Job' not found in (snip)/extensions/Renameuser/RenameUserJob.php on line 6

The only related reference to "class job" I've found online shows abstract class Job is defined in includes/JobQueue.php

I've verified my installation has includes/JobQueue.php. I have *not* installed the ExtensionFunctions.php mentioned above, as that code seems to have no reference to Job, and is circa version 1.7.

Can someone point me in the right direction?

Thanks! - Thunderrabbit 18:32, 21 December 2007 (UTC)
 * You can either update MediaWiki or get older versions from branches/extensions. Aaron 23:57, 20 February 2008 (UTC)

One exception - signatures
Signatures are currently not updated with this tool and instructions suggest changing them manually. This treats signatures like they are marginal tools when in reality they are all over the place and make the wiki's main way for user interaction. I think it's time to add signatures to this tool. Surely someone can think of technical ways to implement this.

Maybe future signatures would be an internal part of the display somehow and thus could be changed automatically, but currently they're manual and they should be dealt with. -79.181.126.193 11:36, 31 December 2007 (UTC)


 * The old name should be a redirect to the new one, so it is not that big of an issue. Aaron 19:12, 31 December 2007 (UTC)

Version requirement incorrect?
The page claims the minimum requirement is "MediaWiki version 1.7.0", but it's attempting to call wfLoadExtensionMessages, which as far as I know is a 1.11 addition. Should this be updated? --Krenn 20:52, 20 February 2008 (UTC)
 * Someone updated all of the extension messaging and didn't update these pages. It probably should be updated. Aaron 23:56, 20 February 2008 (UTC)