Cron Job Failure After Upgrade 12.1.1

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
amirdamadi
Posts: 3
Joined: Mon Apr 06, 2020 7:32 am

Cron Job Failure After Upgrade 12.1.1

Post 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

shaunw
Posts: 7670
Joined: Tue Sep 19, 2006 2:22 pm

Re: Cron Job Failure After Upgrade 12.1.1

Post 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?

amirdamadi
Posts: 3
Joined: Mon Apr 06, 2020 7:32 am

Re: Cron Job Failure After Upgrade 12.1.1

Post 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.

shaunw
Posts: 7670
Joined: Tue Sep 19, 2006 2:22 pm

Re: Cron Job Failure After Upgrade 12.1.1

Post 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?

amirdamadi
Posts: 3
Joined: Mon Apr 06, 2020 7:32 am

Re: Cron Job Failure After Upgrade 12.1.1

Post 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.

Post Reply