# Cron not working with mautic

**URL:** <https://forum.mautic.org/t/cron-not-working-with-mautic/9733>\
**Category:** Product Support\
**Created:** [October 18, 2017, 8:34pm UTC](https://forum.mautic.org/t/cron-not-working-with-mautic/9733 "2017-10-18T20:34:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajfrank](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@ajfrank](https://forum.mautic.org/u/ajfrank)\
**Post date:** [October 18, 2017, 8:34pm UTC](https://forum.mautic.org/t/cron-not-working-with-mautic/9733/1 "2017-10-18T20:34:27Z")

</div>

Hello,  
  
I keep getting this error:Content-type: text/html  
  
  
  
  
  
  
**Parse error** : syntax error, unexpected ‘$result’ (T\_VARIABLE) in **/home4/kashrock/public\_html/socialkashmedia/mautic/plugins/MauticCitrixBundle/Helper/CitrixHelper.php** on line **137**  
  
  
  
  
here’s the setting: [https://drive.google.com/file/d/0B\_XW\_bDouC\_cbWRRc214SjhqODg/view?usp=sharing](https://drive.google.com/file/d/0B_XW_bDouC_cbWRRc214SjhqODg/view?usp=sharing)  
  
  
  
Please help let me know how to fix the issue.  
  
  
  
Thanks!

---

<div class="post-metadata">

**Author:** ![ajfrank](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@ajfrank](https://forum.mautic.org/u/ajfrank)\
**Post date:** [October 18, 2017, 8:34pm UTC](https://forum.mautic.org/t/cron-not-working-with-mautic/9733/2 "2017-10-18T20:34:27Z")

</div>

Hello,  
I keep getting this error:Content-type: text/html

  
**Parse error** : syntax error, unexpected '$result' (T\_VARIABLE) in **/home4/kashrock/public\_html/socialkashmedia/mautic/plugins/MauticCitrixBundle/Helper/CitrixHelper.php** on line **137**  

here’s the setting: [https://drive.google.com/file/d/0B\_XW\_bDouC\_cbWRRc214SjhqODg/view?usp=sharing](https://drive.google.com/file/d/0B_XW_bDouC_cbWRRc214SjhqODg/view?usp=sharing)

Please help let me know how to fix the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![argentumag30](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@argentumag30](https://forum.mautic.org/u/argentumag30)\
**Post date:** [November 24, 2017, 8:42pm UTC](https://forum.mautic.org/t/cron-not-working-with-mautic/9733/3 "2017-11-24T20:42:20Z")

</div>

Hi, i found this solution to set as default php version 7 o whatever for CLi execution.  
I Hope help!  
see in the thread: [https://www.mautic.org/community/index.php//6302-cron-error-on-new-install/0](https://www.mautic.org/community/index.php//6302-cron-error-on-new-install/0)

---

<div class="post-metadata">

**Author:** ![bizcrony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bizcrony/32/409_2.png) [@bizcrony](https://forum.mautic.org/u/bizcrony)\
**Post date:** [November 27, 2017, 11:45am UTC](https://forum.mautic.org/t/cron-not-working-with-mautic/9733/4 "2017-11-27T11:45:25Z")

</div>

@ajfrank

There may be two possibilities

1. Check “How should email be handled?” in the Email Configuration, if you set it to queue, you have to set the cron for sending emails `php app/console mautic:messages:send`
2. Your Campaign Trigger Crons are not set yet. you can find all cronjobs for mautic in the following link
