Hi, I encountered errors while I install the Linux version of TimeTrex from source.
If I left the code as is, following the instructions, I will get warning that in file "includes/global.inc.php" the function date() is not safe, and the page stuck at the "Initializing..." forever
If I manually fix this problem by replace the date() to date_default_timezone_set() in the aforementioned file, then I can go through this "Initializing..." page, and go to the next installation page. While after I accept the terms and fix other privilege related problems, there is a "checksum" error because I edited the file "global.inc.php".
So, If I don't edit this file, I met error 1;
If I edit this file, I met error 2.
Now, what should I do?
Please help.
Thanks!
Installation dilemma: date() and checksum
Re: Installation dilemma: date() and checksum
You should disable display errors in your php.ini file, that will prevent error messages like this from breaking the TimeTrex UI, they can also be a security risk in some cases.
Next you should probably set the default timezone in your php.ini file to prevent this issue from happening in the first place, and with other PHP applications too.
Finally you can force a default timezone in the timetrex.ini.php file (search for "system_timezone"), which will also prevent this issue for just TimeTrex anyways.
Next you should probably set the default timezone in your php.ini file to prevent this issue from happening in the first place, and with other PHP applications too.
Finally you can force a default timezone in the timetrex.ini.php file (search for "system_timezone"), which will also prevent this issue for just TimeTrex anyways.
Re: Installation dilemma: date() and checksum
Thank you for your fast reply. Can you give more detail about how to do the steps you mentioned above?shaunw wrote:You should disable display errors in your php.ini file, that will prevent error messages like this from breaking the TimeTrex UI, they can also be a security risk in some cases.
Next you should probably set the default timezone in your php.ini file to prevent this issue from happening in the first place, and with other PHP applications too.
Finally you can force a default timezone in the timetrex.ini.php file (search for "system_timezone"), which will also prevent this issue for just TimeTrex anyways.
In my php.ini, the error is set off with "display_errors = Off"
Default time zone is also set with "date.timezone = America/New_York"
In the timetrex.ini.php file, I didn't find the "system_timezone" keyword. Search returns no results.
Thanks!!
Re: Installation dilemma: date() and checksum
In the timetrex.ini.php file, you can set the following:
Code: Select all
[other]
system_timezone = "America/New_York"