Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Cron issues since upgrade to v1.1

Hi guys,

Since upgrade to v1.1 everything seems ok, apart from cron jobs when no one is logged in are not running. Not showing in the logs either.
I have checked they are scheduled, and everything seems to be as it should, and all seems well.

In checking the php error logs I am seeing the below error everytime the cron job tries to run overnight. 
Any assitance welcome.

[10-Jan-2017 04:30:04 CST6CDT] PHP Fatal error:  Only variables can be passed by reference in /home/gracecor/public_html/include/class.plugin.php on line 555
[10-Jan-2017 05:00:02 CST6CDT] PHP Fatal error:  Only variables can be passed by reference in /home/gracecor/public_html/include/class.plugin.php on line 555
[10-Jan-2017 05:30:01 CST6CDT] PHP Fatal error:  Only variables can be passed by reference in /home/gracecor/public_html/include/class.plugin.php on line 555
[10-Jan-2017 06:00:03 CST6CDT] PHP Fatal error:  Only variables can be passed by reference in /home/gracecor/public_html/include/class.plugin.php on line 555


~~~~~~~~~~~~~~~~~~~~~~~~~
osTicket Versionv1.10 (901e5ea) —  Up to date
Web Server SoftwareApache/2.2.24 (Unix) mod_hive/5.5 mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 mod_fastcgi/2.4.6 mod_fcgid/2.3.6
MySQL Version5.6.31
PHP Version5.6.29

Comments

  • Thanks,

    I have the following PHP versions available to me, on my box. I will have a play.

    PHP 4.4.9
    PHP 5.0.5
    PHP 5.1.6
    PHP 5.2.17
    PHP 5.2.17 with Suhosin patch
    PHP 5.3.29 - System Default
    PHP 5.4.45
    PHP 5.5.38
    PHP 5.6.29
    PHP 7.0.14
    PHP 7.1.0
  • Hi,

    Problem fixed by a Dev at siteground. Solution below:

    I have only changed the binary which was set for the cron job to run with. I have changed it from:

    Code:
    php -q /home/gracecor/public_html/api/cron.php


    To the PHP 5.6 CLI binary:

    Code:
    /usr/local/php56/bin/php-cli -q /home/gracecor/public_html/api/cron.php

Sign In or Register to comment.