Mautic Community Forums

Impossible to add Cron Job

Hi everybody,



I’m new user of Mautic and i meet issue when i want add Cons Job via putty.

I use Web hosting 1&1 (not server)

PHP 7.0 web version

Putty and php 4.49



So, when i run php path/to/my/mautic/app/console mautic:segments:update i have this error message



Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /homepages/path/to/my/mautic/app/console on line 22




I think the raison are the version php commande line is older than mautic requirement.



How can fix this issue?



Thank you in advance for your help.



Sincerly,



Christelle

Hi everybody,

I’m new user of Mautic and i meet issue when i want add Cons Job via putty.
I use Web hosting 1&1 (not server)
PHP 7.0 web version
Putty and php 4.49

So, when i run php path/to/my/mautic/app/console mautic:segments:update i have this error message

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or ‘(’ in /homepages/path/to/my/mautic/app/console on line 22

I think the raison are the version php commande line is older than mautic requirement.

How can fix this issue?

Thank you in advance for your help.

Sincerly,

Christelle

Hi all,

I have find solution about my problem and share for the users meet same issue:

On putty i remplace php path/to/my/mautic/app/console mautic:segments:update

by

php5.5 path/to/my/mautic/app/console mautic:segments:update
and all are good.

Sincerly,

Christelle