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
Cron Job Failure After Upgrade 12.1.1
Re: Cron Job Failure After Upgrade 12.1.1
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?
-
- Posts: 3
- Joined: Mon Apr 06, 2020 7:32 am
Re: Cron Job Failure After Upgrade 12.1.1
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.
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
That error message should only appear if you are using PHP v5.x or earlier, which isn't supported.PHP Fatal error: Generators cannot return values using "return"
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?
-
- Posts: 3
- Joined: Mon Apr 06, 2020 7:32 am
Re: Cron Job Failure After Upgrade 12.1.1
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.