Project

General

Profile

Pages don't work after upgrading from 0.8 to latest release ...

Added by Mikaël LABRUT over 13 years ago

Hi,

After upgrading from 0.8 to latest release some pages don't work on my redmine :

  • Activity
Processing ProjectsController#activity (for 92.142.106.187 at 2010-09-16 17:23:40) [GET]
  Parameters: {"action"=>"activity", "id"=>"afw", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/activity

ActionView::TemplateError (undefined method `-' for {:length=>100}:Hash) on line #13 of app/views/projects/activity.rhtml:
10:     <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
11:   <span class="time"><%= format_time(e.event_datetime, false) %></span>
12:   <%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
13:   <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
14:   <dd><span class="description"><%= format_activity_description(e.event_description) %></span>
15:   <span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></dd>
16: <% end -%>

    /config/environment.rb:67:in `truncate'
  • My Page
Processing MyController#page (for 92.142.106.187 at 2010-09-16 17:24:39) [GET]
  Parameters: {"action"=>"page", "controller"=>"my"}
Rendering template within layouts/base
Rendering my/page

ActionView::TemplateError (undefined method `-' for {:length=>60}:Hash) on line #20 of app/views/issues/_list_simple.rhtml:
17:                     <td class="project"><%= link_to_project(issue.project) %></td>
18:                     <td class="tracker"><%=h issue.tracker %></td>
19:                     <td class="subject">
20:         <%= link_to h(truncate(issue.subject, :length => 60)), :controller => 'issues', :action => 'show', :id => issue %> (<%=h issue.status %>)
21:       </td>
22:             </tr>
23:             <% end %>

  • Calendar
Processing CalendarsController#show (for 92.142.106.187 at 2010-09-16 17:25:10) [GET]
  Parameters: {"project_id"=>"afw", "action"=>"show", "controller"=>"calendars"}
Rendering template within layouts/base
Rendering calendars/show

ActionView::TemplateError (undefined method `-' for {:length=>30}:Hash) on line #16 of app/views/common/_calendar.rhtml:
13:   <% if i.is_a? Issue %>
14:   <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
15:   <%= h("#{i.project} -") unless @project && @project == i.project %>
16:   <%= link_to_issue i, :truncate => 30 %>
17:   <span class="tip"><%= render_issue_tooltip i %></span>
18:   </div>
19:   <% else %>

  • Depot
Processing RepositoriesController#show (for 92.142.106.187 at 2010-09-16 17:25:51) [GET]
  Parameters: {"action"=>"show", "id"=>"afw", "controller"=>"repositories"}
Rendering template within layouts/base
Rendering repositories/show

ActionView::TemplateError (undefined method `-' for {:length=>50}:Hash) on line #23 of app/views/repositories/_dir_list_content.rhtml:
20: <td class="revision"><%= link_to_revision(changeset.revision, @project) if changeset %></td>
21: <td class="age"><%= distance_of_time_in_words(entry.lastrev.time, Time.now) if entry.lastrev && entry.lastrev.time %></td>
22: <td class="author"><%= changeset.nil? ? h(entry.lastrev.author.to_s.split('<').first) : changeset.author if entry.lastrev %></td>
23: <td class="comments"><%=h truncate(changeset.comments, :length => 50) unless changeset.nil? %></td>
24: </tr>
25: <% end %>

Any idea to fix this issue ?

Thanks

ML


Replies (8)

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Felix Schäfer over 13 years ago

What rails and ruby version, what exact redmine version, what ... See SubmittingBugs too.

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Mikaël LABRUT over 13 years ago

Informations :
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.4 LTS"
Redmine 1.0.1.stable (MySQL)
ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Felix Schäfer over 13 years ago

Did you install it from source or from the deb package?

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Felix Schäfer over 13 years ago

Do you have any plugin installed? This seems to be a problem with the truncate function, which is part of rails though.

Also, did you remember to restart your rails server?

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Mikaël LABRUT over 13 years ago

Yes, i restart my ruby server (passenger => apache2ctl graceful).

I have installed a plugin (wiki extensions), but i tried with and without the plugin : the error is the same.

I think, it's the ruby version 1.8.6 => on your website, you recommand 1.8.7 so i am upgrading my ruby. I hope it will work :)

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Mikaël LABRUT over 13 years ago

With ruby 1.8.7, pages don't work ...

Do you have any idea ?

RE: Pages don't work after upgrading from 0.8 to latest release ... - Added by Vu Ha Nguyen almost 12 years ago

I've got exactly the Mikaël LABRUT's "over 1 year ago" problem. There is no idea to fix it :( ?

    (1-8/8)