Extension talk:UserAdmin

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Wrong parameters for Exception when changing user password

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
 
 

Update for 1.17

This is great! I wish it worked on 1.17, though. Any idea on when an update might be published?

--Fulv 06:21, 28 July 2011 (UTC)

06:21, 28 July 2011

This extension was created for my company and I don't currently have any requirements to upgrade 1.17. So no plans here. Perhaps some more motivated individual will come along. I haven't tested it, but the extension should work in 1.17 with the exception of purge user.

LanceGatlin17:03, 19 September 2011
 

Verified that this indeed works on 1.17.

r.b.

166.67.66.720:31, 17 April 2012
 

Bug in Recent Changes when user deleted

I get a strange bug when I delete an (spam)user.

If there is a "Recent changes" transclusion in a page : - the title of the page becomes "Special:RecentChanges/15,hideminor" - the title (<h2>Recent changes</h2> for instance) just above the "Recent changes" transclusion shows "UNIQ2faf6df0429204f9-h-0--QINU Recent changes"

If I suppress the "Recent changes" transclusion, the bug disappears. And few days later, when the line "user XXX deleted" disappears, then this bug disappears.

Anyone has noticed the same problem and maybe fixed it ? (Not really bothering but not nice-looking)

Varlin (talk)10:52, 14 April 2012

PHP Fatal error: Call to private method User::loadGroups() from context 'SpecialUADMBase'

Loading the page Special:UserAdmin causes the above error.

User Administration (Version 0.5.0) (installed via git)
Mediawiki 1.18.0 (r113885)
PHP 5.2.10
Pgr94 (talk)00:11, 23 March 2012

Replacing loadGroups() with public getGroups() (which calls loadGroups() ) in all instances of UserAdmin will make the error go away...

On using Special:UserAdmin with MW18.2 I'm now getting heaps of warnings like:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /MYURL/public_html/wiki/includes/User.php on line 2295
Warning: array_unique() [function.array-unique]: The argument should be an array in /MYURL/public_html/wiki/includes/User.php on line 2295
Warning: array_diff() [function.array-diff]: Argument #1 is not an array in /MYURL/public_html/wiki/extensions/UserAdmin/SpecialUserAdminPanel.class.php on line 395
Warning: Invalid argument supplied for foreach() in /MYURL/public_html/wiki/extensions/UserAdmin/SpecialUserAdminPanel.class.php on line 397
395   $groups = array_diff($user->getEffectiveGroups(), $user->getImplicitGroups());
396   $groupsHTML = ;
397   foreach ($groups as $group)
398     $groupsHTML .= User::makeGroupLinkHtml($group, htmlspecialchars(User::getGroupMember($group))) . ', ';
399   $groupsHTML = substr($groupsHTML, 0, strlen($groupsHTML) - 2);

Disabling warning display will get rid of them.
errors do not show up on MW19.0beta2 however... - Arent (talk) 10:39, 13 April 2012 (UTC)
Arent (talk)10:39, 13 April 2012
 

Does not work on 1.18

For your information, this extension does not work with MediaWiki 1.18: none of the Special pages can be loaded.

Robinson Weijman (talk)09:34, 17 February 2012

for the Version 1.18.0 Special Page Loaded with all features but could not add user the folliwing message comes up __________


The website cannot display the page

___
HTTP 500
Most likely causes:

•The website is under maintenance. •The website has a programming error.

__

any solution ? thanks

82.5.93.13413:07, 16 March 2012
 

Purge user throws an error

Hi. I'm running version v0.9.0-0-gdf8645d with MW 1.16.5. When I try to purge a user I get the following error:

Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in
/home/webapps/wpcc/extensions/UserAdmin/SpecialUADMBase.class.php on line 32

Any ideas?

Thanks

Mitchelln10:27, 4 November 2011

Should the update.php script be ran after installing this extension ?

almaghi13:05, 19 September 2011

No, update.php is not necessary for UserAdmin extension.

LanceGatlin17:21, 19 September 2011
 

Error Report User Names with lowerCase first character

User Names with lowercase first characters will result in nothing. No user will be added, thats OK while Media Wiki will not allow this User Names. But there are no error Message. Thats not OK

Eather give an error Message or do it like MediWiki, Uppercase the first character by force.

Thank you

btw. A Update to 1.17 would be fine

91.23.246.22810:27, 15 September 2011

Extension should work in 1.17 with exception of purging.

To clarify your bug: When incorrectly creating a user with a lower-case first name, no user is added, but no error message is displayed.?

LanceGatlin17:04, 19 September 2011
 

How does this extension handle the reassignment of deleted users' contributions?

Kudu ~I/O~21:13, 2 September 2011

Mediawiki already has a concept of "delete" that implies the ability to undo the delete. I use the term "purge" to mean deletion that cannot be undone. When purging a user, the user's content is also purged. This includes revisions, uploads, pages, etc. The purge user function is intended to be used to get rid of spam accounts. If you want to "delete" a user (and preserve their content), block user should be used.

LanceGatlin17:02, 19 September 2011
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox