# Installation plugin sql error

**URL:** <https://forums.concretecms.org/t/installation-plugin-sql-error/4261>\
**Category:** Installation\
**Created:** [October 20, 2022, 2:51pm UTC](https://forums.concretecms.org/t/installation-plugin-sql-error/4261 "2022-10-20T14:51:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bitit](https://forums.concretecms.org/user_avatar/forums.concretecms.org/bitit/32/3607_2.png) [@bitit](https://forums.concretecms.org/u/bitit)\
**Post date:** [November 4, 2022, 2:42pm UTC](https://forums.concretecms.org/t/installation-plugin-sql-error/4261/5 "2022-11-04T14:42:42Z")

</div>

ok in other web site i have the same problem but more complicate.  
i have upgraded from 8.3.2 to 8.5.9 and after 8.5.11 for the same problem in installing plugin.

```auto
 Doctrine \ DBAL \ Exception \ ForeignKeyConstraintViolationException
An exception occurred while executing 'ALTER TABLE atDefault ADD CONSTRAINT FK_3484F81EA2A82A5D FOREIGN KEY (avID) REFERENCES AttributeValues (avID) ON DELETE CASCADE': SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`database`.`#sql-d72_101032`, CONSTRAINT `FK_3484F81EA2A82A5D` FOREIGN KEY (`avID`) REFERENCES `AttributeValues` (`avID`) ON DELETE CASCADE)
Previous exceptions

    SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`database`.`#sql-d72_101032`, CONSTRAINT `FK_3484F81EA2A82A5D` FOREIGN KEY (`avID`) REFERENCES `AttributeValues` (`avID`) ON DELETE CASCADE) (23000)
    SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`database`.`#sql-d72_101032`, CONSTRAINT `FK_3484F81EA2A82A5D` FOREIGN KEY (`avID`) REFERENCES `AttributeValues` (`avID`) ON DELETE CASCADE) (23000)

```

i have i have tried to following the same way for solving but, in running  
“php ./concrete/bin/concrete5 orm:schema-tool:update --dump-sql”  
i have the following error

```auto
[04-Nov-2022 14:00:51 UTC] PHP Warning: require(/home/maestro/public_html/updates/concrete-cms-8.5.11/concrete/bin/concrete5.php): failed to open stream: No such file or directory in /home/maestro/public_html/concrete/bin/concrete5 on line 80
[04-Nov-2022 14:00:51 UTC] PHP Fatal error: require(): Failed opening required '/home/maestro/public_html/updates/concrete-cms-8.5.11/concrete/bin/concrete5.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/maestro/public_html/concrete/bin/concrete5 on line 80

```

same tip?

---

_[View the full topic](https://forums.concretecms.org/t/installation-plugin-sql-error/4261)._
