Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
Error 500 and ArgumentError (comparison of Time with DateTime failed)
 
erle
Posted: 09 April 2008 09:14 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2008-04-09

Hi There

I have installed trakcs and started using it. When I configured initially I think I made an error in the environment.rb file.

When I do a fresh install of tracks (recreate a blank database) I can sign up an admin user and create a new user and log in as the new user, but when I close the browser and open a new one and tries to log in I get the error 500.

I hope that you guys can help me get me back on tracks :D

Im running debian testing, with apache2 and php5 and mysql
mysql—version
mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2

php -v
PHP 5.2.5-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 02:03:40)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

ruby 1.8.6 (2008-03-03 patchlevel 114) [i486-linux]

The error that I see in the log-file is the following:

ArgumentError (comparison of Time with DateTime failed):
    /
usr/share/tracks/app/models/user.rb:165:in `<'
    /usr/share/tracks/app/models/user.rb:165:in 
`remember_token?'
    /usr/share/tracks/lib/login_system.rb:47:in `login_from_cookie'
    
/usr/share/tracks/lib/login_system.rb:81:in `login_required'
    /usr/share/tracks/vendor/rails/actionpack/lib/action_controller/filters.rb:469:in 
`send'
    /usr/share/tracks/vendor/rails/actionpack/lib/action_controller/filters.rb:469:in `call'
    
/usr/share/tracks/vendor/rails/actionpack/lib/action_controller/filters.rb:442:in `run'
    /usr/share/tracks/vendor/rails/actionpack/lib/action_controller/filters.rb:714:in 
`run_before_filters 

Profile
 
erle
Posted: 09 April 2008 09:46 AM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  2
Joined  2008-04-09

Aha, it turns out that commenting out this line in the environment.rb

#  config.active_record.default_timezone = :"CET" 

and the

# ENV['TZ'] 

did the trick, dont know how I missed this, maybe tomorrow it will not work again and I will come back crying :D

Profile
 
Reinier Balt
Posted: 09 April 2008 02:23 PM   [ Ignore ]   [ # 2 ]  
Sr. Member
RankRankRankRank
Total Posts:  442
Joined  2006-10-05

you can try to delete all tracks related cookies an log in again. The error is related to the check if your current login (of which the data is stored in a cookie) is expired.

Profile
 
   
 
 
‹‹ Tracks 1.5 LDAP Authentification      Postgres Group By Error ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.1 (20081028)
Script Executed in 0.1178 seconds

Atom Feed
RSS 2.0