Extension talk:Renameuser/Archive 1

From mediawiki.org
Jump to navigation Jump to search
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Fails silently[edit]

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)[reply]

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

What about earlier MW versions?[edit]

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)[reply]

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

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

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. -- 10:40, 5 February 2007 (UTC)[reply]

Well, this looks very helpfull [1] -- 15:08, 6 February 2007 (UTC)[reply]


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 mediawiki-root/extentions seems not to be enough.

Any help is appreciated. Thanks in advance

-- 07:06, 18 September 2006 (UTC)[reply]

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*
-- 14:27, 25 September 2006 (UTC)[reply]

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)[reply]

The Solution is as follows:
  • 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
include_once('includes/SpecialRenameuser.php') ;

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

Fatal Error[edit]

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)[reply]


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 ) {


--- 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 );
                $wgAuth->updateExternalDB( $user );

Save this as SpecialRenameuser_body.php.newFromName.patch in your extensions/Renameuser directory, then run:

patch -p0 <SpecialRenameuser_body.php.newFromName.patch

Instructions for use[edit]

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)[reply]

Quick Question[edit]

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.-- 01:02, 7 February 2007 (UTC)[reply]


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