Class 'JobListFactory' not found ScheduleFactory.class.ph

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
bernmar
Posts: 9
Joined: Wed Dec 27, 2006 12:01 pm
Location: Barbados
Contact:

Class 'JobListFactory' not found ScheduleFactory.class.ph

Post by bernmar »

Hi, I'm getting an error produced by the maintenance cron job.

Code: Select all

PHP Fatal error:  Class 'JobListFactory' not found in /srv/www/htdocs/timetrex/classes/modules/schedule/ScheduleFactory.class.php on line 419
And I think this is causing a problem in our scheduling module, because our recurring schedules are not being created, meaning that for all the employees we can see their is a set recurring schedule (black text with no hyperlink in the schedule) but it does not create the schedules for the current day and then gives us a "Not scheduled" exception in the time sheet.

Thanks in advance,
Tom

my crontab line:

Code: Select all

* * * * * php /srv/www/htdocs/timetrex/classes/modules/core/../../../maint/cron.php >> /var/log/timetrex/cron.log 2>>/var/log/timetrex/cron.err
PHP Version => 5.1.2
TimeTrex_Standard_Edition_v1.4.1
OpenSuse 10.1
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Post by mikeb »

Edit /srv/www/htdocs/timetrex/classes/modules/schedule/ScheduleFactory.class.php and go to line 419 and wrap it so it looks like this:

Code: Select all

if ( isProfessionalEditionAvailable() == TRUE ) {
	$jlf = new JobListFactory();
}
Go to line 449 and do the same as well for JobItemListFactory()

This will be fixed in the next version. Thanks for the report.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
bernmar
Posts: 9
Joined: Wed Dec 27, 2006 12:01 pm
Location: Barbados
Contact:

Post by bernmar »

Hi Mike, Thanks that did the trick! the schedule is now being created!

Tom
Locked