9.1.2 PHP8.0.8
I have encountered an error when trying to delete a member.
This member used the system calendar to post an event and the error message seems linked to the member’s association to the calendar event version?
The only way I could delete the member’s account was to delete the actual event they had posted.
I have posted this as a possible bug on Git.
@studio108 thank you for posting in Git. Are you able to add the link here?
Thanks!
Jess
Hi Jess,
it looks like it is an issue when the member has posted an event using the event calendar.
Once they have posted you cannot delete the member until removing the associated event from the Calendar.
opened 09:16AM - 14 Oct 22 UTC
Type:Bug
### Affected Version of Concrete CMS
9.x
### Description
Version 9.1.2.… Issue occurs on both PHP 7.4.21 & 8.0.8
I have encountered an error when trying to delete a member.
**An exception occurred while executing 'DELETE FROM Users WHERE uID = ?' with params [5]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`gene_therapies_912`.`calendareventversions`, CONSTRAINT `FK_8E260274FD71026C` FOREIGN KEY (`uID`) REFERENCES `Users` (`uID`))**
This member originally posted an event using the event calendar. When I tried to delete the member an error message appears and then member details remain.

### How to reproduce
Add a member and event calendar. Use the member's account to post an event. Login as the super user and attempt to delete the member account and the error message is thrown.
The only way to delete the member is to delete the event that this member posted onto the event calendar.
### Possible Solution
_No response_
### Additional Context
_No response_
1 Like