Extension talk:UserAdmin
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Wrong parameters for Exception when changing user password | 2 | 20:32, 17 April 2012 |
| Update for 1.17 | 2 | 20:31, 17 April 2012 |
| Bug in Recent Changes when user deleted | 0 | 10:53, 14 April 2012 |
| PHP Fatal error: Call to private method User::loadGroups() from context 'SpecialUADMBase' | 1 | 10:39, 13 April 2012 |
| Does not work on 1.18 | 1 | 13:07, 16 March 2012 |
| Purge user throws an error | 0 | 10:28, 4 November 2011 |
| Should the update.php script be ran after installing this extension ? | 1 | 17:21, 19 September 2011 |
| Error Report User Names with lowerCase first character | 1 | 17:20, 19 September 2011 |
| Deletion | 1 | 17:11, 19 September 2011 |
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)
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?
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.
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)
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.
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)
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
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);
For your information, this extension does not work with MediaWiki 1.18: none of the Special pages can be loaded.
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
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
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.