beta w/ stock CentOS php

Ask your questions regarding TimeTrex installation here.
Locked
Diggy
Posts: 53
Joined: Wed Aug 16, 2006 10:40 am

beta w/ stock CentOS php

Post by Diggy »

Hello all.

Having had to scrub a previous installation of timetrex-1.3.1, I installed the beta version on a new CentOS 4 box. Also installed are postgresql-8.1.4-1.centos.1 and php-5.0.4-4.centos4 (and php-pear-5.0.4, etc. - these are the same as in the previous 1.3.1 installation). The timetrex install went fine (I'm very impressed that the timetrex team made pay period setup easier, for example). The only part of the installation that doesn't seem to work is "My Timesheet" - I just get a blank page. I've been told that php-5.0.4 is buggy, hence my problem. Not to be a baby, or anything (waaaaaah ... oops), but I'd just as soon stick to the stock php installation (which is the same for RHEL 4). Is there any way I can work around this problem?

Thanks.

Diggy
mikeb
Posts: 711
Joined: Thu Jul 27, 2006 11:58 am

Post by mikeb »

Please post the error you are getting from your PHP or APACHE error logs. I'll look into this a little more.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Diggy
Posts: 53
Joined: Wed Aug 16, 2006 10:40 am

Post by Diggy »

Here's output from httpd's error_log:

[client 192.168.100.53] PHP Fatal error: Only variables can be passed by reference in /var/www/html/timetrex/interface/timesheet/ViewUserTimeSheet.php on line 1226, referer: http://192.168.100.7/timetrex/interface//index.php
mikeb
Posts: 711
Joined: Thu Jul 27, 2006 11:58 am

Post by mikeb »

Diggy wrote:Here's output from httpd's error_log:

[client 192.168.100.53] PHP Fatal error: Only variables can be passed by reference in /var/www/html/timetrex/interface/timesheet/ViewUserTimeSheet.php on line 1226, referer: http://192.168.100.7/timetrex/interface//index.php
Change line 1226 from:

$smarty->assign_by_ref('pay_period_id', $pay_period_obj->getId() );

To:

$smarty->assign('pay_period_id', $pay_period_obj->getId() );

See if that helps. If you get the same error on another line that happens to be "assign_by_ref" change it to "assign" as well.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Diggy
Posts: 53
Joined: Wed Aug 16, 2006 10:40 am

Post by Diggy »

That was the fix. Thanks Mike (and apologies for yesterday's online faux pas).

Diggy
Locked