Hello Mibew Team,
I recently installed Mibew Messenger on my server, and everything seemed to work fine. However, when starting a new chat session, I receive the following database error:
SQLSTATE[23000]: Integrity constraint violation: 1452
Cannot add or update a child row: a foreign key constraint fails (`chat_visae`.`thread`,
CONSTRAINT `thread_ibfk_1` FOREIGN KEY (`groupid`) REFERENCES `opgroup` (`groupid`))
My Setup:
Mibew Version: 3.6.0
PHP Version: 8.2
Database: 10.11.11-MariaDB
Web Server: Apache
Troubleshooting Steps Taken:
Checked the opgroup table using:
SELECT * FROM opgroup;
The table is not empty because I have already created groups and agents.
Questions:
Is this a known bug in recent Mibew versions?
Should Mibew automatically assign a valid groupid to chat threads?
What is the correct way to handle this foreign key constraint issue?
Any help would be greatly appreciated! Thanks in advance.
Best regards,
Omar B.