frontendusers error - can't seem to delete empty group

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
moorezilla

frontendusers error - can't seem to delete empty group

Post by moorezilla »

I created a new group under frontendusers but I no longer need it. I removed all users and tried to delete the group, but it fires the error "Cannot delete a group that still has users."

Going back to the users tab, when I select the group I want to delete and look for users, it's empty.

Any ideas?

feu 1.2.0
cmsms 1.1.1
php5
mysql5
linux/apache2
moorezilla

Re: frontendusers error - can't seem to delete empty group

Post by moorezilla »

Bump...

Both of the groups that can't be deleted, even though they're empty, start with History. I wonder if this is the problem. One group is named "History" and the other is "historysuper"

Any ideas?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: frontendusers error - can't seem to delete empty group

Post by calguy1000 »

I just (double) checked the SVN code to FEU, and after importing a group definition from XML (new functionality) I easily managed to delete the group, had the little trash can Icon and everything.

Seems to me I fixed a bug for this a while back.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
moorezilla

Re: frontendusers error - can't seem to delete empty group

Post by moorezilla »

Yeah... the trash can icon is there for me, but after following the link to delete the group, it fires the error saying that it can't delete a group that has users in it. I'll double check the svn for files that I may have missed.
moorezilla

Re: (resolved!) frontendusers error - can't seem to delete empty group

Post by moorezilla »

If you look in action.do_deletegroup.php of the frontendusers module (even in the svn version), you'll see

Code: Select all

if( count($this->GetUsersInGroup( $roup['id'] )) != 0 )
That $roup needs to be changed to $group and then all is right with the universe.

am
Locked

Return to “CMSMS Core”