Wrong parameters for Exception when changing user password

Jump to: navigation, search

Bug: edit a user, set a new password or edit its groups, save change: Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /www/w/extensions/UserAdmin/SpecialUADMBase.class.php on line 43. Running MediaWiki 1.16.5, PHP 5.2.17 (cgi), MySQL 5.0.90-log. --almaghi 12:50, 19 September 2011 (UTC)

almaghi12:50, 19 September 2011

It sounds like the exception reporting for a failure isn't working, I'll look into this. Did you put some text into the reason field?

LanceGatlin17:13, 19 September 2011

I just came across this error in my install, it may be that PHP < 5.3 only has two parameters to the Exception constructor.

I am running MediaWiki 1.17, PHP 5.2.11

I changed "extensions/UserAdmin/SpecialUADMBase.class.php" thusly:

   //parent::__construct($message, $code, $previous);
   parent::__construct($message, $code);

That error went away, and 1.17 now seems to work with this extension.

Thanks, r.b.

166.67.66.720:25, 17 April 2012
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox