# Weird error from database

**URL:** https://forum.mautic.org/t/weird-error-from-database/4340
**Category:** Product Support
**Created:** [June 8, 2016, 9:14pm UTC](https://forum.mautic.org/t/weird-error-from-database/4340 "2016-06-08T21:14:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rodfernand](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rodfernand](https://forum.mautic.org/u/rodfernand)
#### Post date: [June 8, 2016, 9:14pm UTC](https://forum.mautic.org/t/weird-error-from-database/4340/1 "2016-06-08T21:14:09Z")

</div>

Hello folks,  
  
  
  
Got this weir error. Anybody encountered this before?  
  
  
  
[2016-06-08 21:53:52] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: “An exception occurred while executing ‘DELETE FROM campaign\_events WHERE id = ?’ with params [5]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`swgins_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`))” at /var/www/webURL/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 {“exception”:"[object] (Doctrine\DBAL\DBALException(code: 0): An exception occurred while executing ‘DELETE FROM campaign\_events WHERE id = ?’ with params [5]:nnSQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`webURL_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`)) at /var/www/webURL.com/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`swgins_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`)) at /var/www/webURL.com/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:855)"} []

---

<div class="post-metadata">

### Author: ![rodfernand](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rodfernand](https://forum.mautic.org/u/rodfernand)
#### Post date: [June 8, 2016, 9:14pm UTC](https://forum.mautic.org/t/weird-error-from-database/4340/2 "2016-06-08T21:14:09Z")

</div>

Hello folks,

Got this weir error. Anybody encountered this before?

[2016-06-08 21:53:52] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALDBALException: “An exception occurred while executing ‘DELETE FROM campaign\_events WHERE id = ?’ with params [5]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`swgins_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`))” at /var/www/webURL/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 91 {“exception”:"[object] (Doctrine\DBAL\DBALException(code: 0): An exception occurred while executing ‘DELETE FROM campaign\_events WHERE id = ?’ with params [5]:nnSQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`webURL_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`)) at /var/www/webURL.com/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`swgins_maudb`.`campaign_events`, CONSTRAINT `FK_8EC42EE7727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `campaign_events` (`id`)) at /var/www/webURL.com/m/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:855)"} []
