# Mautic platform with errors after version update

**URL:** <https://forum.mautic.org/t/mautic-platform-with-errors-after-version-update/14110>\
**Category:** Product Support\
**Tags:** community\
**Created:** [April 29, 2020, 6:14pm UTC](https://forum.mautic.org/t/mautic-platform-with-errors-after-version-update/14110 "2020-04-29T18:14:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliviganay](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oliviganay/32/1123_2.png) [@oliviganay](https://forum.mautic.org/u/oliviganay)\
**Post date:** [April 29, 2020, 6:14pm UTC](https://forum.mautic.org/t/mautic-platform-with-errors-after-version-update/14110/1 "2020-04-29T18:14:34Z")

</div>

**Your software**  
My Mautic version is: v2.16.2  
My PHP version is: 7.1.33

**Your problem**  
My problem is: mautic platform with errors after version update

These errors are showing in the log: mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: “An exception occurred while executing ‘INSERT INTO ma\_leads (is\_published, date\_added, created\_by, created\_by\_user, date\_modified, modified\_by, modified\_by\_user, checked\_out, checked\_out\_by, checked\_out\_by\_user, points, last\_active, internal, social\_cache, date\_identified, preferred\_profile\_image, title, firstname, lastname, company, position, email, phone, mobile, address1, address2, city, state, zipcode, timezone, country, owner\_id, stage\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1, “2020-04-29 17:55:11”, null, null, null, null, null, null, null, null, 0, null, “a:0:{}”, “a:0:{}”, null, “gravatar”, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0’ for key ‘PRIMARY’” at /opt/bitnami/apps/mautic/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 66 {“exception”:"[object] (Doctrine\DBAL\Exception\UniqueConstraintViolationException(code: 0): An exception occurred while executing ‘INSERT INTO ma\_leads (is\_published, date\_added, created\_by, created\_by\_user, date\_modified, modified\_by, modified\_by\_user, checked\_out, checked\_out\_by, checked\_out\_by\_user, points, last\_active, internal, social\_cache, date\_identified, preferred\_profile\_image, title, firstname, lastname, company, position, email, phone, mobile, address1, address2, city, state, zipcode, timezone, country, owner\_id, stage\_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)’ with params [1, “2020-04-29 17:55:11”, null, null, null, null, null, null, null, null, 0, null, “a:0:{}”, “a:0:{}”, null, “gravatar”, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0’ for key ‘PRIMARY’ at /opt/bitnami/apps/mautic/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:66, Doctrine\DBAL\Driver\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0’ for key ‘PRIMARY’ at /opt/bitnami/apps/mautic/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:107, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0’ for key ‘PRIMARY’ at /opt/bitnami/apps/mautic/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:105)"}

Steps I have tried to fix the problem: Create index, this error An error occurred while updating the database

regards,

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [April 29, 2020, 7:47pm UTC](https://forum.mautic.org/t/mautic-platform-with-errors-after-version-update/14110/2 "2020-04-29T19:47:19Z")

</div>

Try also the usual stuff: clear cache, make sure file ownership is okay.  
Also:

> **[How to Successfully Update your Own Mautic Self-Hosted](https://mauteam.org/mautic/mautic-admins/mautic-update-how-to-dont-click-that-button/)**
>
> Flawless Mautic upgrades every time, a simple step by step guide… Check the health of your Mautic installation, you might have an incomplete Mautic update!
