# Campaign Trigger causes Error

**URL:** <https://forum.mautic.org/t/campaign-trigger-causes-error/2760>\
**Category:** Product Support\
**Created:** [November 12, 2015, 9:14am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760 "2015-11-12T09:14:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [November 12, 2015, 9:14am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/1 "2015-11-12T09:14:17Z")

</div>

Hello,  
  
  
  
I updated to 1.2.2 an hour ago. After the update, I realized that no more emails were sent out. So, I triggered the campaigns manually:

Code:

php mautic/app/console mautic:campaigns:trigger --env=prod

  
When I do this, I receive the following messages:

Code:

PHP Warning: array\_merge(): Argument #2 is not an array in ../mautic/app/bundles/CoreBundle/Factory/MauticFactory.php on line 659 PHP Catchable fatal error: Argument 1 passed to MauticCoreBundleEntityIpAddress::setDoNotTrackList() must be of the type array, null given, called in ../mautic/app/bundles/CoreBundle/Factory/MauticFactory.php on line 660 and defined in ../mautic/app/bundles/CoreBundle/Entity/IpAddress.php on line 151

  
Any ideas what is/went wrong?  
  
Thank you,  
Peter

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [November 12, 2015, 9:14am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/2 "2015-11-12T09:14:17Z")

</div>

Hello,

I updated to 1.2.2 an hour ago. After the update, I realized that no more emails were sent out. So, I triggered the campaigns manually:

```auto
php mautic/app/console mautic:campaigns:trigger --env=prod
```

When I do this, I receive the following messages:

`PHP Warning: array_merge(): Argument #2 is not an array in ../mautic/app/bundles/CoreBundle/Factory/MauticFactory.php on line 659
PHP Catchable fatal error: Argument 1 passed to MauticCoreBundleEntityIpAddress::setDoNotTrackList() must be of the type array, null given, called in ../mautic/app/bundles/CoreBundle/Factory/MauticFactory.php on line 660 and defined in ../mautic/app/bundles/CoreBundle/Entity/IpAddress.php on line 151`

Any ideas what is/went wrong?

Thank you,  
Peter

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [November 12, 2015, 9:23am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/3 "2015-11-12T09:23:51Z")

</div>

Try to clear the Mautic cache. (remove the app/cache folder)

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [November 12, 2015, 9:29am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/4 "2015-11-12T09:29:28Z")

</div>

I removed the folder and started the trigger again via console: same result.

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [November 13, 2015, 5:43am UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/5 "2015-11-13T05:43:04Z")

</div>

Try this fix. [https://github.com/mautic/mautic/pull/1135](https://github.com/mautic/mautic/pull/1135)

---

<div class="post-metadata">

**Author:** ![danbeall](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@danbeall](https://forum.mautic.org/u/danbeall)\
**Post date:** [January 6, 2016, 7:52pm UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/6 "2016-01-06T19:52:13Z")

</div>

> [@4730:@escopecz](#):
>
> Try to clear the Mautic cache. (remove the app/cache folder)

For the record, I was having the same problem and cache removal worked for me.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/campaign-trigger-causes-error/2760/7 "2020-02-02T22:57:17Z")

</div>


