Extension talk:User Contact Links

MW 1.8.3
Problem: The extension does not work in MW 1.8.3, producing following error in server error log: PHP Fatal error: Call to undefined method User::newfromid in .../extensions/UserSignature.php on line 32

Step 1: Add the following function to the end of :

function newFromId( $id ) { $u = new User; $u->mId = $id; $u->mFrom = 'id'; return $u; }

Step 2: Replace line 32 in.

Old line: $u = User::newFromId($userid);

New line: $u = newFromId($userid);

Have fun! Khitrenovich 10:30, 8 November 2007 (UTC)


 * Thanks for the suggestion. I have implemented this and committed the changes to SNV. --Gri6507 14:06, 8 November 2007 (UTC)


 * Nice, 10x! Khitrenovich 17:06, 8 November 2007 (UTC)

Extension URL
Also, it may be a good idea to add URL to, so it will be visible in Special:Version page: 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Contact_Links' --Khitrenovich 17:05, 8 November 2007 (UTC)
 * Thanks for the suggestion. I just added it to SVN. --Gri6507 02:21, 11 November 2007 (UTC)

"Undefined offset:" error on MW 1.11
I'm trying to use this extension with MW 1.11 and I'm getting this error on top of page when trying to access Special:Version page:

Notice: Undefined offset: 1 in /var/www/www.zpsh.ru/wiki/extensions/UserContactLinks/UserSignature.php on line 79

Ipse 13:51, 26 January 2008 (UTC)