On 19/08/2010 15:13, David Schmitz wrote: > Hi, > > I am facing problems with debian's redmine package. Whenever I click on the > activity tab within redmine I am returned a 500 error. > > See log snippet below: > || > > Processing ProjectsController#activity (for ::1 at 2010-08-19 15:00:27) [GET] > Parameters: {"action"=>"activity", "id"=>"libreais", > "controller"=>"projects"} > Rendering template within layouts/base > Rendering projects/activity > > ActionView::TemplateError (missing interpolation argument in "%m/%{count}/%Y" > ({:object=>Wed, 21 Jul 2010} given)) on line #2 of > app/views/projects/activity.rhtml: > 1: <h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, > link_to_user(@author)) %></h2> > 2: <p class="subtitle"><%= l(:label_date_from_to, :start => > format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p> > 3: > 4: <div id="activity"> > 5: <% @events_by_day.keys.sort.reverse.each do |day| %> > > I am running everything on top of Debian testing and used > apache2-passenger-host.conf for my apache redmine site. > Any ideas how to fix this? Did I forget something to install or is redmine > itself buggy and needs a new version. > > Can you help me out with this problem?
It is indeed a problem with redmine 1.0.0, and has been reported : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592672 Try the attached patch to fix it. I'm waiting redmine 1.0.1, which contains only (but many) bug fixes, and is due to be released today or tomorrow. I'm hoping it'll get accepted in squeeze. Regards, Jérémy Lal
Description: Patch for libi18n-ruby 0.4.1 support See discussion in redmine issue 5608. Origin: upstream, http://www.redmine.org/issues/5608 Author: Jérémy Lal <kapo...@melix.org> --- redmine-1.0.0.orig/lib/redmine/i18n.rb +++ redmine-1.0.0/lib/redmine/i18n.rb @@ -37,7 +37,7 @@ module Redmine def format_date(date) return nil unless date - Setting.date_format.blank? ? ::I18n.l(date.to_date) : date.strftime(Setting.date_format) + Setting.date_format.blank? ? ::I18n.l(date.to_date, :count => date.day) : date.strftime(Setting.date_format) end def format_time(time, include_date = true) @@ -45,7 +45,7 @@ module Redmine time = time.to_time if time.is_a?(String) zone = User.current.time_zone local = zone ? time.in_time_zone(zone) : (time.utc? ? time.localtime : time) - Setting.time_format.blank? ? ::I18n.l(local, :format => (include_date ? :default : :time)) : + Setting.time_format.blank? ? ::I18n.l(local, :count => local.day, :format => (include_date ? :default : :time)) : ((include_date ? "#{format_date(time)} " : "") + "#{local.strftime(Setting.time_format)}") end