# Parse error: syntax error, unexpected '-\>' (T\_OBJECT\_OPERATOR) - testing Cron

**URL:** <https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928>\
**Category:** Product Support\
**Created:** [September 2, 2020, 11:12pm UTC](https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928 "2020-09-02T23:12:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffwalters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jeffwalters/32/3101_2.png) [@jeffwalters](https://forum.mautic.org/u/jeffwalters)\
**Post date:** [September 2, 2020, 11:12pm UTC](https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928/1 "2020-09-02T23:12:45Z")

</div>

My Mautic version is: 3.1.0  
My PHP version is: 7.2  
Hosting: Webfaction

My problem is:  
I set up Mautic a couple of days ago - and it is working fine. However, a test campaign I set up wasn’t sending any of the emails. I tried running the cron tasks using the command line, and have now also started sending the cron output to a log file.

These errors are showing in the log:

Parse error: syntax error, unexpected ‘-\>’ (T\_OBJECT\_OPERATOR) in /home/jeffw/webapps/mautic/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 103

Parse error: syntax error, unexpected ‘-\>’ (T\_OBJECT\_OPERATOR) in /home/jeffw/webapps/mautic/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 103

… several more lines with the same error

Steps I have tried to fix the problem:

Tried running this in command line, and got the same error:

/usr/local/bin/php -cli /home/USRNM/webapps/mautic/bin/console mautic:segments:update

Parse error: syntax error, unexpected ‘-\>’ (T\_OBJECT\_OPERATOR) in /home/USRNM/webapps/mautic/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 103

/usr/local/bin/php -cli /home/USRNM/webapps/mautic/bin/console mautic:campaigns:trigger

Parse error: syntax error, unexpected ‘-\>’ (T\_OBJECT\_OPERATOR) in /home/USRNM/webapps/mautic/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 103

If I look in that collection file, it’s the function that gets the median of a given key.

How do I fix this?

Thanks

---

<div class="post-metadata">

**Author:** ![jeffwalters](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jeffwalters/32/3101_2.png) [@jeffwalters](https://forum.mautic.org/u/jeffwalters)\
**Post date:** [September 5, 2020, 7:13am UTC](https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928/2 "2020-09-05T07:13:24Z")

</div>

Do I just uninstall, and look for another platform?

Mautic is useless for me right now with the cron jobs not working.

---

<div class="post-metadata">

**Author:** ![emkal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/emkal/32/3982_2.png) [@emkal](https://forum.mautic.org/u/emkal)\
**Post date:** [December 3, 2020, 10:21pm UTC](https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928/3 "2020-12-03T22:21:36Z")

</div>

I have exactly the same problem

---

<div class="post-metadata">

**Author:** ![emkal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/emkal/32/3982_2.png) [@emkal](https://forum.mautic.org/u/emkal)\
**Post date:** [December 4, 2020, 4:10pm UTC](https://forum.mautic.org/t/parse-error-syntax-error-unexpected-t-object-operator-testing-cron/15928/4 "2020-12-04T16:10:28Z")

</div>

I fixed the problem running the same commang starting with ea-php73 , instead of just php
