Announcement

Collapse
No announcement yet.

cron job doesn't start

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cron job doesn't start

    Hi,

    I tried to launch the cron.php file:
    * * * * * php -f /path-to-cron-file/cron.php > /dev/null 2>&1

    I checked a few versions of PHP:
    5.6.22, 5.5.36, 5.4.45.

    There are errors - arrays are defined by [] instead of array().

    I tried to replace definitions in files below but I stucked at the last one.

    [root@....]# php cron.php
    PHP Parse error: syntax error, unexpected '[' in /var/www/..../application/Espo/Core/Utils/Config.php on line 56

    PHP Parse error: syntax error, unexpected '[' in /var/www/....../data/config.php on line 2
    PHP Parse error: syntax error, unexpected '[' in /var/www/...../application/Espo/Repositories/User.php on line 74
    PHP Parse error: syntax error, unexpected '[' in /var/www/v...../application/Espo/Core/ORM/Repositories/RDB.php on line 298
    PHP Parse error: syntax error, unexpected '[' in /var/www/...../application/Espo/ORM/Repositories/RDB.php on line 219

    Do you have any solution or I am doing something wrong.

    Peter

  • #2
    Hi,

    Seems your php for CLI differs from php for webserver.

    Run php -v in command line interface.

    Comment


    • #3
      Hi,

      you were right. Thanks a lot.

      P.

      Comment

      Working...
      X