# Cron error, Mautic not sending

**URL:** <https://forum.mautic.org/t/cron-error-mautic-not-sending/6104>\
**Category:** Product Support\
**Created:** [October 6, 2016, 2:41am UTC](https://forum.mautic.org/t/cron-error-mautic-not-sending/6104 "2016-10-06T02:41:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unify](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/unify/32/106_2.png) [@unify](https://forum.mautic.org/u/unify)\
**Post date:** [October 6, 2016, 2:41am UTC](https://forum.mautic.org/t/cron-error-mautic-not-sending/6104/1 "2016-10-06T02:41:08Z")

</div>

Hi,  
  
I running a self-hosted intsall of v2.1.1.  
  
When “mautic:campaigns:trigger” cron has something to run, I get the following error. . .  
  
  
  
================  
  
  
  
0/1 [\>---------------------------] 0%PHP Parse error: syntax error, unexpected ‘class’ (T\_CLASS), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or ‘{’ or ‘$’ in /home/autore15/email/app/bundles/EmailBundle/Entity/Email.php on line 299  
  
  
  
  
  
[SymfonyComponentDebugExceptionFatalErrorException]  
  
Parse Error: syntax error, unexpected ‘class’ (T\_CLASS), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or ‘{’ or ‘$’  
  
  
  
  
  
mautic:campaigns:trigger [-i|–campaign-id [CAMPAIGN-ID]] [-l|–batch-limit [BATCH-LIMIT]] [-m|–max-events [MAX-EVENTS]] [-f|–force] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [-n|–no-interaction] [-s|–shell] [-e|–env ENV]   
  
  
  
================  
  
  
  
When there are no new subscribers, that cron doesn’t spit an error message.  
  
  
  
Both Mautic, and my server are running PHP Version 5.6.25 (I read a post where PHP version differences caused problems)  
  
  
  
The Mautic error log, also gives me the following.  
  
  
  
mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file PathToMautic/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []  
  
  
  
I don’t know what to do about either of these errors, or if they’re connected. Any ideas?  
  
  
  
Keith  
  
  
  
Much appreciated!

---

<div class="post-metadata">

**Author:** ![unify](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/unify/32/106_2.png) [@unify](https://forum.mautic.org/u/unify)\
**Post date:** [October 6, 2016, 2:41am UTC](https://forum.mautic.org/t/cron-error-mautic-not-sending/6104/2 "2016-10-06T02:41:08Z")

</div>

Hi,  
I running a self-hosted intsall of v2.1.1.  
When “mautic:campaigns:trigger” cron has something to run, I get the following error. . .

================

0/1 [\>---------------------------] 0%PHP Parse error: syntax error, unexpected ‘class’ (T\_CLASS), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or ‘{’ or ‘$’ in /home/autore15/email/app/bundles/EmailBundle/Entity/Email.php on line 299

[SymfonyComponentDebugExceptionFatalErrorException]  
Parse Error: syntax error, unexpected ‘class’ (T\_CLASS), expecting identifier (T\_STRING) or variable (T\_VARIABLE) or ‘{’ or ‘$’

mautic:campaigns:trigger [-i|–campaign-id [CAMPAIGN-ID]] [–scheduled-only] [–negative-only] [-l|–batch-limit [BATCH-LIMIT]] [-m|–max-events [MAX-EVENTS]] [-f|–force] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–]

================

When there are no new subscribers, that cron doesn’t spit an error message.

Both Mautic, and my server are running PHP Version 5.6.25 (I read a post where PHP version differences caused problems)

The Mautic error log, also gives me the following.

mautic.ERROR: Deprecation: The alias option of the form.type\_extension tag of service “fos\_rest.form.extension.csrf\_disable” is deprecated since version 2.8 and will be removed in 3.0. Use the extended\_type option instead. - in file PathToMautic/vendor/symfony/framework-bundle/DependencyInjection/Compiler/FormPass.php - at line 67 [] []

I don’t know what to do about either of these errors, or if they’re connected. Any ideas?

Keith

Much appreciated!

---

<div class="post-metadata">

**Author:** ![Elenchus](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@Elenchus](https://forum.mautic.org/u/Elenchus)\
**Post date:** [October 25, 2016, 10:08pm UTC](https://forum.mautic.org/t/cron-error-mautic-not-sending/6104/3 "2016-10-25T22:08:57Z")

</div>

The second one isn’t an error - it’s just a notice, and you don’t have to worry about it.

The first one is looking to me like a PHP problem - double check that your server is on 5.6 (check the Mautic folder as well as your general settings; I had to change both).

If it’s not that, then I guess it’s possible part of the update failed. Maybe have a look here: [https://www.mautic.org/community/index.php/conversation/post/16500](https://www.mautic.org/community/index.php/conversation/post/16500)

---

<div class="post-metadata">

**Author:** ![unify](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/unify/32/106_2.png) [@unify](https://forum.mautic.org/u/unify)\
**Post date:** [November 4, 2016, 5:40pm UTC](https://forum.mautic.org/t/cron-error-mautic-not-sending/6104/4 "2016-11-04T17:40:02Z")

</div>

@Elenchus, thanks for the response! Looks like everything is now on 5.6.27. This was a fresh install, so it wasn’t a migration error. Any other ideas?
