# Cannot trigger campaigns - function name must be a string

**URL:** <https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129>\
**Category:** Product Support\
**Created:** [August 3, 2015, 3:27pm UTC](https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129 "2015-08-03T15:27:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weitzmam](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@Weitzmam](https://forum.mautic.org/u/Weitzmam)\
**Post date:** [August 3, 2015, 3:27pm UTC](https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129/1 "2015-08-03T15:27:12Z")

</div>

Hi there, I have Matuic setup and upgraded to 1.1.3. I am able to send out a mass email to a list but, campaings will not trigger. The leads are added to the campaigns but no emails go out.  
  
  
  
When I run the cronjobs manually I am successful with all but one which I believe is the problem:  
  
  
  
php mautic/app/console mautic:campaigns:trigger --env=prod  
  
  
  
Gives me the following response:  
  
  
  
Triggering first level events  
  
2121 total events(s) to be processed in batches of 100  
  
0/2121 [\>---------------------------] 0%  
  
Fatal error: Function name must be a string in /home/worlddev/public\_html/mautic/app/bundles/EmailBundle/Model/EmailModel.php on line 812  
  
  
  
When I look at line 812 it doesn’t seem to make sense to put either of the function names in quotes so they are strings. Whats the fix?

---

<div class="post-metadata">

**Author:** ![Weitzmam](https://avatars.discourse-cdn.com/v4/letter/w/f14d63/32.png) [@Weitzmam](https://forum.mautic.org/u/Weitzmam)\
**Post date:** [August 3, 2015, 3:27pm UTC](https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129/2 "2015-08-03T15:27:12Z")

</div>

Hi there, I have Matuic setup and upgraded to 1.1.3. I am able to send out a mass email to a list but, campaings will not trigger. The leads are added to the campaigns but no emails go out.

When I run the cronjobs manually I am successful with all but one which I believe is the problem:

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

Gives me the following response:

Triggering first level events  
2121 total events(s) to be processed in batches of 100  
0/2121 [\>---------------------------] 0%  
Fatal error: Function name must be a string in /home/worlddev/public\_html/mautic/app/bundles/EmailBundle/Model/EmailModel.php on line 812

When I look at line 812 it doesn’t seem to make sense to put either of the function names in quotes so they are strings. Whats the fix?

---

<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:** [August 6, 2015, 12:42pm UTC](https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129/3 "2015-08-06T12:42:31Z")

</div>

Hi!

Seems there was a typo there. Checkout [https://github.com/mautic/mautic/pull/767](https://github.com/mautic/mautic/pull/767).

Thanks!  
Alan

---

<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:58pm UTC](https://forum.mautic.org/t/cannot-trigger-campaigns-function-name-must-be-a-string/2129/4 "2020-02-02T22:58:53Z")

</div>

Closed on February 2, 2020, 10:58pm UTC


