Pay Period : NONE
Pay Period : NONE
We have employee schedules displaying text "Pay Period : NONE"
We are punching in for SEPT 2007
Below are our Pay Period Schdules.
1 KWI Monthly N/A 01-Sep-2007 8:00 AM 01-Oct-2007 7:59 AM 01-Oct-2007 7:59 AM
2 KWI Monthly CLOSED 01-Aug-2007 8:00 AM 01-Sep-2007 7:59 AM 01-Sep-2007 7:59 AM
What do we need to do so that the employee schedule picks up the current pay period?
The current pay period is not OPEN. Why didnt it trigger to be active?
We are punching in for SEPT 2007
Below are our Pay Period Schdules.
1 KWI Monthly N/A 01-Sep-2007 8:00 AM 01-Oct-2007 7:59 AM 01-Oct-2007 7:59 AM
2 KWI Monthly CLOSED 01-Aug-2007 8:00 AM 01-Sep-2007 7:59 AM 01-Sep-2007 7:59 AM
What do we need to do so that the employee schedule picks up the current pay period?
The current pay period is not OPEN. Why didnt it trigger to be active?
Looks like your maintenance tasks didn't run, or they are getting an error of some sort.
This has been discussed several times in the forum, if you search for: maintenance you should find other posts like this one:
http://forums.timetrex.com/viewtopic.ph ... aintenance
This has been discussed several times in the forum, if you search for: maintenance you should find other posts like this one:
http://forums.timetrex.com/viewtopic.ph ... aintenance
I have reviewed the post you mentioned; however the cron job on my hosting server does not run....
it was entered as below
su xxx -c "php /home/xxx/public_html/TimeTrex/classes/modules/core/../../../maint/cron.php"
where xxx is the admin "user name"
is there any command text missing?
if i manually run the cron.php file.. the other ClockSync job runs....
there are no other "last_run_date" records besides the ClockSync job
---------------------------
we later changed the Cron Job command text to
php /home/xxx/public_html/TimeTrex/classes/modules/core/../../../maint/cron.php
With this we are getting the following error...
<br />
<b>Parse error</b>: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/emdaadc/public_html/TimeTrex/classes/modules/core/Environment.class.php</b> on line <b>30</b><br />
site is running PHP Version 5.2.1
kindly advise
it was entered as below
su xxx -c "php /home/xxx/public_html/TimeTrex/classes/modules/core/../../../maint/cron.php"
where xxx is the admin "user name"
is there any command text missing?
if i manually run the cron.php file.. the other ClockSync job runs....
there are no other "last_run_date" records besides the ClockSync job
---------------------------
we later changed the Cron Job command text to
php /home/xxx/public_html/TimeTrex/classes/modules/core/../../../maint/cron.php
With this we are getting the following error...
<br />
<b>Parse error</b>: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/emdaadc/public_html/TimeTrex/classes/modules/core/Environment.class.php</b> on line <b>30</b><br />
site is running PHP Version 5.2.1
kindly advise
That tells me that the PHP version you are running is not PHP v5, but PHP v4.<br />
<b>Parse error</b>: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/home/emdaadc/public_html/TimeTrex/classes/modules/core/Environment.class.php</b> on line <b>30</b><br />
Try running:
php5
instead of just:
php
the "php5" at the start of the cron job seems to work
however, we're receiving below errors
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 253
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 255
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 256
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 257
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 258
X-Powered-By: PHP/5.2.1
Content-type: text/html
NOTE: Jobs are scheduled to run at specific times, therefore only some jobs are executed each time this file is run.
Jobs Executed: 1 of 11
Kindly advise.
however, we're receiving below errors
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 253
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 255
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 256
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 257
PHP Notice: Undefined index: debug in /home/xxx/public_html/TimeTrex/includes/global.inc.php on line 258
X-Powered-By: PHP/5.2.1
Content-type: text/html
NOTE: Jobs are scheduled to run at specific times, therefore only some jobs are executed each time this file is run.
Jobs Executed: 1 of 11
Kindly advise.
Last edited by vmp on Tue Sep 25, 2007 3:42 am, edited 1 time in total.
Dump of INI is as below.....
--------------------------------------------------------------------------------
;
;
; TimeTrex Configuration File
; *Windows Example*
;
;
;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<*BASE_URL*>
;DO NOT INCLUDE http://your.domain.com, just the directory AFTER your domain
base_url = /TimeTrex/interface
;
;log directory
;
log = /home/xxx/public_html/TimeTrex/var/timetrex/log
;
;Misc storage, for attachments/images
;
storage = /home/xxx/public_html/TimeTrex/var/timetrex/storage
;
;Full path and name to the PHP CLI Binary
;
php_cli = /usr/local/Zend3/etc/php.exe
;
; Database connection settings. These can be set from the installer.
;
[database]
type = mysqlt
;type = postgres8
host = localhost
database_name = xxx
user = xxx
password = xxx
;
; Cache settings
;
[cache]
enable = TRUE
dir = /home/xxx/public_html/TimeTrex/var/timetrex/cache
;Set to false if you're debugging
production = TRUE
enable = FALSE
enable_display = FALSE
buffer_output = TRUE
enable_log = TRUE
verbosity = 10
[other]
; Force all clients to use SSL.
force_ssl = FALSE
installer_enabled = FALSE
primary_company_id = 1
;WARNING: DO NOT CHANGE THIS AFTER YOU HAVE INSTALLED TIMETREX.
;If you do it will cause all your passwords to become invalid,
;and you may lose access to some encrypted data.
salt = fd70b55baf05aa847291f306da0356bb
;<? if (; //Cause parse error to hide from prying eyes, just in case. DO NOT REMOVE?>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
;
;
; TimeTrex Configuration File
; *Windows Example*
;
;
;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<*BASE_URL*>
;DO NOT INCLUDE http://your.domain.com, just the directory AFTER your domain
base_url = /TimeTrex/interface
;
;log directory
;
log = /home/xxx/public_html/TimeTrex/var/timetrex/log
;
;Misc storage, for attachments/images
;
storage = /home/xxx/public_html/TimeTrex/var/timetrex/storage
;
;Full path and name to the PHP CLI Binary
;
php_cli = /usr/local/Zend3/etc/php.exe
;
; Database connection settings. These can be set from the installer.
;
[database]
type = mysqlt
;type = postgres8
host = localhost
database_name = xxx
user = xxx
password = xxx
;
; Cache settings
;
[cache]
enable = TRUE
dir = /home/xxx/public_html/TimeTrex/var/timetrex/cache
;Set to false if you're debugging
production = TRUE
enable = FALSE
enable_display = FALSE
buffer_output = TRUE
enable_log = TRUE
verbosity = 10
[other]
; Force all clients to use SSL.
force_ssl = FALSE
installer_enabled = FALSE
primary_company_id = 1
;WARNING: DO NOT CHANGE THIS AFTER YOU HAVE INSTALLED TIMETREX.
;If you do it will cause all your passwords to become invalid,
;and you may lose access to some encrypted data.
salt = fd70b55baf05aa847291f306da0356bb
;<? if (; //Cause parse error to hide from prying eyes, just in case. DO NOT REMOVE?>
--------------------------------------------------------------------------------
Our pay period displays as "Pay Period" NONE" once again.
The CRON jobs error log displays below message since 18-Nov-2007
"
[23-Nov-2007 16:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
"
The pay period;s are as below
# Name --- Type --- Status --- Start --- End --- Transaction
1 PayPeriod-20-19 --- Monthly --- N/A --- 11/20/2007 0:00 --- 12/19/2007 23:59 --- 12/20/2007 12:00
2 PayPeriod-20-19 --- Monthly --- OPEN --- 10/20/2007 0:00 --- 11/19/2007 23:59 --- 11/21/2007 12:00
3 PayPeriod-20-19 --- Monthly --- OPEN --- 9/20/2007 0:00 --- 10/19/2007 23:59 --- 10/21/2007 12:00
4 PayPeriod-20-19 --- Monthly --- OPEN --- 8/20/2007 0:00 --- 9/19/2007 23:59 --- 9/23/2007 14:00
What can we do to fix the problem?
The CRON jobs error log displays below message since 18-Nov-2007
"
[23-Nov-2007 16:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
"
The pay period;s are as below
# Name --- Type --- Status --- Start --- End --- Transaction
1 PayPeriod-20-19 --- Monthly --- N/A --- 11/20/2007 0:00 --- 12/19/2007 23:59 --- 12/20/2007 12:00
2 PayPeriod-20-19 --- Monthly --- OPEN --- 10/20/2007 0:00 --- 11/19/2007 23:59 --- 11/21/2007 12:00
3 PayPeriod-20-19 --- Monthly --- OPEN --- 9/20/2007 0:00 --- 10/19/2007 23:59 --- 10/21/2007 12:00
4 PayPeriod-20-19 --- Monthly --- OPEN --- 8/20/2007 0:00 --- 9/19/2007 23:59 --- 9/23/2007 14:00
What can we do to fix the problem?
That shouldn't affect your pay periods in theory, but it looks like someone modified that file and caused a syntax error to occur. I would try restoring that file with one from the TimeTrex .ZIP file from the SAME version.[23-Nov-2007 16:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
To get your pay periods created, try manually running:
php maint/AddPayPeriod.php
Then check your pay periods to see if it created the next one for you. If it did, there is something wrong that is causing the script to not be executed.
Can you paste the results of the following SQL query here:
Code: Select all
select id,name,command,last_run_date from cron;
Below is the result of the SQL query
---------------------------------------------------------------
id name command last_run_date
1 AddPayPeriod AddPayPeriod.php 2007-11-23 18:01:00
2 AddUserDate AddUserDate.php 2007-11-23 18:16:00
3 calcExceptions calcExceptions.php 2007-11-23 18:31:00
4 AddRecurringPayStubAmendment AddRecurringPayStubAmendment.php 2007-11-23 18:46:00
5 AddRecurringHoliday AddRecurringHoliday.php 2007-11-23 18:56:00
6 UserCount UserCount.php 2007-11-23 19:16:00
7 AddRecurringScheduleShift AddRecurringScheduleShift.php 2007-11-24 01:51:00
8 CheckForUpdate CheckForUpdate.php 2007-11-23 14:07:00
9 AddAccrualPolicyTime AddAccrualPolicyTime.php 2007-11-23 19:31:00
10 UpdateCurrencyRates UpdateCurrencyRates.php 2007-11-23 19:46:00
11 TimeClockSync TimeClockSync.php 2007-11-24 01:59:00
-----------------------------------------------------------------------
Incidentaly we upgraded to 2.1.1 on 18-Nov-2007
Manually running the AddPeriod.php has resolved our issue.
Our current Pay Period displays as expected.
I shall replace the file as you suggested and see if new errors come up in the error log
---------------------------------------------------------------
id name command last_run_date
1 AddPayPeriod AddPayPeriod.php 2007-11-23 18:01:00
2 AddUserDate AddUserDate.php 2007-11-23 18:16:00
3 calcExceptions calcExceptions.php 2007-11-23 18:31:00
4 AddRecurringPayStubAmendment AddRecurringPayStubAmendment.php 2007-11-23 18:46:00
5 AddRecurringHoliday AddRecurringHoliday.php 2007-11-23 18:56:00
6 UserCount UserCount.php 2007-11-23 19:16:00
7 AddRecurringScheduleShift AddRecurringScheduleShift.php 2007-11-24 01:51:00
8 CheckForUpdate CheckForUpdate.php 2007-11-23 14:07:00
9 AddAccrualPolicyTime AddAccrualPolicyTime.php 2007-11-23 19:31:00
10 UpdateCurrencyRates UpdateCurrencyRates.php 2007-11-23 19:46:00
11 TimeClockSync TimeClockSync.php 2007-11-24 01:59:00
-----------------------------------------------------------------------
Incidentaly we upgraded to 2.1.1 on 18-Nov-2007
Manually running the AddPeriod.php has resolved our issue.
Our current Pay Period displays as expected.
I shall replace the file as you suggested and see if new errors come up in the error log
I have replaced the file with the original from the download; yet the error_log keeps piling up...
There's another error we see related to Environment.php
Kindly let us know if this throws some fresh light on the issue
------------------------------------
[25-Nov-2007 18:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 18:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 20:06:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[25-Nov-2007 20:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 20:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 21:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 21:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 22:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 22:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 23:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 23:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:00:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:15:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:30:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:45:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:55:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:15:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 01:30:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:45:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 02:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 02:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 03:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 03:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 04:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 04:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 05:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 05:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 06:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 06:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 07:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 07:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 08:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 08:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 09:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 09:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 10:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 10:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 11:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 11:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 12:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 12:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 13:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 13:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 14:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 14:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 15:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
------------------------------------------------------------------------
There's another error we see related to Environment.php
Kindly let us know if this throws some fresh light on the issue
------------------------------------
[25-Nov-2007 18:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 18:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 20:06:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[25-Nov-2007 20:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 20:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 21:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 21:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 22:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 22:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 23:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 23:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:00:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:15:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:30:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:45:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 00:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 00:55:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:15:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 01:30:01] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:45:02] PHP Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30
[26-Nov-2007 01:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 02:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 02:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 03:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 03:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 04:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 04:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 05:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 05:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 06:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 06:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 07:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 07:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 08:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 08:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 09:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 09:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 10:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 10:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 11:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 11:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 12:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 12:50:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 13:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 13:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 14:20:02] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 14:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[26-Nov-2007 15:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
------------------------------------------------------------------------
Well, I need to know what is on the line that is causing the syntax error(s).
By the looks of things, either you have modified all these files, or the version of PHP you are using is v4 and not v5.
We do syntax checks on every single file in every single one of our releases, and because of this we have never released a version of TimeTrex with such a syntax error.
By the looks of things, either you have modified all these files, or the version of PHP you are using is v4 and not v5.
We do syntax checks on every single file in every single one of our releases, and because of this we have never released a version of TimeTrex with such a syntax error.
Unfortunately there is nothing I can do to help you without getting the information I require.
I would be extremely worried myself, any sort of error like this is almost certainly causing negative side effects. Just because you aren't noticing anything doesn't mean they aren't happening.
Can you please show me what is on line 125, and preferably 5 lines above and below this line? Be sure to specify exactly which line is 125.[25-Nov-2007 18:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 18:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:20:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
[25-Nov-2007 19:50:01] PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/TimeTrex/maint/AddRecurringScheduleShift.php on line 125
I would be extremely worried myself, any sort of error like this is almost certainly causing negative side effects. Just because you aren't noticing anything doesn't mean they aren't happening.
Here's a part of the file AddRecurringScheduleShift.php
Line 124 has comment //Get Holiday Policy info
-------------------------------------------------------------------------- Debug::text('Current Epoch: '. TTDate::getDate('DATE+TIME', $current_epoch ), __FILE__, __LINE__, __METHOD__, 10);
$start_date = TTDate::getBeginDayEpoch( $current_epoch - $lookup_shift_offset );
$end_date = $current_epoch + $add_shift_offset;
Debug::text('Start Date: '. TTDate::getDate('DATE+TIME', $start_date ) .' End Date: '. TTDate::getDate('DATE+TIME', $end_date ) , __FILE__, __LINE__, __METHOD__, 10);
//Set the timezone before getting the recurring schedule shifts
//so we prevent timezone issues and DST issues from arising.
$recurring_schedule_days = $rsc_obj->getShiftsByStartDateAndEndDate( $start_date, $end_date );
//Debug::Arr($recurring_schedule_days, 'Recurring Schedule Shifts', __FILE__, __LINE__, __METHOD__, 10);
if ( $recurring_schedule_days !== FALSE ) {
foreach( $recurring_schedule_days as $date_stamp => $recurring_schedule_shifts ) {
Debug::text('Recurring Schedule Shift Date Stamp: '. TTDate::getDate('DATE+TIME', $date_stamp ) , __FILE__, __LINE__, __METHOD__, 10);
foreach($recurring_schedule_shifts as $recurring_schedule_shift ) {
$recurring_schedule_shift_start_time = TTDate::strtotime( $recurring_schedule_shift['start_time'] );
$recurring_schedule_shift_end_time = TTDate::strtotime( $recurring_schedule_shift['end_time'] );
Debug::text('(After User TimeZone)Recurring Schedule Shift Start Time: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_start_time ) .' End Time: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_end_time ), __FILE__, __LINE__, __METHOD__, 10);
//Make sure punch pairs fall within limits
if ( $recurring_schedule_shift_start_time < $current_epoch + $add_shift_offset ) {
Debug::text('Recurring Schedule Shift Start Time falls within Limits: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_start_time ), __FILE__, __LINE__, __METHOD__, 10);
$status_id = 10; //Working
//Is this a holiday?
$hlf = new HolidayListFactory();
$hlf->getByPolicyGroupUserIdAndDate( $user_id, TTDate::getBeginDayEpoch( $recurring_schedule_shift_start_time ) );
if ( $hlf->getRecordCount() > 0 ) {
$h_obj = $hlf->getCurrent();
Debug::text('Found Holiday! Name: '. $h_obj->getName(), __FILE__, __LINE__, __METHOD__, 10);
if ( $h_obj->isEligible( $user_id ) ) {
Debug::text('User is Eligible...', __FILE__, __LINE__, __METHOD__, 10);
//Get Holiday Policy info
$status_id = $h_obj->getHolidayPolicyObject()->getDefaultScheduleStatus();
$absence_policy_id = $h_obj->getHolidayPolicyObject()->getAbsencePolicyID();
Debug::text('Default Schedule Status: '. $status_id, __FILE__, __LINE__, __METHOD__, 10);
} else {
Debug::text('User is NOT Eligible...', __FILE__, __LINE__, __METHOD__, 10);
}
} else {
Debug::text('No Holidays on this day: ', __FILE__, __LINE__, __METHOD__, 10);
}
unset($hlf, $h_obj);
--------------------------------------------------------------------------
Here's a part of the file Environment.class.php that's reporting a PHP parse error @ liine 30 is
"static protected $template_dir = 'templates';"
----------------------------------------------------------------------------
class Environment {
static protected $template_dir = 'templates';
static protected $template_compile_dir = 'templates_c';
static function getBasePath() {
//global $config_vars;
//return $config_vars['path']['base_path'] . DIRECTORY_SEPARATOR;
return dirname( __FILE__ ) . DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR;
}
-------------------------------------------------------------------------------
Line 124 has comment //Get Holiday Policy info
-------------------------------------------------------------------------- Debug::text('Current Epoch: '. TTDate::getDate('DATE+TIME', $current_epoch ), __FILE__, __LINE__, __METHOD__, 10);
$start_date = TTDate::getBeginDayEpoch( $current_epoch - $lookup_shift_offset );
$end_date = $current_epoch + $add_shift_offset;
Debug::text('Start Date: '. TTDate::getDate('DATE+TIME', $start_date ) .' End Date: '. TTDate::getDate('DATE+TIME', $end_date ) , __FILE__, __LINE__, __METHOD__, 10);
//Set the timezone before getting the recurring schedule shifts
//so we prevent timezone issues and DST issues from arising.
$recurring_schedule_days = $rsc_obj->getShiftsByStartDateAndEndDate( $start_date, $end_date );
//Debug::Arr($recurring_schedule_days, 'Recurring Schedule Shifts', __FILE__, __LINE__, __METHOD__, 10);
if ( $recurring_schedule_days !== FALSE ) {
foreach( $recurring_schedule_days as $date_stamp => $recurring_schedule_shifts ) {
Debug::text('Recurring Schedule Shift Date Stamp: '. TTDate::getDate('DATE+TIME', $date_stamp ) , __FILE__, __LINE__, __METHOD__, 10);
foreach($recurring_schedule_shifts as $recurring_schedule_shift ) {
$recurring_schedule_shift_start_time = TTDate::strtotime( $recurring_schedule_shift['start_time'] );
$recurring_schedule_shift_end_time = TTDate::strtotime( $recurring_schedule_shift['end_time'] );
Debug::text('(After User TimeZone)Recurring Schedule Shift Start Time: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_start_time ) .' End Time: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_end_time ), __FILE__, __LINE__, __METHOD__, 10);
//Make sure punch pairs fall within limits
if ( $recurring_schedule_shift_start_time < $current_epoch + $add_shift_offset ) {
Debug::text('Recurring Schedule Shift Start Time falls within Limits: '. TTDate::getDate('DATE+TIME', $recurring_schedule_shift_start_time ), __FILE__, __LINE__, __METHOD__, 10);
$status_id = 10; //Working
//Is this a holiday?
$hlf = new HolidayListFactory();
$hlf->getByPolicyGroupUserIdAndDate( $user_id, TTDate::getBeginDayEpoch( $recurring_schedule_shift_start_time ) );
if ( $hlf->getRecordCount() > 0 ) {
$h_obj = $hlf->getCurrent();
Debug::text('Found Holiday! Name: '. $h_obj->getName(), __FILE__, __LINE__, __METHOD__, 10);
if ( $h_obj->isEligible( $user_id ) ) {
Debug::text('User is Eligible...', __FILE__, __LINE__, __METHOD__, 10);
//Get Holiday Policy info
$status_id = $h_obj->getHolidayPolicyObject()->getDefaultScheduleStatus();
$absence_policy_id = $h_obj->getHolidayPolicyObject()->getAbsencePolicyID();
Debug::text('Default Schedule Status: '. $status_id, __FILE__, __LINE__, __METHOD__, 10);
} else {
Debug::text('User is NOT Eligible...', __FILE__, __LINE__, __METHOD__, 10);
}
} else {
Debug::text('No Holidays on this day: ', __FILE__, __LINE__, __METHOD__, 10);
}
unset($hlf, $h_obj);
--------------------------------------------------------------------------
Here's a part of the file Environment.class.php that's reporting a PHP parse error @ liine 30 is
"static protected $template_dir = 'templates';"
----------------------------------------------------------------------------
class Environment {
static protected $template_dir = 'templates';
static protected $template_compile_dir = 'templates_c';
static function getBasePath() {
//global $config_vars;
//return $config_vars['path']['base_path'] . DIRECTORY_SEPARATOR;
return dirname( __FILE__ ) . DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR .'..'. DIRECTORY_SEPARATOR;
}
-------------------------------------------------------------------------------
I assume the double quotes weren't actually in the file. If thats the case and you are getting a parse error from that line, I'd guess you are using PHP v4 and not PHP v5 when trying to run the maintenance jobs.Here's a part of the file Environment.class.php that's reporting a PHP parse error @ liine 30 is
"static protected $template_dir = 'templates';"
Not sure, shared hosting providers often have all sorts of strange things setup to accommodate customers using both PHP4 and PHP5. It could be two cron jobs setup one that uses PHP4 and another that uses PHP5, its hard to say.
You can do a quick test to tell for sure, try running PHP's syntax checker for both PHP4 and PHP5, for example:
It should return no errors with PHP5, and identical parse errors when using PHP4. If thats the case you know for sure PHP4 is being executed somehow.
You can do a quick test to tell for sure, try running PHP's syntax checker for both PHP4 and PHP5, for example:
Code: Select all
php5 -l classes/modules/core/Environment.class.php
Code: Select all
php4 -l classes/modules/core/Environment.class.php