Error setting locales/time zones...

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
rrivera
Posts: 1
Joined: Wed Jun 27, 2007 10:35 am

Error setting locales/time zones...

Post by rrivera »

Im setting up a TimeTrex demo on my laptop as a mean to "sell" the application to the Accounting department. When I access my timetrex install, It's automatically sending me to the user's preference page.

http://docmahq.com/prefs.png (screenshot)

Once I choose my settings and submit, It's sending me to an error page.

http://docmahq.com/error.png (screenshot)

I checked the log and got the following:

Code: Select all

---------------[ Wed, 27 Jun 2007 17:12:21 +0000 (PID: 2976) ]---------------
DEBUG [200]:	<b>[Function]()</b>: URI: /timetrex/interface/users/EditUserPreference.php?incomplete=1<br>
DEBUG [202]:	<b>[Function]()</b>: Production: 1<br>
DEBUG [491]:	<b>Authentication::Check()</b>: Session Name: SessionID<br>
DEBUG [497]:	<b>Authentication::Check()</b>: Session ID: aef35b7be05d9f014f0bad626234175a<br>
DEBUG [302]:	<b>Validator::stripNonAlphaNumeric()</b>: Alpha Numeric String:aef35b7be05d9f014f0bad626234175a<br>
DEBUG [78]:	<b>Authentication::getIdle()</b>: Idle Seconds Allowed: 14400<br>
DEBUG [302]:	<b>Validator::stripNonAlphaNumeric()</b>: Alpha Numeric String:aef35b7be05d9f014f0bad626234175a<br>
DEBUG [64]:	<b>[Function]()</b>: User Authenticated: administrator Created Date: 1182954373<br>
DEBUG [1690]:	<b>UserFactory::isInformationComplete()</b>: User Information is Complete: <br>
DEBUG [100]:	<b>TTDate::setTimeZone()</b>: Setting TimeZone: GMT<br>
DEBUG [129]:	<b>TTDate::setDateFormat()</b>: Setting Default Date Format: <br>
DEBUG [143]:	<b>TTDate::setTimeFormat()</b>: Setting Default Time Format: <br>
DEBUG [157]:	<b>TTDate::setTimeUnitFormat()</b>: Setting Default Time Unit Format: <br>
DEBUG [95]:	<b>[Function]()</b>: Locale Cookie: en_PR<br>
DEBUG [232]:	<b>TTi18n::getLanguageFromLocale()</b>: Locale: en_PR<br>
DEBUG [97]:	<b>[Function]()</b>: Changing User Preference Language to match cookie...<br>
DEBUG [232]:	<b>TTi18n::getLanguageFromLocale()</b>: Locale: en_PR<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: en<br>
DEBUG [728]:	<b>Factory::isValid()</b>: Calling Validate()<br>
DEBUG [406]:	<b>Validator::Error()</b>: Validation Error: Label: date_format Msg: Incorrect date format<br>
DEBUG [385] Array: <b>Validator::isValid()</b>: Errors
<pre>
Array
(
    [date_format] => Array
        (
            [0] => Incorrect date format
        )

)
</pre><br>
DEBUG [192]:	<b>TTi18n::generateLocale()</b>: Failed Setting Locale... Falling Back to: en_US!<br>
DEBUG [267]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US Category: 0 Current Locale: <br>
DEBUG [270]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US<br>
DEBUG [272]:	<b>TTi18n::setLocale()</b>: Failed setting i18n locale: en_US<br>
DEBUG [284]:	<b>TTi18n::setLocale()</b>: Setting translator normalized locale to: en_US<br>
DEBUG [286]:	<b>TTi18n::setLocale()</b>: Failed setting translator locale: en_US<br>
DEBUG [1690]:	<b>UserFactory::isInformationComplete()</b>: User Information is Complete: <br>
DEBUG [1090]:	<b>UserPreferenceFactory::isPreferencesComplete()</b>: User Preferences is NOT Complete: <br>
DEBUG [131]:	<b>[Function]()</b>: Station ID Cookie found! 92fbe825f767185af4c84953b26794d7<br>
DEBUG [238]:	<b>[Function]()</b>: UnRead Messages: 0<br>
DEBUG [48]:	<b>BreadCrumb::setCrumb()</b>: Dropping Bread Crumb: Employee Preferences URL: /timetrex/interface/users/EditUserPreference.php?incomplete=1<br>
---------------[ Wed, 27 Jun 2007 17:12:21 +0000 (PID: 2976) ]---------------
---------------[ Wed, 27 Jun 2007 17:15:00 +0000 (PID: 2976) ]---------------
DEBUG [200]:	<b>[Function]()</b>: URI: /timetrex/interface/users/EditUserPreference.php<br>
DEBUG [202]:	<b>[Function]()</b>: Production: 1<br>
DEBUG [491]:	<b>Authentication::Check()</b>: Session Name: SessionID<br>
DEBUG [497]:	<b>Authentication::Check()</b>: Session ID: aef35b7be05d9f014f0bad626234175a<br>
DEBUG [302]:	<b>Validator::stripNonAlphaNumeric()</b>: Alpha Numeric String:aef35b7be05d9f014f0bad626234175a<br>
DEBUG [78]:	<b>Authentication::getIdle()</b>: Idle Seconds Allowed: 14400<br>
DEBUG [302]:	<b>Validator::stripNonAlphaNumeric()</b>: Alpha Numeric String:aef35b7be05d9f014f0bad626234175a<br>
DEBUG [64]:	<b>[Function]()</b>: User Authenticated: administrator Created Date: 1182954373<br>
DEBUG [1690]:	<b>UserFactory::isInformationComplete()</b>: User Information is Complete: <br>
DEBUG [100]:	<b>TTDate::setTimeZone()</b>: Setting TimeZone: GMT<br>
DEBUG [129]:	<b>TTDate::setDateFormat()</b>: Setting Default Date Format: <br>
DEBUG [143]:	<b>TTDate::setTimeFormat()</b>: Setting Default Time Format: <br>
DEBUG [157]:	<b>TTDate::setTimeUnitFormat()</b>: Setting Default Time Unit Format: <br>
DEBUG [95]:	<b>[Function]()</b>: Locale Cookie: en_PR<br>
DEBUG [232]:	<b>TTi18n::getLanguageFromLocale()</b>: Locale: en_PR<br>
DEBUG [97]:	<b>[Function]()</b>: Changing User Preference Language to match cookie...<br>
DEBUG [232]:	<b>TTi18n::getLanguageFromLocale()</b>: Locale: en_PR<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: en<br>
DEBUG [728]:	<b>Factory::isValid()</b>: Calling Validate()<br>
DEBUG [406]:	<b>Validator::Error()</b>: Validation Error: Label: date_format Msg: Incorrect date format<br>
DEBUG [385] Array: <b>Validator::isValid()</b>: Errors
<pre>
Array
(
    [date_format] => Array
        (
            [0] => Incorrect date format
        )

)
</pre><br>
DEBUG [192]:	<b>TTi18n::generateLocale()</b>: Failed Setting Locale... Falling Back to: en_US!<br>
DEBUG [267]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US Category: 0 Current Locale: <br>
DEBUG [270]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US<br>
DEBUG [272]:	<b>TTi18n::setLocale()</b>: Failed setting i18n locale: en_US<br>
DEBUG [284]:	<b>TTi18n::setLocale()</b>: Setting translator normalized locale to: en_US<br>
DEBUG [286]:	<b>TTi18n::setLocale()</b>: Failed setting translator locale: en_US<br>
DEBUG [1690]:	<b>UserFactory::isInformationComplete()</b>: User Information is Complete: <br>
DEBUG [1090]:	<b>UserPreferenceFactory::isPreferencesComplete()</b>: User Preferences is NOT Complete: <br>
DEBUG [131]:	<b>[Function]()</b>: Station ID Cookie found! 92fbe825f767185af4c84953b26794d7<br>
DEBUG [238]:	<b>[Function]()</b>: UnRead Messages: 0<br>
DEBUG [63]:	<b>[Function]()</b>: Submit!<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: en<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: d-m-y<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: g:i A<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: 10<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: US/Eastern<br>
DEBUG [94]:	<b>Validator::inArrayKey()</b>: Key: 0<br>
DEBUG [728]:	<b>Factory::isValid()</b>: Calling Validate()<br>
DEBUG [711]:	<b>Factory::StartTransaction()</b>: StartTransaction(): Transaction Count: 0 Trans Off: 0<br>
DEBUG [728]:	<b>Factory::isValid()</b>: Calling Validate()<br>
DEBUG [257]:	<b>Validator::isDate()</b>: Raw Date: 1182964500 Converted Value: 1182964500<br>
DEBUG [257]:	<b>Validator::isDate()</b>: Raw Date: 1182964500 Converted Value: 1182964500<br>
DEBUG [787]:	<b>Factory::Save()</b>: Insert ID: 0<br>
DEBUG [693]:	<b>Factory::getInsertQuery()</b>: Insert<br>
DEBUG [257]:	<b>Validator::isDate()</b>: Raw Date: 1182964500 Converted Value: 1182964500<br>
---------------[ Wed, 27 Jun 2007 17:15:00 +0000 (PID: 2976) ]---------------
---------------[ Wed, 27 Jun 2007 14:15:01 -0300 (PID: 2976) ]---------------
DEBUG [200]:	<b>[Function]()</b>: URI: /timetrex/interface/DownForMaintenance.php?exception=GeneralError<br>
DEBUG [202]:	<b>[Function]()</b>: Production: 1<br>
DEBUG [50]:	<b>[Function]()</b>: Bypassing Authentication<br>
DEBUG [345]:	<b>TTi18n::chooseBestLocale()</b>: Choosing Best Locale...<br>
DEBUG [362]:	<b>TTi18n::chooseBestLocale()</b>: Using Language from cookie: en_PR<br>
DEBUG [267]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_PR Category: 0 Current Locale: <br>
DEBUG [270]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_PR<br>
DEBUG [272]:	<b>TTi18n::setLocale()</b>: Failed setting i18n locale: en_PR<br>
DEBUG [284]:	<b>TTi18n::setLocale()</b>: Setting translator normalized locale to: en_US<br>
DEBUG [286]:	<b>TTi18n::setLocale()</b>: Failed setting translator locale: en_US<br>
DEBUG [398]:	<b>TTi18n::chooseBestLocale()</b>: cSetting Locale: en_US<br>
DEBUG [267]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US Category: 0 Current Locale: <br>
DEBUG [270]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en_US<br>
DEBUG [272]:	<b>TTi18n::setLocale()</b>: Failed setting i18n locale: en_US<br>
DEBUG [284]:	<b>TTi18n::setLocale()</b>: Setting translator normalized locale to: en_US<br>
DEBUG [286]:	<b>TTi18n::setLocale()</b>: Failed setting translator locale: en_US<br>
DEBUG [398]:	<b>TTi18n::chooseBestLocale()</b>: cSetting Locale: en<br>
DEBUG [267]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en Category: 0 Current Locale: <br>
DEBUG [270]:	<b>TTi18n::setLocale()</b>: Attempting to set Locale to: en<br>
DEBUG [272]:	<b>TTi18n::setLocale()</b>: Failed setting i18n locale: en<br>
DEBUG [284]:	<b>TTi18n::setLocale()</b>: Setting translator normalized locale to: en_US<br>
DEBUG [286]:	<b>TTi18n::setLocale()</b>: Failed setting translator locale: en_US<br>
DEBUG [409]:	<b>TTi18n::chooseBestLocale()</b>: Unable to find and set a locale.<br>
---------------[ Wed, 27 Jun 2007 14:15:01 -0300 (PID: 2976) ]---------------
I tried the procedure detailed at the "MySQL and time zones" thread, but it still doesn't work. I set up the "timetrex.ini.php" file with the root account so that db permissions wasn't a concern, but it still wont work.

Any help is appreciated,
Roberto
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

Did you try selecting a different date format in your preferences to see if it would accept that?

It looks like there might be a conflict with your locale that may be causing some issues.

If that doesn't work, you could try the following:

Select Spanish for your language, then select a date format, then select English as your language, and select a date format again, then press the submit button.
Locked