Page MenuHomePhabricator

Expiry time for group invalid on Special:UserRights
Closed, DuplicatePublic

Description

I have a wiki running MediaWiki 1.30 and PHP 7.0. On this site I have multiple groups with 2 of them being called staff and util in LocalSettings.php. I have allowed the util group technically to remove both the staff and util groups from any user but not add the groups. If I use createAndPromote.php to add a user into both groups and then try to add any other group to myself using Special:UserRights (bureaucrat for instance) it fails with this error The expiry time for group "staff" is invalid.

Please guide me in fixing this issue

Expected outcome: The group I want to add is added.
Current outcome: I get the error message above

Event Timeline

Sau226 created this task.Apr 16 2018, 11:02 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 16 2018, 11:02 AM
Sau226 renamed this task from Expiry time invalid on Special:userrights to Expiry time invalid on Special:UserRights.Apr 16 2018, 11:03 AM
Sau226 added a project: MediaWiki-General.
Reedy renamed this task from Expiry time invalid on Special:UserRights to Expiry time invalid on createAndPromote.php.Apr 16 2018, 11:05 AM
Reedy edited projects, added MediaWiki-Maintenance-scripts; removed MediaWiki-General.
MarcoAurelio added a subscriber: MarcoAurelio.EditedApr 16 2018, 11:10 AM

Maybe it should pass an indefinite or never string when running it since MediaWiki core now supports expiring userrights. I guess they forgot to amend this script once that functionality went live on core.

Sorry it's not a script error. I'll make that more clear in the description

Sau226 renamed this task from Expiry time invalid on createAndPromote.php to Expiry time invalid on Special:UserRights.Apr 17 2018, 5:48 AM
Sau226 updated the task description. (Show Details)
Aklapper renamed this task from Expiry time invalid on Special:UserRights to Expiry time for group invalid on Special:UserRights.Apr 17 2018, 8:32 AM
Aklapper updated the task description. (Show Details)