Mautic Community Forums

Cron jobs on Shared Hosting

Hi everyone,



Trying to setup cron jobs



Ex:

php /home/u277315588/public_html/mkt/app/console mautic:leadlists:update --env=prod



on my shared hosting (hostinger PHP 5.3.29), I’m having the following error:



Warning: array_shift() expects parameter 1 to be array, null given in /home/u277315588/public_html/mkt/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 61





Warning: Invalid argument supplied for foreach() in /home/u277315588/public_html/mkt/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 287




I’d try pointing to PHP CLI instead of PHP, but no file is found.



Any help would be really appreciated

Hi everyone,

Trying to setup cron jobs

Ex:
php /home/u277315588/public_html/mkt/app/console mautic:leadlists:update --env=prod

on my shared hosting (hostinger PHP 5.3.29), I’m having the following error:

Warning: array_shift() expects parameter 1 to be array, null given in /home/u277315588/public_html/mkt/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 61



Warning: Invalid argument supplied for foreach() in /home/u277315588/public_html/mkt/vendor/symfony/console/Symfony/Component/Console/Input/ArgvInput.php on line 287

I’d try pointing to PHP CLI instead of PHP, but no file is found.

Any help would be really appreciated

See Mautic requirements:

https://www.mautic.org/download/requirements/

Also, take a look at this:

http://php.net/supported-versions.php