Invalid DBError

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
joako
Posts: 15
Joined: Fri Sep 24, 2010 12:48 am

Invalid DBError

Post by joako »

This is not the first time I see this. You login to timetrex (how does it login if the database is down!?) then whatever you click you get a "DBError." Still not sure what the cause is, but here's how I reproduced it:

1) Turn on server, run a report, shut down.
2) Turn on server a few weeks later: DBError shown
3) Turn on all the debugs but really there is no database error, actually no error or indication of the problem.
4) Run this a few times and it suddenly no longer has any database error:
# cd /var/www/html/TimeTrex/maint
# for file in *php; do php $file; done
# for file in *php; do php $file; done
# for file in *php; do php $file; done

Can anyone explain why this is and why TimeTrex can not display the proper error?
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Invalid DBError

Post by shaunw »

For starters you should never turn off the server TimeTrex is running on for any prolonged period, as it is unable to perform its regular maintenance and problems will start to arise.

Have you tried just waiting 10-15 minutes to see if it eventually starts working? Perhaps its taking a while for your database to start.
Locked