# Can't create campaigns after upgrade to 2.8.1

**URL:** https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549
**Category:** Product Support
**Created:** [May 20, 2017, 1:39pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549 "2017-05-20T13:39:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bloom360](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bloom360](https://forum.mautic.org/u/bloom360)
#### Post date: [May 20, 2017, 1:39pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549/1 "2017-05-20T13:39:20Z")

</div>

Hi,  
  
  
  
I upgraded from 2.8.0 to 2.8.1 and it stalled at clearing cache. After a long while, I shut down my browser.  
  
  
  
Mautic started giving an error so I manually deleted the cache (deleted everything inside /cache)  
  
  
  
I even restarted Litespeed to clear opcache.  
  
  
  
It appeared to start working OK except when I create a campaign it gives a (graceful) error 500. The campaign is in fact created and appears on the list but if i click on it, it gives again an error 500. Strangely, I can edit it, just not see the details such as campaign members etc.  
  
  
  
I have tried with a number of very basic campaigns and it always happens.  
  
  
  
I have deleted the cache, downgraded from php7 to 5.6 and cleared opcache, all several times.  
  
  
  
Can I downgrade to 2.8.0?

---

<div class="post-metadata">

### Author: ![bloom360](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bloom360](https://forum.mautic.org/u/bloom360)
#### Post date: [May 20, 2017, 1:39pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549/2 "2017-05-20T13:39:20Z")

</div>

Hi,

I upgraded from 2.8.0 to 2.8.1 and it stalled at clearing cache. After a long while, I shut down my browser.

Mautic started giving an error so I manually deleted the cache (deleted everything inside /cache)

I even restarted Litespeed to clear opcache.

It appeared to start working OK except when I create a campaign it gives a (graceful) error 500. The campaign is in fact created and appears on the list but if i click on it, it gives again an error 500. Strangely, I can edit it, just not see the details such as campaign members etc.

I have tried with a number of very basic campaigns and it always happens.

I have deleted the cache, downgraded from php7 to 5.6 and cleared opcache, all several times.

Can I downgrade to 2.8.0?

---

<div class="post-metadata">

### Author: ![bloom360](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bloom360](https://forum.mautic.org/u/bloom360)
#### Post date: [May 20, 2017, 1:46pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549/3 "2017-05-20T13:46:33Z")

</div>

It is logging this error:

[quote][2017-05-21 00:41:51] mautic.CRITICAL: Uncaught PHP Exception DoctrineORMORMInvalidArgumentException: “A new entity was found through the relationship ‘MauticPluginMauticFocusBundleEntityStat#lead’ that was not configured to cascade persist operations for entity: MauticLeadBundleEntityLead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={“persist”}).” at /home/hello/public\_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {“exception”:"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship ‘MauticPlugin\MauticFocusBundle\Entity\Stat#lead’ that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(…,cascade={“persist”}). at /home/hello/public\_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []  
[2017-05-21 00:44:17] mautic.CRITICAL: Uncaught PHP Exception DoctrineDBALExceptionTableNotFoundException: “An exception occurred while executing ‘SELECT o.event\_id, count(o.lead\_id) as lead\_count, o.non\_action\_path\_taken FROM mktgcampaign\_lead\_event\_log o INNER JOIN mktgcampaign\_leads l ON l.campaign\_id = 8 and l.manually\_removed = 0 and o.lead\_id = l.lead\_id and l.rotation = o.rotation WHERE (o.campaign\_id = 8) AND (NOT EXISTS (SELECT null FROM mktgcampaign\_lead\_event\_failed\_log fe WHERE fe.log\_id = o.id)) GROUP BY o.event\_id, o.non\_action\_path\_taken’: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘hello\_mautic.mktgcampaign\_lead\_event\_failed\_log’ doesn’t exist” at /home/hello/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 53 {“exception”:"[object] (Doctrine\DBAL\Exception\TableNotFoundException(code: 0): An exception occurred while executing ‘SELECT o.event\_id, count(o.lead\_id) as lead\_count, o.non\_action\_path\_taken FROM mktgcampaign\_lead\_event\_log o INNER JOIN mktgcampaign\_leads l ON l.campaign\_id = 8 and l.manually\_removed = 0 and o.lead\_id = l.lead\_id and l.rotation = o.rotation WHERE (o.campaign\_id = 8) AND (NOT EXISTS (SELECT null FROM mktgcampaign\_lead\_event\_failed\_log fe WHERE fe.log\_id = o.id)) GROUP BY o.event\_id, o.non\_action\_path\_taken’:nnSQLSTATE[42S02]: Base table or view not found: 1146 Table ‘hello\_mautic.mktgcampaign\_lead\_event\_failed\_log’ doesn’t exist at /home/hello/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:53, Doctrine\DBAL\Driver\PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘hello\_mautic.mktgcampaign\_lead\_event\_failed\_log’ doesn’t exist at /home/hello/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:93, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘hello\_mautic.mktgcampaign\_lead\_event\_failed\_log’ doesn’t exist at /home/hello/public\_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91)"} []  
[/quote]

---

<div class="post-metadata">

### Author: ![bloom360](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bloom360](https://forum.mautic.org/u/bloom360)
#### Post date: [May 20, 2017, 3:26pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549/4 "2017-05-20T15:26:20Z")

</div>

I see what happened is the upgrade process was halted because it hit the maximum PHP execution limit. I would suppose that left a very unhealthy install, lucky it even works.

Regardless, is there a way to force a reinstall or downgrade?

Many thanks

---

<div class="post-metadata">

### Author: ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)
#### Post date: [May 20, 2017, 9:26pm UTC](https://forum.mautic.org/t/cant-create-campaigns-after-upgrade-to-2-8-1/8549/5 "2017-05-20T21:26:44Z")

</div>

[quote=23217:@bloom360]I see what happened is the upgrade process was halted because it hit the maximum PHP execution limit. I would suppose that left a very unhealthy install, lucky it even works.

Regardless, is there a way to force a reinstall or downgrade?

Many thanks[/quote]

Personally, I’d restore from backup and start over.
