Extension talk:UserAdmin

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

Contents

Thread titleRepliesLast modified
No such special page315:55, 2 May 2013
Working OK under 1.21alpha114:11, 1 May 2013
Seems to be working with 1.20.2718:46, 15 April 2013
No such special page009:10, 9 April 2013
includeJQuery011:10, 5 March 2013
PurgeUser usernames not SQL escaped!021:07, 3 January 2013
Bug in Recent Changes when user deleted118:44, 30 December 2012
managing permissions102:48, 6 November 2012
Works with 1.19 (modified) *Still Not Working*615:38, 16 October 2012
Wrong parameters for Exception when changing user password220:32, 17 April 2012
Update for 1.17220:31, 17 April 2012
PHP Fatal error: Call to private method User::loadGroups() from context 'SpecialUADMBase'110:39, 13 April 2012
Does not work on 1.18113:07, 16 March 2012
Purge user throws an error010:28, 4 November 2011
Should the update.php script be ran after installing this extension ?117:21, 19 September 2011
Error Report User Names with lowerCase first character117:20, 19 September 2011
Deletion117:11, 19 September 2011

No such special page

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.

ClementLinz (talk)09:10, 9 April 2013

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

Smenci (talk)14:34, 9 April 2013

I get the same problem installed on an older wiki MediaWiki 1.16.5

Mark Weiser (talk)22:06, 30 April 2013
 

I'm having the same problem

Product Version

MediaWiki 1.19.0

PHP 5.2.17 (cgi)

MySQL 5.5.28-29.3-log

130.15.92.14915:55, 2 May 2013
 

Working OK under 1.21alpha

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');
Joe Corneli23:10, 14 March 2013

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?

09808957674.png

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">
Abani79 (talk)14:01, 1 May 2013
 

Seems to be working with 1.20.2

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.

TerryC19:38, 31 January 2013

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!

75.72.177.4701:30, 27 February 2013

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

Abani79 (talk)14:20, 27 February 2013

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.

Abani79 (talk)14:23, 27 February 2013

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!

Pandu Peddisetti (talk)20:53, 27 February 2013

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',

Technoshamman (talk)14:37, 2 March 2013
 
 
 
 

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.

Gustavormello (talk)18:46, 15 April 2013
 

No such special page

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.

ClementLinz (talk)09:10, 9 April 2013

includeJQuery

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

137.108.145.4011:10, 5 March 2013

PurgeUser usernames not SQL escaped!

The purge user function does not sql escape usernames. This is a dangerous security hole!

Dschwen (talk)21:07, 3 January 2013

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

It seems to be related to this issue, but I can't manage to find the good hack !

Varlin (talk)18:44, 30 December 2012
 

managing permissions

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;

--

Zaiger (talk)02:44, 6 November 2012

Try setting the other useradmin permissions to false too (AddUser, PurgeUser, EditUser)

Jasper Deng (talk)02:48, 6 November 2012
 

Works with 1.19 (modified) *Still Not Working*

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)

Arent (talk)20:00, 5 June 2012

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

97.82.189.9515:52, 6 July 2012

hiya yes i have same problem any of the new added pages throws a

the website cannot display the page

HTTP 500  
  Most likely causes:

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

 im on 

MediaWiki 1.19.1 PHP 5.3.10 MySQL 5.1.57

any solution would be greatly welcomed :)

83.67.19.23613:48, 17 July 2012
 

I'm using MW 1.19.1, PHP 5.2.x and MySQL 5.1.x on all my mediawiki installations where I use UserAdmin. Not sure if that is preventing me from trouble. - Arent (talk) 08:42, 26 August 2012 (UTC)

Arent (talk)08:42, 26 August 2012
 

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?

98.231.240.20319:21, 25 August 2012

Having the same problem...

SpecialUADMBase.class.php on line 530

Fresh install of 1.19.1

64.1.215.222:44, 29 August 2012
 

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.

69.196.131.2615:38, 16 October 2012
 

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
 

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