Emails not being sent

Hi,



My emails are not being sent.



What does this error message suggest?



Triggering events for campaign 2

Triggering first level events

0 total events(s) to be processed in batches of 100

0 event(s) executed



Triggering scheduled events

1 total events(s) to be processed in batches of 100

0/1 [>---------------------------] 0%PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /home/bri123/email/app/bundles/EmailBundle/Entity/Email.php on line 299


Hi,

My emails are not being sent.

What does this error message suggest?

Triggering events for campaign 2
Triggering first level events
0 total events(s) to be processed in batches of 100
0 event(s) executed

Triggering scheduled events
1 total events(s) to be processed in batches of 100
0/1 [>---------------------------] 0%PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’ in /home/bri123/email/app/bundles/EmailBundle/Entity/Email.php on line 299

I had the same thing happening to me. I’m on a server managed by plesk, which allows multiple PHP versions for different websites. My mautic site is on 5.6.24, but the server default is 5.4, which is what was running the cron jobs. I changed the cron jobs to use the 5.6 php CLI and they started working.