Page 1 of 1

Cron Job Failure After Upgrade 12.1.1

Posted: Mon Apr 06, 2020 7:35 am
by amirdamadi
Hello,

My timetrex community edition just got auto upgraded to 12.1.1 but my cron job fails with this:

PHP Fatal error: Generators cannot return values using "return" in /var/www/vhosts/clock.cirrushosting.com/httpdocs/classes/modules/core/TTDate.class.php on line 2625

Can someone help me fix this issue?

Ali

Re: Cron Job Failure After Upgrade 12.1.1

Posted: Mon Apr 06, 2020 8:01 am
by shaunw
Can you please provide more specific information? Which cron job specifically fails? Is there any other information along with that error message? What version of PHP are you using?

Re: Cron Job Failure After Upgrade 12.1.1

Posted: Mon Apr 06, 2020 12:05 pm
by amirdamadi
Hello,

this one: /maint/cron.php. I am using PHP 7.0 and even tried using 7.2 to no avail. No other error messages are seen.

Ali.

Re: Cron Job Failure After Upgrade 12.1.1

Posted: Mon Apr 06, 2020 3:52 pm
by shaunw
PHP Fatal error: Generators cannot return values using "return"
That error message should only appear if you are using PHP v5.x or earlier, which isn't supported.

Since you said you are using PHP v7.0 or v7.2, its possible you may still have an older version of PHP installed that is being uses just when run from the command line?

How exactly are you running the cron command and seeing this error?

Re: Cron Job Failure After Upgrade 12.1.1

Posted: Mon Apr 06, 2020 4:07 pm
by amirdamadi
thank you, even though i had the domain itself running under PHP 7 but me cron job was running on 5.6. Its all good now.