Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
NoMethodError after installing 1.7rc2
 
Dave P
Posted: 16 February 2009 10:33 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2009-02-16

Hi,

I am trying to install the new version 1.7.rc2 under Linux (Fedora 9). Actually, I’m upgrading from version 1.6. After a few issues installing the mysql gem, I have successfully migrated my database and started the Tracks server. However, I now get the following errors in my browser (FF 3.0.6) when accessing Tracks: “NoMethodError in Todos#index ... undefined method `in_time_zone’ for Fri, 20 Feb 2009:Date”. The full error page is pasted below.

Any ideas?

Thanks,

Dave.

———————

NoMethodError in Todos#index

Showing app/views/todos/_todo.html.erb where line #15 raised:

undefined method `in_time_zone’ for Fri, 20 Feb 2009:Date

Extracted source (around line #15):

12:    <%= remote_toggle_checkbox unless source_view_is :deferred %>
13:    <div class=“description<%= staleness_class( todo ) %>”>
14:    <% unless @todo.completed? %><span class=“defer-container”><%= defer_link(1) %> <%= defer_link(7) %></span><% end %>
15:    <%= date_span -%>
16:    <span class=“todo.descr”><%= h sanitize(todo.description) %></span>
17:    <%= link_to(
18:      image_tag(“recurring16x16.png”),

Trace of template inclusion: app/views/contexts/_context.rhtml, app/views/todos/index.html.erb

RAILS_ROOT: /home/dxp/usr/packages/tracks-1.7rc2
Application Trace | Framework Trace | Full Trace

app/helpers/application_helper.rb:27:in `days_from_today’
app/helpers/application_helper.rb:38:in `due_date’
app/helpers/todos_helper.rb:99:in `date_span’
app/views/todos/_todo.html.erb:15
app/views/contexts/_context.rhtml:39
(__DELEGATION__):2:in `map’
(__DELEGATION__):2:in `__send__’
(__DELEGATION__):2:in `map’
app/views/todos/index.html.erb:4
app/controllers/todos_controller.rb:716:in `render_todos_html’
app/controllers/todos_controller.rb:19:in `index’

Profile
 
Reinier Balt
Posted: 16 February 2009 12:49 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Did all the migrations run without errors?

In the database, the due_date and show_from should be datetimes. Looking at the error, it seems you have Date as datatype in your database, probably for due_date. Could you check this?

Profile
 
Dave P
Posted: 16 February 2009 01:08 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-02-16

Thanks for the quick response. This indeed seems to have been the root of the problem. Although I did not get any errors when running the migration, it seems that it did not actually do anything. I am using SQLite and the problem (I think) was that I had copied my whole db directory from version 1.6, rather than just copying the file tracks-15-blank.db into the new db directory.

In any case, after the new successful migration, it works.

Many thanks,

Dave.

Profile
 
Reinier Balt
Posted: 16 February 2009 01:12 PM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Just your db file is enough.

Did you point to your correct database in database.yml? After that, just run rake db:migrate and all should be fine

Profile
 
   
 
 
‹‹ Installation problems on Ubuntu Hardy: "undefined method `collect’"      Tracks home has disappeared unable to connect to local tracks homepage ››

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

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1076 seconds

Atom Feed
RSS 2.0