Unable to delete user

Bug #1354055 reported by Dan Garner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Fix Released
Medium
Dan Garner

Bug Description

I'm on 1.6.1

I can create new Users fine, but when i try to delete a User i get:

"Unable to delete User Group"

I don't have any user groups setup!

Here's what i get in the error log:

11886 2014-07-28 18:36:55 user

<errormsg>Unable to delete User Group.</errormsg>
<errornum>256</errornum>
<errortype>User Error</errortype>
<scriptname>/var/www/xibo/lib/pages/user.class.php</scriptname>
<scriptlinenum>430</scriptlinenum>

11885 2014-07-28 18:36:55 user

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`xibo`.`lkusergroup`, CONSTRAINT `lkusergroup_ibfk_1` FOREIGN KEY (`GroupID`) REFERENCES `group` (`groupID`))

11884 2014-07-28 18:36:55 user

<errormsg>Undefined variable: userID</errormsg>
<errornum>8</errornum>
<errortype>Notice</errortype>
<scriptname>/var/www/xibo/lib/data/usergroup.data.class.php</scriptname>
<scriptlinenum>259</scriptlinenum>

Can someone please help as to why this happens and how can i resolve it?

Thanks!

Tags: cms

Related branches

Revision history for this message
Dan Garner (dangarner) wrote :

There are 3 files that will need replacing in a 1.6.2 installation to fix this issue. They are attached.

Changed in xibo:
milestone: none → 1.6.3
assignee: nobody → Dan Garner (dangarner)
status: New → Fix Committed
importance: Undecided → Medium
tags: added: cms
Revision history for this message
Dan Garner (dangarner) wrote :
Revision history for this message
Dan Garner (dangarner) wrote :
Revision history for this message
Dan Garner (dangarner) wrote :
Dan Garner (dangarner)
Changed in xibo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.