Extension talk:UserAdmin
Contents
Product Version MediaWiki 1.20.3 PHP 5.3.21 (cgi-fcgi) MySQL 5.1.52-log
+User Administration (Version 0.5.0)
+ required_once for UserAdmin.php in Localettings. By Submitting form (Edit/Add/Purge) -> "No such special page" Can anyone help ?
Thanks.
I'm having the same problem:
When I go to wiki/index.php?title=Special:UserAdmin I see the first 25 users, and everything looks good.
But if I do any action that adds arguments to the URL, it doesn't work.
For example going to wiki/index.php?title=Special:UserAdmin?pagesize=50 says "You have requested an invalid special page."
MediaWiki version: 1.20.3
User Administration version: 0.5.0
I get the same problem installed on an older wiki MediaWiki 1.16.5
with a few minor changes...
diff -r MediaWiki-Extension--UserAdmin/SpecialPurgeUser.class.php UserAdmin/SpecialPurgeUser.class.php
403a404
> case 21 :
diff -r MediaWiki-Extension--UserAdmin/SpecialUADMBase.class.php UserAdmin/SpecialUADMBase.class.php
59c59
< wfLoadExtensionMessages('UserAdmin');
---
> // wfLoadExtensionMessages('UserAdmin');
Hi ppl, i'd some experimenting with the layout of the table around, as it is easy to bare and cluttered effect, although the screenshot shows everything on the side of this extension to HTML style.
Anyway, here is a screenshot of it, so in my case currently, the table (s) looks like. Unfortunately, only the top row will be displayed in a table instead of all, my knowledge of HTML are low, maybe someone know how you would get those blemishes with the table in the handle and would like to look at the code again?
Update:
The code snippet is very small, it can be found starting at line 237, but I did not trust myself to experiment further, you can if you like to try it and let us know what has been changed / should be.
Code: <table bgcolor="#E6E6E6" cellspacing="2" cellpadding="2" width="100%" border="3">
Although the formatting leaves a bit to be desired. I modified line 237 in SpecialUserAdminPanel.class.php to change <table> into <table border="1"> and it is a bit more readable now.
Hi Terry,
I'm also using 1.20.2. I'm only a few days old in using Media Wiki so I installed this extension. I see the options to Add User, Delete, etc...but I can't really add a user. When I click on Add a user, it goes onto a new page and shows "No Such Special Page: You have requested an invalid special page.". Am I missing something after I installed this extension?
Any help is appreciated. Thank you!
Hi Terry, can you please make a screenshot and upload here, as in the screenshot in the article looks like, it does not look at my wiki?! Hello IP 75.72.177.47, which version do you have installed on your wiki? Latest version is 0.5.0, maybe is your version older?!
Kind regards, Sandro
Addendum: I must correct myself, version 0.9.0 is already available. Well my version is 0.5.0 and it works except for CSS quite well so far.
Hi Abani,
Thanks for responding to my above post (75.72.177.47). I have downloaded only few days ago so I have the latest version 0.9.0. I can see all the new options installed with it. But however I can't create a new user. As I mentioned above when I click the 'Add a User' button, it goes to new page and tells me "No Such Special Page: You have requested an invalid special page.".
Am I missing anything here? Do we need to do any configuration after we install the extention to get it all working?
Appreciate your time. Thanks!
Same issue.
Running MediaWiki 1.20.2 PHP 5.3.20 (cgi-fcgi) MySQL 5.1.67-community-log
Wanted to try out UserAdmin so I could add my own users...
Just downloaded. When I go to create a new user, after I hit "add user" button it states:
No such special page Jump to: navigation, search
You have requested an invalid special page.
A list of valid special pages can be found at Special pages.
Return to Main Page.
... And my user is not added.
- (
when I look at useradmin.php I see that the comments states version .9 but the wgExtensionCredits states version .5
line 18: * @version 0.9.0
line 35: 'version' => '0.5.0',
Not working for me
MediaWiki version: 1.20.2 User Administration: (Version 0.5.0) (at least it what it says) although I know I downloaded 0.9
Getting "No such special page" problem as well.
Product Version MediaWiki 1.20.3 PHP 5.3.21 (cgi-fcgi) MySQL 5.1.52-log
+User Administration (Version 0.5.0)
+ required_once for UserAdmin.php in Localettings. By Submitting form (Edit/Add/Purge) -> "No such special page" Can anyone help ?
Thanks.
Fatal error: Call to undefined method OutputPage::includeJQuery() in /var/lib/mediawiki/extensions/UserAdmin/SpecialUserAdminPanel.class.php on line 212 Call Stack: 0.0004 356844 1. {main}() /usr/share/mediawiki/index.php:0 0.0767 7158852 2. MediaWiki->initialize(class Title, null, class OutputPage, class User, class WebRequest) /usr/share/mediawiki/index.php:116 0.0768 7158852 3. MediaWiki->initializeSpecialCases(class Title, class OutputPage, class WebRequest) /usr/share/mediawiki/includes/Wiki.php:59 0.0799 7500356 4. SpecialPage::executePath(class Title, ???) /usr/share/mediawiki/includes/Wiki.php:229 0.1200 10260568 5. SpecialUADMBase->execute(null) /usr/share/mediawiki/includes/SpecialPage.php:559 0.1532 12109772 6. SpecialUADMBase->executeGET(null) /var/lib/mediawiki/extensions/UserAdmin/SpecialUADMBase.class.php:88 0.1544 12119308 7. SpecialUserAdminPanel->doGET() /var/lib/mediawiki/extensions/UserAdmin/SpecialUADMBase.class.php:124
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)
It seems to be related to this issue, but I can't manage to find the good hack !
How would I go about making this Bureaucrat only? This is what I have so far, but it doesn't work :-(
LocalSettings.php
require_once( "$IP/extensions/UserAdmin/UserAdmin.php" ); $wgGroupPermissions['*' ]['UserAdmin'] = false; $wgGroupPermissions['user' ]['UserAdmin'] = false; $wgGroupPermissions['autoconfirmed']['UserAdmin'] = false; $wgGroupPermissions['bot' ]['UserAdmin'] = false; $wgGroupPermissions['Editor' ]['UserAdmin'] = false; $wgGroupPermissions['sysop' ]['UserAdmin'] = false; $wgGroupPermissions['bureaucrat' ]['UserAdmin'] = true;
--
Try setting the other useradmin permissions to false too (AddUser, PurgeUser, EditUser)
A Q&D modifiction will make it work on 1.17 1.18 and 1.19, as long as the uploadstash (new since 1.16) wasn't affected.
change SpecialPurgeUserClass.php from
switch($versionMinor)
{
case 16:
$purge = new MWPurge_1_16;
break;
default:
return $this->getPOSTRedirectURL( false, wfMsg( 'uadm-unsupportedversionmsg', $abortError) );
}
into
switch($versionMinor)
{
case 16:
case 17: // Possible problem with uploadstash table; ignored for now
case 18:
case 19:
$purge = new MWPurge_1_16;
break;
default:
return $this->getPOSTRedirectURL( false, wfMsg( 'uadm-unsupportedversionmsg', $abortError) );
}
The value for uadm-unsupportedversionmsg was missing from UserAdmin.i18n.php
Very useful extension to get rid of the myriads of spam-accounts, tnx! - Arent (talk) 20:00, 5 June 2012 (UTC)
I have made the edit recommended above, but to no avail. Following is the result of Special:Version :
Product Version MediaWiki 1.19.1 PHP 5.3.13 (apache2handler) MySQL 5.1.49-log
When I attempt to go to Special:AddUser, for example, I get the following:
The website encountered an error while retrieving http://www.cookingtf.net/mediawiki/index.php/Special:AddUser. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
The UserAdmin pages I'm having trouble with are as follows: Special:AddUser Special:EditUser Special:PurgeUser Special:UserAdmin
My LocalSettings.php file is in the right location. My database connection is working just fine. FYI, it does not use localhost, but I have specified the host given by my site host. We are on a dedicated server.
I'm not sure what I'm missing, but could certainly use some guidance. Thanks, Jeff
I tried to add this to a fresh 1.19.1 install, and when I went to "Add User" in the Special:Pages, I got this error: Fatal error: Call to private method User::loadGroups() from context 'SpecialUADMBase' in /home/myusername/public_html/wiki/extensions/UserAdmin/SpecialUADMBase.class.php on line 530
Which references: $user->loadGroups();
Any help?
I'm very new to Mediawiki so excuse my possible dumb question.
I am attempting to remove a group from a user. When I attempt to Save User I get a special page not found message. Also if I attempt to Find a user it returns me to the main page.
For the first problem I see that it probably gets the return page from the getPOSTRedirectURL function but I am not good enough with php to figure out where it gets the parameters for that.
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.
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.